Skip to content

Latest commit

Β 

History

22 Commits

Folders and files

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

Repository files navigation

πŸ›‘οΈ SENTINEL

πŸ›‘οΈ SENTINEL

Smart Emergency Network for Threat Intelligence & Network Evaluation Layer

AI-Powered Real-Time Cybersecurity, Fraud Detection & Threat Intelligence Platform

Python FastAPI React TypeScript Vite TailwindCSS Machine Learning Cyber Security Status

An intelligent AI-powered cybersecurity platform that combines Financial Fraud Detection, Network Intrusion Detection, Real-Time Threat Monitoring, Risk Scoring, and Interactive Analytics into a unified dashboard.


πŸš€ Overview

SENTINEL is a full-stack AI-powered cybersecurity platform designed to identify suspicious activities across multiple security domains.

The system integrates modern Machine Learning techniques with a scalable FastAPI backend and a React-based dashboard to provide real-time threat detection, risk analysis, explainable alerts, and security analytics.

Unlike traditional monitoring systems that only generate alerts, SENTINEL provides contextual insights, risk scoring, and visual analytics to help security analysts understand and respond to threats more effectively.


🎯 Objectives

The primary objectives of SENTINEL are:

  • πŸ” Detect anomalous activities in real time
  • πŸ’³ Identify fraudulent financial transactions
  • 🌐 Detect malicious network intrusions
  • πŸ“Š Generate intelligent risk scores
  • 🧠 Provide Explainable AI insights
  • πŸ“ˆ Visualize live security events
  • πŸ“„ Generate downloadable reports
  • πŸ” Secure administrator and user access
  • ⚑ Deliver a responsive real-time dashboard

✨ Key Features

πŸ›‘οΈ Threat Detection

  • Real-time anomaly detection
  • AI-powered fraud detection
  • Network intrusion detection
  • Risk score generation
  • Threat categorization
  • Live event monitoring

πŸ“Š Interactive Dashboard

  • Admin Dashboard
  • User Dashboard
  • Analytics Page
  • Reports Page
  • Alerts Page
  • System Settings
  • Real-Time Statistics
  • Risk Visualization

πŸ” Authentication

  • Secure Login
  • User Authentication
  • Role-Based Access Control
  • Protected Routes
  • Session Management

πŸ“ˆ Analytics

  • Risk Gauge
  • Threat Distribution
  • Security Metrics
  • Live Alert Feed
  • Performance Statistics
  • Report Generation

βš™οΈ Backend Services

  • REST APIs
  • Alert Management
  • Authentication APIs
  • Risk Engine
  • Event Processing
  • Report Services

πŸ—οΈ System Architecture

                          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                          β”‚        Web Browser        β”‚
                          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                        β”‚
                                        β–Ό
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚       React + TypeScript        β”‚
                    β”‚      Vite + Tailwind CSS        β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                  β”‚ REST API
                                  β–Ό
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚          FastAPI Backend        β”‚
                    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
                    β”‚ Authentication                  β”‚
                    β”‚ Alert Management                β”‚
                    β”‚ Risk Score Engine               β”‚
                    β”‚ Event Processing                β”‚
                    β”‚ Report Generation               β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                  β”‚
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β–Ό                       β–Ό                        β–Ό
 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚ Fraud Detectionβ”‚      β”‚ Intrusion IDS  β”‚      β”‚ Risk Engine    β”‚
 β”‚ Machine Learningβ”‚     β”‚ ML Pipeline    β”‚      β”‚ AI Analytics   β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                  β”‚
                                  β–Ό
                         Security Intelligence

πŸ“‚ Project Structure

SENTINEL/
β”‚
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ api/
β”‚   β”‚   β”‚   └── routers/
β”‚   β”‚   β”œβ”€β”€ config/
β”‚   β”‚   β”œβ”€β”€ database/
β”‚   β”‚   β”œβ”€β”€ middleware/
β”‚   β”‚   β”œβ”€β”€ models/
β”‚   β”‚   β”œβ”€β”€ schemas/
β”‚   β”‚   └── services/
β”‚   β”‚
β”‚   └── requirements.txt
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ assets/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ context/
β”‚   β”‚   β”œβ”€β”€ hooks/
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”œβ”€β”€ types/
β”‚   β”‚   └── utils/
β”‚   β”‚
β”‚   β”œβ”€β”€ package.json
β”‚   └── vite.config.ts
β”‚
β”œβ”€β”€ datasets/
β”‚
β”œβ”€β”€ PROJECT_REQUIREMENTS.md
β”œβ”€β”€ README.md
└── .env.example

