| title | AI Pentest API |
|---|---|
| emoji | π‘οΈ |
| colorFrom | purple |
| colorTo | blue |
| sdk | docker |
| app_port | 7860 |
| pinned | false |
An autonomous, AI-powered penetration testing tool that automates vulnerability discovery and reporting
This folder contains the clean, standalone version of the AI Pentest Scanner. It is separated from legacy bot components for easier management.
The AI Pentest Scanner leverages multi-agent AI systems to perform comprehensive security scanning, including reconnaissance, vulnerability detection, and automated report generation.
- π€ Multi-Agent AI System - Specialized agents for different pentesting tasks
- π― Automated Reconnaissance - Intelligent target enumeration and information gathering
- π Vulnerability Scanning - Automated detection of security weaknesses
- π Auto-Report Generation - Professional reports in Markdown, HTML, JSON, and PDF
- π₯οΈ Web UI - User-friendly interface for managing scans
- π» CLI Support - Run scans directly from terminal
Frontend:
- React (Vite)
- Tailwind CSS
Backend:
- Python Flask API
- Groq API (LLM)
- Gemini API (LLM)
Tools:
- Conda (Environment Management)
- npm (Package Manager)
- Python 3.8+
- Node.js 16+
- Conda
- Clone the repository:
git clone https://github.com/samarth70/AI-Pentest-Scanner.git
cd AI-Pentest-Scanner- Install backend dependencies:
conda create -n agenticAi python=3.10
conda activate agenticAi
pip install -r requirements.txt- Install frontend dependencies:
cd frontend
npm install- Configure environment variables:
Create a
.envfile in the root directory:
GROQ_API_KEY=your_groq_api_key
GEMINI_API_KEY=your_gemini_api_key
- Start the Backend API:
conda activate agenticAi
python api_server.pyThe API will start at http://localhost:5000.
- Start the Frontend: Open another terminal:
cd frontend
npm run devThe UI will start at http://localhost:5173.
- Access the Application:
Open your browser and navigate to
http://localhost:5173
Run scans directly from the terminal:
python main.py --target example.comAdditional CLI options:
python main.py --target example.com --scan-type full --output-format pdfFor detailed architecture, design decisions, and technical specifications, see:
- Architectural Documentation - Complete system architecture, agent design, and implementation details
AI-Pentest-Scanner/
βββ api_server.py # Flask backend for the web UI
βββ main.py # CLI entry point
βββ agents/ # AI agents for different pentesting tasks
β βββ recon_agent.py # Reconnaissance agent
β βββ vuln_agent.py # Vulnerability scanning agent
β βββ report_agent.py # Report generation agent
βββ core/ # Core configurations and utilities
β βββ config.py # Configuration settings
β βββ security.py # Security utilities
βββ frontend/ # Vite + React + Tailwind frontend
β βββ src/ # React source code
β βββ public/ # Static assets
β βββ package.json # Frontend dependencies
βββ reports/ # Generated scan results
β βββ markdown/ # Markdown reports
β βββ html/ # HTML reports
β βββ json/ # JSON reports
β βββ pdf/ # PDF reports
βββ .env # Environment variables (API keys)
βββ requirements.txt # Python dependencies
This tool is intended for educational purposes and authorized security testing only. Always obtain proper authorization before scanning targets.
This project is licensed under the MIT License - see the LICENSE file for details.
Samarth Agarwal
- GitHub: @samarth70
- Groq for providing fast LLM inference
- Google Gemini for AI capabilities
- The open-source security community