-
Notifications
You must be signed in to change notification settings - Fork 0
Home
A GSOC-level, production-ready AI security platform that ingests real-time network logs, detects anomalies using Isolation Forest ML, and visualizes threats on an interactive Next.js dashboard with immersive 3D visualizations.
| Page | Description |
|---|---|
| Home | Project overview, goals, and wiki index |
| Architecture | System design, data flow, and component breakdown |
| Setup-Guide | Local development setup and deployment |
| API-Reference | Full REST API documentation with examples |
| Contributing | How to contribute β code, docs, or testing |
| GSoC-Project-Ideas | Open GSoC ideas, mentorship info, and how to apply |
This platform bridges the gap between traditional log monitoring and modern AI-driven threat intelligence. It ingests system and network logs in real-time, scores them with a trained Isolation Forest machine learning model, and presents actionable insights on a dynamic dashboard β empowering security teams to detect zero-day attacks and subtle behavioral anomalies that rule-based systems miss.
| Feature | Description |
|---|---|
| π΅οΈ Real-time Anomaly Detection | Unsupervised Isolation Forest ML detects outliers in network traffic |
| π Interactive Dashboard | Next.js + Recharts for live traffic, threats, and log visualization |
| π 3D Threat Globe | React Three Fiber globe showing global threat distribution |
| π 3D Network Topology | Real-time 3D node graph of server/client/threat relationships |
| β‘ High-Performance API | FastAPI with millisecond-latency log ingestion and inference |
| π₯ Universal Log Ingestion | Parses standardized system logs and network traffic data |
| π¨ Threat Classification | Auto-classifies events as Normal, Suspicious, or Critical |
| π§ͺ Tested Backend | Full pytest suite covering success, error, and pagination cases |
- Python 3.10+ β Core logic
- FastAPI β High-performance async REST API
- Scikit-learn β Isolation Forest ML model
- Pandas & NumPy β Feature engineering and data manipulation
- SQLAlchemy + SQLite β ORM and relational storage (PostgreSQL-ready)
- Pytest + HTTPX β Unit and integration testing
- Next.js 14 β React production framework
- TailwindCSS β Utility-first styling
- Recharts β Composable charting
- Three.js + React Three Fiber β WebGL 3D visualizations
- @react-three/drei β Three.js helpers and abstractions
- Lucide React β Icon library
-
GitHub Actions β Automated CI pipeline (
ci.yml) - Docker β Containerized deployment (roadmap)
- PYTHONPATH β Configured for seamless backend module imports in CI
ai-security-platform/
βββ .github/
β βββ workflows/
β βββ ci.yml # GitHub Actions CI pipeline
βββ ai-model/
β βββ train_model.py # Isolation Forest training script
β βββ isolation_forest_model.pkl
βββ backend/
β βββ main.py # FastAPI application entry point
β βββ models.py # SQLAlchemy database models
β βββ schemas.py # Pydantic request/response schemas
β βββ routes/ # API route handlers
β βββ requirements.txt
β βββ tests/
β βββ test_health.py # Health check endpoint tests
β βββ test_logs.py # /logs/ endpoint unit tests
β βββ test_predict.py # /predict/ endpoint tests
βββ data/
β βββ generated_logs.csv # Simulated training dataset
βββ docs/
β βββ advanced_features.md # Advanced implementation guide
βββ frontend/
β βββ pages/ # Next.js pages
β βββ components/ # React components (charts, 3D globe, etc.)
β βββ package.json
βββ CONTRIBUTING.md
βββ SECURITY.md
βββ SETUP_GUIDE.md
βββ README.md
- Core Log Ingestion & Database (SQLite + SQLAlchemy)
- Isolation Forest Anomaly Detection Model
- FastAPI REST Backend
- Interactive Next.js Dashboard
- 3D Threat Globe & Network Topology
- Comprehensive Pytest Test Suite
- GitHub Actions CI Pipeline
- WebSocket Integration for Live Streaming Alerts
- OAuth2 / JWT User Authentication
- Docker Containerization & Docker Compose
- Deployment to Cloud (AWS / Render / GCP)
- Autoencoder Model for Deep Anomaly Detection
- Multi-tenant Support
- Alerting via Email / Slack Webhooks
- π Repository: GitHub
- π Report Bugs: Open an Issue
- π‘ GSoC Ideas: See GSoC-Project-Ideas
- π€ Contribute: See Contributing
- π License: MIT
This wiki is maintained as part of the GSOC-level documentation standard. All contributors are encouraged to keep it up to date.