βš™οΈ Technology Stack

Category Technologies
Frontend React, TypeScript, Vite
Styling Tailwind CSS
Backend FastAPI, Python
API REST API
Authentication JWT Authentication
Machine Learning Scikit-learn
Data Processing Pandas, NumPy
Database SQLite / PostgreSQL
Validation Pydantic
Charts Custom Dashboard Widgets
Version Control Git & GitHub

🧠 Core Modules

πŸ” Threat Detection Engine

The Threat Detection Engine continuously analyzes incoming events to identify suspicious activities using AI-driven anomaly detection techniques.

Features

  • Real-time anomaly detection
  • Threat classification
  • Event prioritization
  • Confidence scoring
  • Alert generation

πŸ’³ Financial Fraud Detection

Detects fraudulent financial transactions using machine learning models trained on transaction patterns.

Capabilities

  • Credit card fraud detection
  • Transaction risk scoring
  • Behavioral analysis
  • Fraud probability estimation
  • High-risk transaction alerts

🌐 Network Intrusion Detection

Monitors network traffic to detect malicious behavior and unauthorized access attempts.

Detection Types

  • DoS / DDoS attacks
  • Port scanning
  • Brute-force attacks
  • Malware communication
  • Suspicious traffic patterns
  • Network anomalies

πŸ“Š Risk Score Engine

Every detected event receives an intelligent risk score between 0–100 based on multiple parameters.

Risk Levels

Score Severity
0–20 Low
21–40 Moderate
41–60 Medium
61–80 High
81–100 Critical

πŸ“ˆ Analytics Dashboard

The dashboard provides real-time visibility into system health and detected threats.

Dashboard Includes

  • Live alerts
  • Threat statistics
  • Security overview
  • Risk visualization
  • Historical trends
  • Reports
  • User activity
  • Performance metrics

πŸš€ Features

βœ… Authentication & Security

  • JWT-based Authentication
  • Secure Login System
  • Role-Based Access Control (RBAC)
  • Protected Routes
  • Session Management
  • User Access Validation

🚨 Alert Management

  • Live Alert Monitoring
  • Threat Categorization
  • Risk-Based Prioritization
  • Alert Status Tracking
  • Alert History
  • Event Logging

πŸ“Š Dashboard & Analytics

  • Interactive Dashboard
  • Real-Time Metrics
  • Threat Statistics
  • Risk Distribution
  • Recent Alerts
  • Activity Monitoring
  • Security Overview
  • Performance Charts

πŸ“„ Reports

  • Security Reports
  • Alert Reports
  • Threat Summary
  • CSV Export
  • PDF Report Generation
  • Historical Analysis

⚑ Backend Services

  • RESTful API
  • FastAPI Framework
  • Authentication Services
  • Alert Services
  • Risk Engine
  • Event Processing
  • Report Services

πŸ“¦ Installation

Clone Repository

git clone https://github.com/Chirag04-bit/SENTINAL.git

cd SENTINAL

βš™οΈ Backend Setup

Navigate to the backend directory.

cd backend

Create a virtual environment.

Windows

python -m venv venv
venv\Scripts\activate

Linux / macOS

python3 -m venv venv
source venv/bin/activate

Install dependencies.

pip install -r requirements.txt

Run the backend server.

uvicorn app.main:app --reload

Backend URL

http://127.0.0.1:8000

Swagger Documentation

http://127.0.0.1:8000/docs

ReDoc

http://127.0.0.1:8000/redoc

πŸ’» Frontend Setup

Navigate to frontend.

cd frontend

Install packages.

npm install

Run the development server.

npm run dev

Frontend URL

http://localhost:5173

🌍 Environment Variables

Create a .env file inside the backend directory.

DATABASE_URL=sqlite:///./sentinel.db

SECRET_KEY=your-secret-key

ALGORITHM=HS256

ACCESS_TOKEN_EXPIRE_MINUTES=30

DEBUG=True

Example:

backend/
    .env

πŸ“‹ API Documentation

After running the backend, visit:

Swagger UI

http://127.0.0.1:8000/docs

ReDoc

http://127.0.0.1:8000/redoc

πŸ”Œ API Modules

Current API services include:

  • Authentication
  • User Management
  • Alert Management
  • Risk Analysis
  • Reports
  • Dashboard Analytics

πŸ“‘ Example API Endpoints

Authentication

POST /login
POST /register
POST /refresh-token

Alerts

GET /alerts
GET /alerts/{id}
POST /alerts
PUT /alerts/{id}
DELETE /alerts/{id}

Reports

GET /reports
POST /reports
GET /reports/download

Analytics

GET /analytics
GET /statistics
GET /risk-score

πŸ› οΈ Development Workflow

Clone Repository
        β”‚
        β–Ό
Install Dependencies
        β”‚
        β–Ό
Configure Environment
        β”‚
        β–Ό
Run Backend
        β”‚
        β–Ό
Run Frontend
        β”‚
        β–Ό
Access Dashboard
        β”‚
        β–Ό
Start Development

πŸ”„ Project Workflow

Incoming Event
        β”‚
        β–Ό
Threat Detection
        β”‚
        β–Ό
Risk Analysis
        β”‚
        β–Ό
Alert Generation
        β”‚
        β–Ό
Dashboard Update
        β”‚
        β–Ό
Report Generation

πŸ€– Machine Learning Pipeline

SENTINEL leverages Artificial Intelligence and Machine Learning to identify suspicious activities across multiple cybersecurity domains.

The platform is designed to support both supervised and unsupervised learning techniques for anomaly detection and fraud analysis.


AI Pipeline

Raw Data
     β”‚
     β–Ό
Data Cleaning
     β”‚
     β–Ό
Feature Engineering
     β”‚
     β–Ό
Model Training
     β”‚
     β–Ό
Model Evaluation
     β”‚
     β–Ό
Risk Scoring
     β”‚
     β–Ό
Threat Classification
     β”‚
     β–Ό
Dashboard Visualization

Machine Learning Capabilities

  • Fraud Detection
  • Network Intrusion Detection
  • Anomaly Detection
  • Risk Prediction
  • Threat Classification
  • Pattern Recognition
  • Security Analytics

Future AI Enhancements

  • Explainable AI (SHAP)
  • Explainable AI (LIME)
  • Deep Learning Models
  • AutoML Pipeline
  • Online Learning
  • Real-Time Model Retraining

πŸ“‚ Datasets

The project has been designed to work with multiple public cybersecurity datasets.

Dataset Purpose
Credit Card Fraud Detection Financial Fraud Detection
PaySim Financial Dataset Transaction Fraud Analysis
NSL-KDD Network Intrusion Detection
UNSW-NB15 Modern Network Attack Detection

Note: Large datasets are intentionally excluded from the GitHub repository. Download them separately and place them inside the datasets/ directory.

Example:

datasets/
β”œβ”€β”€ creditcard.csv
β”œβ”€β”€ PS_20174392719_1491204439457_log.csv
β”œβ”€β”€ KDDTrain+.txt
β”œβ”€β”€ KDDTest+.txt
β”œβ”€β”€ UNSW_NB15_training-set.csv
└── UNSW_NB15_testing-set.csv

πŸ“Έ Application Screenshots

Add screenshots after completing the UI.

Login Page

docs/screenshots/login.png

Admin Dashboard

docs/screenshots/dashboard.png

Analytics

docs/screenshots/analytics.png

Alerts

docs/screenshots/alerts.png

Reports

docs/screenshots/reports.png

πŸ“Š Current Progress

Module Status
Frontend UI βœ… Completed
Backend APIs βœ… Completed
Authentication βœ… Completed
Dashboard βœ… Completed
Alert System βœ… Completed
Analytics βœ… Completed
Reports βœ… Completed
Risk Engine 🚧 In Progress
Machine Learning Integration 🚧 In Progress
Database Integration 🚧 In Progress
Explainable AI πŸ“… Planned
Deployment πŸ“… Planned

πŸ›£οΈ Roadmap

Version 1.0

  • React Frontend
  • FastAPI Backend
  • Authentication
  • Dashboard
  • Alerts
  • Reports
  • Analytics
  • Risk Visualization

Version 1.5

  • PostgreSQL Integration
  • Redis Cache
  • Docker Support
  • Logging System
  • Unit Testing
  • API Rate Limiting

Version 2.0

  • Real-Time WebSockets
  • Email Notifications
  • SMS Alerts
  • AI Explainability
  • Multi-Factor Authentication
  • Cloud Deployment

