Skip to content

Repository files navigation

EmpowerNet AI

EmpowerNet AI

Multi-modal deepfake & scam detection for browsers, video calls, and digital media.

Python FastAPI React TypeScript License: MIT Demo


Overview

EmpowerNet AI is a full-stack forensic intelligence platform designed to detect AI-generated scams, deepfakes, voice cloning, and synthetic media across text, images, audio, and video.

It combines a React dashboard, FastAPI backend, Chrome Extension, machine learning inference pipelines, and a cryptographic evidence ledger into a unified workflow for digital threat analysis.

Blockchain note: The evidence ledger generates a deterministic SHA-256 proof hash for every scan and stores it in a persistent local log. It is architected to submit transactions to Polygon Amoy when PRIVATE_KEY and CONTRACT_ADDRESS are configured β€” currently running in local simulation mode by default.


Features

Area Capability
πŸ” Multi-modal Scanning Text, Image, Audio, and Video deepfake/scam detection
🌐 Browser Extension Real-time protection on any webpage (Chrome Manifest V3)
🎭 Deepfake Detection Vision ensemble (EfficientNet-B5, ViT, Organika/sdxl-detector)
πŸŽ™οΈ Voice Clone Detection MFCC + F0 analysis + optional Whisper STT
⛓️ Evidence Ledger SHA-256 proof hashing, Polygon Amoy-ready (simulation mode default)
πŸ“„ Forensic Reports PDF export + direct submission workflow to cybercrime.gov.in
πŸ›‘οΈ Meeting Shield Real-time frame + audio analysis for Google Meet / Zoom
πŸ‘οΈ Social Media Scanner Profile image and post content analysis
πŸ‘Ά Child Safety NSFW and cyberbullying content filtering

Architecture

flowchart LR

    subgraph Clients
        A["React Dashboard"]
        B["Chrome Extension"]
    end

    subgraph Backend
        C["/api/scan"]
        D["/realtime/video"]
        E["/realtime/audio"]
        F["/analyze/*"]
    end

    subgraph ML
        G["Text Pipeline"]
        H["Image Pipeline"]
        I["Audio Pipeline"]
        J["Video Pipeline"]
    end

    subgraph Evidence
        K["SHA-256 Hasher"]
        L["Blockchain Service (Simulation / Polygon Amoy)"]
    end

    A --> C
    B --> C
    C --> G
    C --> H
    C --> I
    C --> J
    D --> J
    E --> I
    F --> G
    G --> K
    H --> K
    I --> K
    J --> K
    K --> L
Loading

ML Pipeline Detail

flowchart TD
    Input["User Input\n(Text / Image / Audio / Video)"]

    Input --> T["Text Infer\nDistilBERT + RoBERTa + FinBERT\n+ keyword heuristic engine"]
    Input --> Im["Image Infer\nELA + Vision Ensemble\n(EfficientNet-B5, ViT Γ— 3)\nor Gemini Flash (cloud mode)"]
    Input --> Au["Audio Infer\nMFCC + F0 + Whisper STT\n+ motheecreator model"]
    Input --> V["Video Infer\n5-point frame sampling\n+ FFmpeg audio extract"]

    T --> R["Risk Engine\nConfidence Scoring + Labelling"]
    Im --> R
    Au --> R
    V --> R

    R --> H["SHA-256 Hasher"]
    H --> BC["BlockchainService\n(Simulation / Polygon Amoy)"]
    BC --> Resp["Structured API Response"]
Loading

Tech Stack

Category Technologies
Frontend React 18 Β· TypeScript Β· Vite Β· Tailwind CSS Β· Zustand Β· Framer Motion
Backend FastAPI Β· Python 3.10+ Β· Uvicorn Β· Pydantic v2
ML β€” Vision PyTorch Β· HuggingFace Transformers Β· EfficientNet-B5 Β· ViT (Γ—3) Β· OpenCV Β· MediaPipe
ML β€” Audio Librosa Β· Whisper-Tiny Β· motheecreator/Deepfake-audio-detection
ML β€” Text Fine-tuned transformer Β· unitary/toxic-bert Β· ProsusAI/FinBERT Β· Keyword heuristic engine
Evidence Ledger SHA-256 Β· web3.py Β· Solidity Β· Polygon Amoy Testnet (simulation mode default)
Browser Extension Chrome Manifest V3 Β· Service Worker Β· Offscreen API
Deployment Docker Β· Railway Β· Vercel

