Skip to content

About

AI-powered platform for detecting insider threats and monitoring privileged user activities in banking systems.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Traitor Tracer

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.


🌐 Live Demo

Frontend (Vercel)

https://frontend-nu-ebon-73.vercel.app


Backend API (Render)

https://traitor-backend.onrender.com


AI Service (Render)

https://traitor-ai-service.onrender.com

Swagger Documentation:

https://traitor-ai-service.onrender.com/docs

Demonstration Video:

https://youtu.be/hfOeGwgyalc?si=c4gDbjM0c1UviPWv


πŸ“Œ Problem Statement

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.


🎯 Key Features

  • πŸ€– 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

πŸ—οΈ System Architecture

                    +----------------------+
                    |      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           |
        +----------------+          +------------------+

🧠 AI Behaviour Analysis

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

πŸ”’ Cryptographic Integrity Verification

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.


🚨 Risk-Based Access Control

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.


βš™οΈ Tech Stack

Frontend

  • Next.js
  • React
  • Tailwind CSS

Backend

  • Node.js
  • Express.js
  • MongoDB Atlas
  • Firebase Admin SDK

AI Service

  • FastAPI
  • Python
  • Scikit-Learn
  • Isolation Forest
  • NumPy
  • Pandas

Security

  • SHA-256 Cryptographic Hashing
  • Integrity Verification
  • Risk-Based Access Control

πŸ“‚ Project Structure

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

πŸ“Š Workflow

User Activity
      β”‚
      β–Ό
Backend Receives Event
      β”‚
      β–Ό
AI Behaviour Analysis
      β”‚
      β–Ό
Risk Score Generated
      β”‚
      β–Ό
Generate Cryptographic Signature
      β”‚
      β–Ό
Store Event in MongoDB
      β”‚
      β–Ό
Generate Alert (if required)
      β”‚
      β–Ό
Return Decision

πŸ”” Alert Generation

High-risk activities automatically create alerts containing:

  • Employee Information
  • Risk Score
  • Risk Level
  • Behavioural Reasons
  • Timestamp
  • Event Reference

Alert generation

πŸ§ͺ Example High Risk Event

{
    "employeeId":"EMP001",
    "eventType":"EXPORT_DATA",
    "downloads":250,
    "failedLogins":8,
    "vpn":true,
    "usbInserted":true,
    "adminAction":true
}

AI Output

{
    "riskScore":100,
    "riskLevel":"HIGH",
    "anomaly":true
}

πŸ” API Endpoints

Authentication

POST /api/auth/login

Events

POST /api/events
GET  /api/events
GET  /api/events/:id

Alerts

GET /api/alerts
PATCH /api/alerts/:id

πŸš€ Local Setup

Clone Repository

git clone https://github.com/NisargaK-21/Traitor-Tracer.git
cd Traitor-Tracer

Backend

cd backend

npm install

npm run dev

AI Service

cd ai-service

pip install -r requirements.txt

uvicorn app:app --reload

Frontend

cd frontend

npm install

npm run dev

🌐 Deployment

Frontend

Vercel

Backend

Render

AI Service

Render

Database

MongoDB Atlas


Screenshots

Dashboard

Dashboard

Admin's Employee portal

Admin's Employee portal

Events

Events

Overview

Overview

Leaderboard

Leaderboard


🎯 Future Enhancements

  • 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

About

AI-powered platform for detecting insider threats and monitoring privileged user activities in banking systems.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages