Skip to content
prith486Public

About

Sanitized ZeroTRUST project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

7 Commits

Folders and files

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

Repository files navigation

πŸ›‘οΈ ZeroTRUST AI4Bharat

AI-Powered Fake News Detection & Claim Verification System

License: MIT AWS Security


⚠️ IMPORTANT: Security First

πŸ” This repository contains NO real credentials. All sensitive data uses placeholders.
πŸ“– New users: Read SETUP_SECRETS_GUIDE.md to configure your own credentials.

Before contributing or committing:


πŸš€ What is ZeroTRUST?

ZeroTRUST is an advanced AI-powered platform that helps combat misinformation by:

  • πŸ” Automated Fact-Checking: Analyzes claims against multiple trustworthy sources
  • πŸ€– Multi-Agent AI System: Uses specialized AI agents (Research, News, Scientific, Social Media)
  • πŸŽ₯ Media Analysis: Detects deepfakes, manipulated images, and audio
  • πŸ“Š Real-time Verification: Provides credibility scores and evidence trails
  • 🌐 Multi-Platform: Web portal, browser extension, and API access

πŸ“‹ Table of Contents


πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    User Interfaces                          β”‚
β”‚  Web Portal  β”‚  Browser Extension  β”‚  Mobile App (Future)  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                  β”‚
                  β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   API Gateway (Node.js)                      β”‚
β”‚  Authentication β”‚ Rate Limiting β”‚ Request Routing            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
              β”‚                               β”‚
              β–Ό                               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Verification Engine (Python)β”‚   β”‚  Media Analysis (Python) β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚   β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚ Manager Agent (LLM)   β”‚  β”‚   β”‚  β”‚ Image Analysis   β”‚   β”‚
β”‚  β”‚ β”œβ”€ Research Agent     β”‚  β”‚   β”‚  β”‚ Video Analysis   β”‚   β”‚
β”‚  β”‚ β”œβ”€ News Agent         β”‚  β”‚   β”‚  β”‚ Audio Analysis   β”‚   β”‚
β”‚  β”‚ β”œβ”€ Scientific Agent   β”‚  β”‚   β”‚  β”‚ Text Extraction  β”‚   β”‚
β”‚  β”‚ └─ Social Media Agent β”‚  β”‚   β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
              β”‚
              β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     AWS Services                             β”‚
β”‚  Bedrock (LLM) β”‚ S3 β”‚ Lambda β”‚ DynamoDB β”‚ CloudWatch        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

✨ Features

Core Capabilities

  • βœ… Multi-Source Verification: Checks claims against news APIs, academic papers, fact-check databases
  • βœ… AI Agent Orchestration: Manager agent coordinates specialized agents for comprehensive analysis
  • βœ… Media Forensics: Detects manipulated images, deepfake videos, and synthetic audio
  • βœ… Evidence Tracking: Provides source citations and confidence scores
  • βœ… Real-time Analysis: Fast processing with caching for repeated queries
  • βœ… User Authentication: Secure JWT-based auth system
  • βœ… Browser Extension: Verify claims directly while browsing

Technical Features

  • πŸ”„ Scalable Architecture: Microservices-based design
  • πŸ“Š Comprehensive Logging: CloudWatch integration for monitoring
  • πŸ” Security First: No hardcoded credentials, JWT authentication
  • 🐳 Docker Support: Easy deployment with Docker Compose
  • πŸ§ͺ Extensive Testing: Unit, integration, and E2E tests with Playwright
  • 🌐 AWS Integration: Leverages Bedrock, S3, Lambda, DynamoDB

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • Python 3.11+
  • Docker & Docker Compose (optional)
  • AWS Account with Bedrock access
  • PostgreSQL database (or Supabase free tier)

1. Clone Repository

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

2. Configure Credentials

⚠️ IMPORTANT: Follow the complete setup guide:

# Read the setup guide
cat SETUP_SECRETS_GUIDE.md

# Copy environment templates
cp apps/api-gateway/.env.example apps/api-gateway/.env
cp apps/web-portal/.env.example apps/web-portal/.env