Project Structure

EmpowerNet-AI/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ api/
β”‚   β”‚   └── routers/        # Modular FastAPI route handlers
β”‚   β”‚       β”œβ”€β”€ scan.py
β”‚   β”‚       β”œβ”€β”€ realtime.py
β”‚   β”‚       └── websocket.py
β”‚   β”œβ”€β”€ blockchain/         # Evidence ledger (simulation-ready Polygon Amoy)
β”‚   β”œβ”€β”€ config/             # Centralized settings (Settings class)
β”‚   β”œβ”€β”€ ml/                 # Inference pipelines per modality
β”‚   β”‚   β”œβ”€β”€ text_infer.py
β”‚   β”‚   β”œβ”€β”€ image_infer.py
β”‚   β”‚   β”œβ”€β”€ audio_infer.py
β”‚   β”‚   β”œβ”€β”€ video_plus_infer.py
β”‚   β”‚   β”œβ”€β”€ ml_service.py   # Vision ensemble + real-time video/audio
β”‚   β”‚   └── child_safety.py
β”‚   β”œβ”€β”€ models/             # Pydantic request/response schemas
β”‚   └── main.py             # App entrypoint β€” registers all routers
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ pages/              # React page components
β”‚   β”œβ”€β”€ services/           # API client (fetch wrappers)
β”‚   └── store/              # Zustand global state
β”‚
β”œβ”€β”€ empowernet-extension/   # Chrome Extension (Manifest V3)
β”‚   β”œβ”€β”€ background.js
β”‚   β”œβ”€β”€ content.js
β”‚   β”œβ”€β”€ popup.html / popup.js
β”‚   └── manifest.json
β”‚
β”œβ”€β”€ docs/                   # Architecture diagrams and documentation
β”œβ”€β”€ .env.example            # Environment variable template
β”œβ”€β”€ Dockerfile              # Production Docker image (Railway)
β”œβ”€β”€ CONTRIBUTING.md
β”œβ”€β”€ SECURITY.md
└── CHANGELOG.md

Run Locally

Prerequisites

  • Python β‰₯ 3.10
  • Node.js β‰₯ 18.x

Backend

cd backend
pip install -r requirements.txt

# Copy and populate environment variables
cp ../.env.example ../.env

uvicorn main:app --reload --port 8001

Frontend

cd frontend
npm install
npm run dev
# β†’ http://localhost:3001

Chrome Extension

  1. Open chrome://extensions
  2. Enable Developer mode
  3. Click Load unpacked β†’ select the empowernet-extension/ directory

Environment Variables

# ML Configuration
LOAD_MODELS=false          # Set to true to enable local heavy models (GPU recommended)
GEMINI_API_KEY=            # Required for cloud vision inference when LOAD_MODELS=false

# Evidence Ledger β€” leave blank to use simulation mode (default)
POLYGON_RPC_URL=https://rpc-amoy.polygon.technology/
PRIVATE_KEY=               # Optional: Polygon wallet private key
CONTRACT_ADDRESS=           # Optional: Deployed EvidenceRegistry address

Screenshots

Dashboard Threat Intelligence


Contributing

See CONTRIBUTING.md for setup instructions, code style guidelines, and the pull request process.

Security

See SECURITY.md for the vulnerability reporting process and security disclosures.

License

This project is licensed under the MIT License β€” see LICENSE for details.

About

EmpowerNet AI is a multi-modal deepfake and scam detection platform that analyzes text, images, audio, and video using transformer models, computer vision, and signal forensics. It provides explainable risk scores, detects phishing and social-engineering language, identifies manipulated media, and flags AI-generated voices and videos in real time.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages