AI-Powered Insider Threat Detection & Privileged Access Misuse Prevention Platform
Traitor Tracer is an AI-driven security platform designed to detect insider threats and privileged account misuse in banking environments. It continuously analyzes employee activities, identifies anomalous behaviour using machine learning, generates real-time security alerts, verifies audit log integrity using cryptographic signatures, and enables risk-based access control for high-risk operations.
https://frontend-nu-ebon-73.vercel.app
https://traitor-backend.onrender.com
https://traitor-ai-service.onrender.com
Swagger Documentation:
https://traitor-ai-service.onrender.com/docs
Demonstration Video:
https://youtu.be/hfOeGwgyalc?si=c4gDbjM0c1UviPWv
Privileged Access Misuse & Insider Threat Detection
Financial institutions face significant risks from malicious or compromised employees, contractors, administrators, and third-party vendors. Traditional security systems often fail to detect behavioural anomalies before sensitive data is exposed.
Traitor Tracer addresses this challenge by combining AI-powered behavioural analytics with cryptographic integrity verification to proactively detect and respond to insider threats.
- π€ AI-based Behaviour Analysis
- π¨ Real-Time Insider Threat Detection
- π Dynamic Risk Score Calculation
- π Risk-Based Access Control
- π‘οΈ Quantum-Safe Integrity Verification
- π Privileged Access Monitoring
- π Automatic Alert Generation
- π Immutable Audit Event Verification
+----------------------+
| Frontend |
| Next.js App |
+----------+-----------+
|
|
βΌ
+----------------------+
| Express Backend |
| Authentication |
| Event Processing |
| Alert Generation |
| Crypto Verification |
+----------+-----------+
|
+-------------+--------------+
| |
βΌ βΌ
+----------------+ +------------------+
| AI Service | | MongoDB Atlas |
| FastAPI + ML | | Users |
| IsolationForest| | Events |
| Risk Scoring | | Alerts |
+----------------+ +------------------+
The AI engine evaluates every incoming event using behavioural indicators such as:
- Login Time
- Failed Login Attempts
- Number of Downloads
- VPN Usage
- USB Device Detection
- Administrative Privilege Usage
- Event Type
- User Role
The model combines:
- Rule-Based Behaviour Analysis
- Isolation Forest Machine Learning Algorithm
Output includes:
- Risk Score
- Risk Level
- Behavioural Reasons
- Anomaly Detection
Every audit event is protected using cryptographic hashing.
When an event is created:
Event Data
β
βΌ
Generate SHA-256 Signature
β
βΌ
Store Signature Alongside Event
Whenever the event is retrieved:
Stored Event
β
βΌ
Generate New Signature
β
βΌ
Compare With Stored Signature
β
βΌ
Integrity Verified β
/ Tampered β
If anyone modifies even a single field inside MongoDB, the verification immediately fails.
Based on AI-generated risk scores:
| Risk Score | Action |
|---|---|
| 0 β 39 | Allow Operation |
| 40 β 79 | Generate Security Alert |
| 80 β 100 | Require Administrative Approval |
This enables proactive security before sensitive operations are completed.
- Next.js
- React
- Tailwind CSS
- Node.js
- Express.js
- MongoDB Atlas
- Firebase Admin SDK
- FastAPI
- Python
- Scikit-Learn
- Isolation Forest
- NumPy
- Pandas
- SHA-256 Cryptographic Hashing
- Integrity Verification
- Risk-Based Access Control
Traitor-Tracer
β
βββ frontend/
β βββ app/
β βββ components/
β βββ lib/
β βββ public/
β
βββ backend/
β βββ src/
β β
β βββ config/
β βββ controllers/
β βββ middleware/
β βββ models/
β βββ routes/
β βββ services/
β βββ validations/
β βββ server.js
β
βββ ai-service/
βββ app.py
βββ model.py
βββ schemas.py
βββ requirements.txt
User Activity
β
βΌ
Backend Receives Event
β
βΌ
AI Behaviour Analysis
β
βΌ
Risk Score Generated
β
βΌ
Generate Cryptographic Signature
β
βΌ
Store Event in MongoDB
β
βΌ
Generate Alert (if required)
β
βΌ
Return Decision
High-risk activities automatically create alerts containing:
- Employee Information
- Risk Score
- Risk Level
- Behavioural Reasons
- Timestamp
- Event Reference
{
"employeeId":"EMP001",
"eventType":"EXPORT_DATA",
"downloads":250,
"failedLogins":8,
"vpn":true,
"usbInserted":true,
"adminAction":true
}AI Output
{
"riskScore":100,
"riskLevel":"HIGH",
"anomaly":true
}POST /api/auth/login
POST /api/events
GET /api/events
GET /api/events/:id
GET /api/alerts
PATCH /api/alerts/:id
git clone https://github.com/NisargaK-21/Traitor-Tracer.git
cd Traitor-Tracercd backend
npm install
npm run devcd ai-service
pip install -r requirements.txt
uvicorn app:app --reloadcd frontend
npm install
npm run devVercel
Render
Render
MongoDB Atlas
Dashboard
Admin's Employee portal
Events
Overview
Leaderboard
- Multi-Factor Authentication (MFA)
- Real-Time Threat Dashboard
- Redis-Based Event Streaming
- SIEM Integration
- Role-Based Approval Workflow
- Quantum-Safe Digital Signatures
- Continuous Behaviour Learning
- Email & Slack Alert Notifications





