Skip to content

Rushabh-dave/IndiaNext_Hackathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

26 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก๏ธ PhishEye โ€” AI-Powered Cyber Threat Detection Platform

๐Ÿ† Winner โ€” IndiaNext Hackathon 2026

Detect phishing, deepfakes, malicious URLs, and AI attacks โ€” all in one platform.

PhishEye is a real-time AI cybersecurity system that combines NLP, Computer Vision, and Audio Intelligence into a unified threat detection engine โ€” built and validated under hackathon constraints.

PhishEye is a full-stack cybersecurity intelligence platform built for the IndiaNext Hackathon. It uses state-of-the-art AI models to detect phishing emails, malicious URLs, prompt injection attacks, deepfake images, and AI-generated audio โ€” all in real time from a single, premium web interface.


๐Ÿš€ Live Demo

Service URL
Frontend https://india-next-hackathon-u8hx.vercel.app/
Backend API https://indianext-hackathon.onrender.com
API Health https://indianext-hackathon.onrender.com/health

โš ๏ธ The backend runs on Render's free tier. The first request after 15 minutes of inactivity may take 30โ€“60 seconds to respond (cold start). Subsequent requests are fast.

๐ŸŽฅ Demo Walkthrough

https://your-demo-video-link

A quick 60โ€“90 second demo showcasing real-time threat detection, dashboard insights, and multi-modal analysis.


โœจ Features

๐Ÿ” Threat Detection Modules

  • Phishing Email Detection โ€” Analyzes email body, sender, and subject line using a fine-tuned DistilBERT model
  • Malicious URL Scanner โ€” Classifies URLs as benign or malicious using domain-level NLP analysis
  • Prompt Injection Detection โ€” Identifies adversarial prompts designed to hijack LLM behavior (DeBERTa-v3)
  • Deepfake Image Detection โ€” Uses a Vision Transformer (ViT) to detect AI-generated or manipulated faces
  • Deepfake Audio Detection โ€” Detects AI-generated / voice-cloned audio using wav2vec2-base
  • Video Scanner (Coming Soon) โ€” Placeholder for future video deepfake detection

๐Ÿงฑ System Architecture Overview

Architecture

PhishEye follows a modular AI pipeline:

  • Client Layer (React + Vite) โ†’ handles user interaction and visualization
  • API Layer (FastAPI) โ†’ routes requests to appropriate AI modules
  • AI Engine Layer:
    • NLP Models (Phishing, URL, Prompt Injection)
    • Computer Vision (Deepfake Image)
    • Audio Models (Deepfake Audio)
  • Risk Scoring Engine โ†’ aggregates outputs into a unified cyber risk score
  • Explainability Layer (SHAP) โ†’ interprets model decisions
  • Temporal Fusion Engine โ†’ detects multi-stage attack patterns

This architecture ensures scalability, modularity, and real-time performance.

๐Ÿ“Š Intelligence Dashboard

  • Real-time Cyber Risk Score gauge (0โ€“100) with animated SVG
  • MITRE ATT&CK technique attribution for every detected threat
  • SHAP explainability panel showing what features drove the AI decision
  • Temporal fusion analysis โ€” detects multi-stage attack kill chains over a sliding 5-minute window
  • AI-generated attacker/defender narrative summaries

๐Ÿ“œ Threat History

  • Live alert window feed auto-refreshed every 15 seconds
  • Average risk score bar and worst-severity card
  • Full alert history table with timestamps, types, and scores

๐Ÿง  AI Insights Page

  • Defender perspective: SHAP feature attribution bars and contrastive samples
  • Attacker perspective: detected MITRE tactics and adversarial analysis
  • Temporal perspective: kill chain visualization, timeline, and time-to-impact card

๐Ÿงฐ Tech Stack

Frontend

