An AI security assistant that uses your API key or a local llm to run network scans PROCEDURE BELOW Use this exact flow:
- Clone the repo:
git clone https://github.com/Chiagoziem4/AI-Sec-Assistant.git
cd AI-Sec-Assistant- Create and activate a virtual environment:
python3 -m venv .venv
source .venv/bin/activate- Install dependencies:
pip install --upgrade pip
pip install -r requirements.txt- (Optional) Run tests:
python -m pytest tests/ -v- Run with sample data in rule-only mode (no API needed):
python main.py --file sample_scan.txt --no-ai --json --markdown- Run with AI mode:
python main.py --file sample_scan.txt --json --markdownThen choose at prompt:
1for OpenAI2for Ollama3for rules-only
- If using OpenAI:
- Put your key in
.envasOPENAI_API_KEY=..., or - choose
1and enter key when prompted.
- If using Ollama:
ollama serve
ollama pull llama3
python main.py --file sample_scan.txt --json --markdownThen choose 2.
- Use real scan files:
sudo nmap -sV -oN live_scan.txt 192.168.1.0/24
python main.py --file live_scan.txt --format nmap --json --markdown- Check generated reports:
- They are saved in
outputs/as timestamped.jsonand.mdfiles.