# Edit with your credentials
nano apps/api-gateway/.env

Required credentials:

  • AWS Access Key ID & Secret
  • Database connection string (PostgreSQL/Supabase)
  • JWT secret (generate with openssl rand -hex 64)

See detailed instructions: SETUP_SECRETS_GUIDE.md

3. Install Dependencies

# API Gateway
cd apps/api-gateway
npm install

# Web Portal
cd ../web-portal
npm install

# Verification Engine
cd ../verification-engine
python -m venv .venv
.venv\Scripts\Activate.ps1  # Windows
source .venv/bin/activate    # Linux/Mac
pip install -r requirements.txt

4. Run Services

Option A: Using Docker Compose (Recommended)

docker-compose up

Option B: Manual Start

# Terminal 1: API Gateway
cd apps/api-gateway
npm run dev

# Terminal 2: Verification Engine
cd apps/verification-engine
uvicorn src.main:app --reload --port 8000

# Terminal 3: Web Portal
cd apps/web-portal
npm run dev

# Terminal 4: Media Analysis
cd apps/media-analysis
uvicorn src.main:app --reload --port 8001

5. Access the Application


πŸ”§ Setup & Configuration

Environment Setup

Guide Description
SETUP_SECRETS_GUIDE.md START HERE - Complete credential setup guide
SECURITY_README.md Security best practices and verification
DELETE_BEFORE_COMMIT.md Pre-commit checklist

AWS Setup

Step Guide Description
1 01-iam-setup.md IAM user and permissions
2 02-bedrock-setup.md Enable Bedrock models
3 03-s3-setup.md S3 bucket for media
4 04-dynamodb-setup.md DynamoDB tables
5 05-cloudwatch-setup.md CloudWatch logging
6 06-lambda-setup.md Lambda functions
7 07-media-services-setup.md Media analysis services

Quick References


πŸ“š Documentation

For Developers

For DevOps


πŸ› οΈ Technology Stack

Frontend

  • React + TypeScript + Vite
  • TailwindCSS for styling
  • Axios for API calls
  • Browser Extension (Vanilla JS)

Backend

  • Node.js + Express (API Gateway)
  • Python + FastAPI (Verification Engine & Media Analysis)
  • PostgreSQL (Database)
  • Redis (Caching)

AI & ML

  • AWS Bedrock (LLM inference)
    • Amazon Nova models
    • Mistral Pixtral
  • LangChain (Agent orchestration)
  • Custom AI Agents (Research, News, Scientific, Social)

AWS Services

  • Bedrock: LLM hosting
  • S3: Media storage
  • Lambda: Serverless functions
  • DynamoDB: NoSQL cache
  • CloudWatch: Logging & monitoring
  • Rekognition: Image analysis
  • Textract: Text extraction
  • Transcribe: Audio transcription

DevOps

  • Docker & Docker Compose
  • Playwright (E2E testing)
  • Pytest (Python testing)
  • Jest (JavaScript testing)

🀝 Contributing

We welcome contributions! Before contributing:

  1. Read security guidelines: SECURITY_README.md
  2. Never commit real credentials
  3. Follow the development plan: DEVELOPMENT_PLAN.md
  4. Run tests before submitting PRs

Development Workflow

# 1. Create a feature branch
git checkout -b feature/your-feature-name

# 2. Make your changes

# 3. Run tests
npm test                    # Frontend tests
pytest                      # Python tests
npm run test:e2e           # E2E tests

# 4. Verify no secrets
git diff --staged | grep -iE "AKIA|secret_access_key"
# Should return nothing!

# 5. Commit and push
git add .
git commit -m "feat: your feature description"
git push origin feature/your-feature-name

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments

  • AI4Bharat for the initiative
  • AWS for Bedrock and infrastructure services
  • Open-source community for amazing tools and libraries

πŸ“ž Support & Contact


⭐ Star History

If you find this project useful, please consider giving it a star! ⭐


Built with ❀️ by the ZeroTRUST AI4Bharat Team

Last Updated: March 3, 2026

About

Sanitized ZeroTRUST project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages