A next-generation, premium Security Information and Event Management (SIEM) system built using FastAPI (Backend) and React (Frontend). This project features centralized logging, real-time threat detection, an automated event correlation engine, incident ticket escalation, and a security analyst chat assistant powered by Google Gemini AI.
Watch the platform in action, featuring live threat simulation, real-time alert triage, and the AI Security Analyst assistant:
https://github.com/devbyjitendra/AI-Powered-SIEM/raw/main/frontend/assets/AI%20SIEM%20Tool.mp4
- β‘ High-Performance API Gateway: Powered by FastAPI, offering standard RESTful endpoints for log ingestion, alert triage, incident case ticket management, and detection rule orchestration.
- π‘ Real-Time WebSockets: Instantly stream correlated threat alerts to security analysts as soon as they are triggered.
- π§ Gemini AI Security Analyst:
- Automated Incident Playbooks: Generate localized investigation steps, mitigation strategies, and summaries for critical alerts.
- Interactive Chat Assistant: Query the AI analyst directly from the dashboard to answer complex threat triage questions.
- π Premium Interactive Dashboard:
- Glassmorphism Theme: A sleek, dark-mode visual aesthetic built with harmonic HSL colors and Outfit/Inter typography.
- Events Over Time Chart: Line graphs visualizing historical trends of raw security events vs. correlated high-priority alerts.
- Geographical Threat Map: Leaflet-based world map plotting real-time threat sources and security alert hot spots.
- Active KPI Counters: Track total ingested events, alerts, and cases with dynamic risk metrics.
- π§© Automated Correlation Engine: Regex-based log parser executing rule matches (e.g. Auth Brute Force, SQL Injections, XSS Script Injections, Port Scanning) to automatically generate alerts.
- βοΈ Local DB Backup & Size Pruning: Built-in automatic size pruning (retains latest 1,000 logs and 500 alerts) to ensure instant query performance (sub-100ms
/statslatency) and prevent disk bloat. - π€ Integrated Simulator Daemon: Simulates realistic enterprise environments, generating benign diurnal traffic patterns interweaved with SQL Injection, brute-force, or malware contact attacks.
AI-Powered-SIEM/
βββ backend/
β βββ app/
β β βββ api/v1/endpoints/ # APIs for logs, alerts, cases, and rules
β β βββ core/ # Config, DB connections, and logging
β β βββ models/ # SQLAlchemy schemas & Pydantic models
β β βββ services/ # AI Analyst, Correlation Engine, WebSockets
β βββ requirements.txt # Python backend dependencies
β βββ Dockerfile # Multi-stage production container setup
β
βββ frontend/
β βββ src/
β β βββ components/ # React components (Map, Charts, Playbooks, Chat)
β β βββ services/ # API & WebSocket service configurations
β β βββ App.jsx # Main app shell & global state orchestrator
β β βββ index.css # Central HSL variable styling system
β βββ vite.config.js # Frontend asset bundler
β βββ package.json # Frontend packages & dev scripts
β
βββ simulator_daemon.py # Log generator script mimicking live attacks
βββ docker-compose.yml # Container orchestration profile
βββ Readme.md # System documentation (This file)
βββ siem_database.db # Local database (when running SQLite)git clone https://github.com/devbyjitendra/AI-Powered-SIEM.git
cd AI-Powered-SIEMCreate a .env file in the root workspace folder:
APP_NAME="AI-Powered SIEM"
DEBUG=True
GEMINI_API_KEY="YOUR_GOOGLE_GEMINI_API_KEY"
DATABASE_URL="sqlite:///./siem_database.db"
ALLOWED_ORIGINS="http://localhost:5173,http://127.0.0.1:5173"-
Create and activate a Python virtual environment:
python -m venv venv # Windows: venv\Scripts\activate # Linux/macOS: source venv/bin/activate
-
Install python dependencies:
pip install -r backend/requirements.txt
-
Run the development API server:
cd backend uvicorn app.main:app --reload --host 127.0.0.1 --port 8000The backend API will start at:
http://127.0.0.1:8000- Swagger Documentation:
http://127.0.0.1:8000/docs - ReDoc Documentation:
http://127.0.0.1:8000/redoc
- Swagger Documentation:
-
Open a new terminal window in the
frontendfolder:cd frontend -
Install node dependencies:
npm install
-
Start the Vite React development server:
npm run dev
The web portal will open at:
http://127.0.0.1:5173
To feed live data into the platform, run the simulator from the root project directory:
python simulator_daemon.py --attack-ratio 1.0 --interval 2--attack-ratio: Ratio of security logs that represent malicious attack events (0.0 to 1.0).--interval: Speed of log ingestion in seconds.
To spin up the entire application stack in containerized mode (Frontend + Backend):
docker-compose up --build- Frontend Web App:
http://localhost:80 - Backend REST Gateway:
http://localhost:8000
Jitendra Kumar
- Cybersecurity Specialist & Backend Engineer
- Passionate about centralizing security architectures with state-of-the-art AI.

