An AI-powered cybersecurity assistant that scans IP addresses for potential threats using multiple security APIs.
👉 Scan IPs for threats using VirusTotal, Shodan, and AbuseIPDB
👉 AI-powered risk assessment using OpenAI SDK
👉 FastAPI backend & Svelte frontend
👉 Rate limiting & security best practices
Cybersec-Assistant/
│── backend/
│ ├── main.py # API entry point
│ ├── utility.py
│ ├── requirements.txt
│ ├── Dockerfile # Backend Docker setup
│── frontend/ # Svelte frontend
│ ├── src/
│ ├── package.json
│ ├── tailwind.config.js
│ ├── Dockerfile # Frontend Docker setup
│── compose.yaml # Docker Compose configuration
cd backendpython -m venv venv # Create virtual environment
source venv/bin/activate # (Linux/macOS)
venv\Scripts\activate # (Windows)pip install -r requirements.txt
uvicorn main:app --reloadcd frontend
npm install
npm run dev1️⃣ Open http://localhost:5173/ in your browser
2️⃣ Enter an IP address and click Scan
3️⃣ View AI-powered threat analysis
| Method | Endpoint | Description |
|---|---|---|
GET |
/scan/ip/{ip} |
Scan IP for threats |
👉 CORS Protection in FastAPI
👉 API Key Handling for external services
Ensure Docker is installed, then run:
docker compose up --builddocker compose downdocker compose up --force-recreate --buildMIT License
- Fork the repo
- Create a new branch
- Make changes & commit
- Open a pull request
Now commit & push it to GitHub:
git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin https://github.com/MohibShaikh/Cybersec-Assistant.git
git push -u origin main