Technology Purpose
React 18 UI framework with hooks
Vite 7 Build tooling with HMR
Tailwind CSS v4 Utility-first styling
Framer Motion Animated transitions and carousel
Axios HTTP client with interceptors
React Router v6 SPA routing
Lucide React Icon library
Three.js / Canvas 3D shield hero + cyber grid backgrounds

๐Ÿš€ What Makes PhishEye Unique?

  • ๐Ÿงฉ Multi-Modal AI Detection โ€” Text, image, audio, and behavioral threat analysis in one system
  • ๐Ÿง  Explainable AI (XAI) โ€” SHAP-based interpretability for transparent decisions
  • โฑ๏ธ Temporal Attack Intelligence โ€” Detects chained attacks across time windows
  • ๐ŸŽฏ MITRE ATT&CK Mapping โ€” Aligns threats with industry-standard frameworks
  • โšก Real-Time Processing โ€” Instant risk scoring and live dashboard updates
  • ๐ŸŽจ Premium UX โ€” Interactive, animated cybersecurity dashboard with 3D elements

Backend

Technology Purpose
FastAPI High-performance Python API
HuggingFace Transformers DistilBERT, DeBERTa, ViT, wav2vec2 models
PyTorch Model inference
librosa Audio pre-processing
Pillow Image pre-processing
SHAP Model explainability
Docker Containerized deployment

๐Ÿ“ Project Structure

frontend2/
โ”œโ”€โ”€ public/                  # Static assets (icons, favicon)
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ threat-detection/
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ scanners/    # EmailScanner, URLScanner, ImageScanner, AudioScanner, PromptScanner, VideoScanner
โ”‚   โ”‚   โ”œโ”€โ”€ dashboard/       # SHAPExplainabilityPanel
โ”‚   โ”‚   โ”œโ”€โ”€ ai-insights/     # SHAP bars, contrastive comparison, attacker/defender panels
โ”‚   โ”‚   โ”œโ”€โ”€ temporal/        # KillChainVisualizer, TemporalMetricsGrid, TemporalNarrative
โ”‚   โ”‚   โ”œโ”€โ”€ history/         # ThreatHistoryTable, HistoryStatCards, AverageRiskBar
โ”‚   โ”‚   โ”œโ”€โ”€ home/            # HeroSection, ThreatMeter, ThreatCards, LiveTicker
โ”‚   โ”‚   โ”œโ”€โ”€ Sidebar.jsx      # Global navigation sidebar
โ”‚   โ”‚   โ””โ”€โ”€ Navbar.jsx       # Top navigation bar
โ”‚   โ”œโ”€โ”€ pages/
โ”‚   โ”‚   โ”œโ”€โ”€ Home.jsx                # Landing page with live threat meter
โ”‚   โ”‚   โ”œโ”€โ”€ ThreatDetectionPage.jsx # Multi-scanner carousel hub
โ”‚   โ”‚   โ”œโ”€โ”€ ThreatDashboard.jsx     # Post-scan results dashboard
โ”‚   โ”‚   โ”œโ”€โ”€ AIInsightsPage.jsx      # SHAP & temporal insights
โ”‚   โ”‚   โ””โ”€โ”€ ThreatHistoryPage.jsx   # Alert history feed
โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ”‚   โ”œโ”€โ”€ apiService.js    # Centralized Axios client โ€” reads VITE_API_BASE_URL
โ”‚   โ”‚   โ””โ”€โ”€ healthCheck.js   # Backend connectivity polling with retry logic
โ”‚   โ””โ”€โ”€ utils/
โ”‚       โ””โ”€โ”€ colors.js        # Threat color gradient utilities
โ”œโ”€โ”€ .env                     # Local environment variables (NOT committed)
โ”œโ”€โ”€ vercel.json              # Vercel SPA rewrite rules
โ””โ”€โ”€ vite.config.js           # Vite configuration

โš™๏ธ Environment Variables

All API connections are configured through environment variables. Never hardcode backend URLs.

.env (local development)

VITE_API_BASE_URL=https://indianext-hackathon.onrender.com

Vercel (production deployment)

  1. Go to Vercel Dashboard โ†’ your project โ†’ Settings โ†’ Environment Variables
  2. Add:
Name Value
VITE_API_BASE_URL https://indianext-hackathon.onrender.com
  1. Set it for Production, Preview, and Development
  2. Redeploy โ€” the env var is baked in at build time by Vite

If VITE_API_BASE_URL is missing on Vercel, all API calls will fail with a Network Error since import.meta.env.VITE_API_BASE_URL resolves to undefined.


๐Ÿ Local Development Setup

Prerequisites

  • Node.js 18+
  • npm or pnpm
  • Python 3.10+ (for backend)

1. Clone the repository

git clone https://github.com/your-org/IndiaNext_Hackathon.git
cd IndiaNext_Hackathon

2. Set up the frontend

cd frontend2
npm install

Create a .env file:

VITE_API_BASE_URL=https://indianext-hackathon.onrender.com

Start the dev server:

npm run dev

The app will be available at http://localhost:5173

3. Set up the backend (optional โ€” for local inference)

cd backend
pip install -r requirements.txt
uvicorn main:app --reload --port 8000

Then update .env:

VITE_API_BASE_URL=http://localhost:8000

๐ŸŒ Backend API Endpoints

Method Endpoint Description
POST /analyze/phishing Phishing email detection (body, sender, subject)
POST /analyze/url Malicious URL detection
POST /analyze/prompt-injection Prompt injection detection
POST /analyze/deepfake Deepfake image detection (multipart file)
POST /analyze/deepfake-audio Deepfake audio detection (multipart file)
POST /analyze/temporal Temporal fusion kill-chain analysis
GET /alerts/window Fetch current alert sliding window
DELETE /alerts/reset Clear the alert window
GET /health Server health + model load status

๐Ÿค– AI Models Used

Detector Model Source
Phishing Email cybersectony/phishing-email-detection-distilbert_v2.1 HuggingFace
Malicious URL kmack/malicious-url-detection HuggingFace
Prompt Injection protectai/deberta-v3-base-prompt-injection-v2 HuggingFace
Deepfake Image prithivMLmods/Deep-Fake-Detector-v2-Model HuggingFace
Deepfake Audio motheecreator/Deepfake-audio-detection HuggingFace

๐ŸŒ Real-World Use Cases

  • Individuals โ†’ Detect phishing emails, fake media, and malicious links
  • Enterprises โ†’ Monitor and analyze cyber threats in real time
  • Security Analysts โ†’ Gain explainable insights into attack patterns
  • AI Platforms โ†’ Prevent prompt injection and adversarial inputs
  • Content Platforms โ†’ Identify deepfake media before distribution

๐Ÿšข Deployment

Frontend โ†’ Vercel

  • Framework: Vite
  • Build command: npm run build
  • Output directory: dist
  • Required env var: VITE_API_BASE_URL
  • vercel.json handles SPA routing with a catch-all rewrite to index.html

Backend โ†’ Render

  • Runtime: Python 3.10
  • Start command: uvicorn main:app --host 0.0.0.0 --port 10000
  • CORS is open (allow_origins=["*"]) so any frontend origin can connect
  • Models load lazily on first request to keep startup fast
  • Free tier spins down after 15 min of inactivity โ€” first cold-start takes ~60s

๐Ÿ”ฎ Future Scope

  • Browser extension for real-time phishing and URL detection
  • Email client integration (Gmail, Outlook)
  • Mobile application for on-the-go threat analysis
  • Enterprise-grade API for security platforms
  • Continuous model retraining with live threat intelligence
  • Full video deepfake detection pipeline

๐Ÿ‘ฅ Team

Built for the IndiaNext Hackathon โ€” a cybersecurity AI challenge to build real-time threat detection systems using modern AI/ML techniques.


๐Ÿ“„ License

This project is built for hackathon demonstration purposes.

Releases

No releases published

Packages

 
 
 

Contributors