Version 3.0

  • Kubernetes Deployment
  • Multi-Tenant Support
  • SOC Dashboard
  • Threat Intelligence Feed
  • SIEM Integration
  • Mobile Application

🀝 Contributing

Contributions are welcome!

If you would like to improve SENTINEL:

  1. Fork the repository
  2. Create a new feature branch
git checkout -b feature/your-feature
  1. Commit your changes
git commit -m "Add new feature"
  1. Push your branch
git push origin feature/your-feature
  1. Open a Pull Request

πŸ§ͺ Testing

Backend

pytest

Frontend

npm test

πŸ“œ License

This project is licensed under the MIT License.

Feel free to use, modify, and distribute this project for educational and research purposes.


πŸ‘¨β€πŸ’» Author

Chirag Sharma

B.Tech – Computer Science & Engineering (AI)
Institute of Engineering & Management (IEM), Kolkata

Connect with me


πŸ™ Acknowledgements

Special thanks to the open-source community and the creators of:

  • FastAPI
  • React
  • TypeScript
  • Vite
  • Tailwind CSS
  • Scikit-learn
  • NumPy
  • Pandas
  • PostgreSQL
  • Python

⭐ Support

If you found this project useful, consider giving it a ⭐ on GitHub.

It helps the project reach more developers and motivates future improvements.


πŸ›‘οΈ SENTINEL

AI-Powered Cybersecurity Intelligence Platform

Built with ❀️ by Chirag Sharma

⭐ Don't forget to Star this repository! ⭐

---

🎬 Demo

Coming Soon

The application demo will showcase:

  • User Authentication
  • Admin Dashboard
  • Threat Monitoring
  • Fraud Detection
  • Risk Score Engine
  • Analytics Dashboard
  • Report Generation

πŸ“Έ Screenshots

Login Dashboard
Alerts Analytics
Reports

πŸ“Š Performance Goals

Metric Target
API Response Time < 200 ms
Dashboard Load Time < 2 sec
Authentication < 500 ms
Risk Score Generation < 1 sec
Fraud Detection Accuracy > 95%
Intrusion Detection Accuracy > 95%

❓ Frequently Asked Questions

Is this production ready?

The current version is intended for educational, research, and portfolio purposes. Some production-grade features such as deployment, monitoring, and advanced security are planned for future releases.


Which datasets are supported?

The project supports public cybersecurity datasets including:

  • Credit Card Fraud Detection
  • PaySim
  • NSL-KDD
  • UNSW-NB15

Does it use Machine Learning?

Yes. The platform is designed to integrate machine learning models for fraud detection, anomaly detection, and network intrusion detection.


Can I contribute?

Absolutely! Contributions, bug reports, and feature requests are welcome.


🐞 Known Issues

  • Machine Learning models are under active development.
  • Database integration is being expanded.
  • WebSocket support is planned.
  • Cloud deployment is not yet available.

πŸ“ˆ Future Scope

  • AI-powered threat intelligence
  • Explainable AI dashboards
  • Live WebSocket streaming
  • Docker support
  • Kubernetes deployment
  • Redis caching
  • Multi-factor authentication
  • SIEM integration
  • Email & SMS alerts
  • Mobile application
  • Cloud-native deployment
  • Multi-tenant architecture

πŸ“ Changelog

v0.1.0

  • Initial project structure
  • React frontend
  • FastAPI backend
  • Authentication module
  • Dashboard UI
  • Alert management
  • Analytics pages
  • Report module

πŸ”’ Security

If you discover a security vulnerability, please create a private issue or contact the maintainer before publicly disclosing it.


πŸ“š Citation

If you use this project in your research or academic work, please cite it appropriately.

Chirag Sharma.
SENTINEL: Smart Emergency Network for Threat Intelligence &
Network Evaluation Layer.
GitHub Repository.
2026.

🌟 Show Your Support

If you like this project:

⭐ Star the repository

🍴 Fork it

πŸ› οΈ Contribute

πŸ“’ Share it with others


⭐ Thanks for Visiting! ⭐

SENTINEL aims to combine Artificial Intelligence, Cybersecurity, and Real-Time Analytics into a unified threat intelligence platform.

Made with ❀️ by Chirag Sharma

About

AI-powered cybersecurity platform for real-time fraud detection, network intrusion detection, risk scoring, and threat analytics using FastAPI, React, and Machine Learning.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages