AI-Powered, Real-Time Ransomware Detection & Mitigation
Going far beyond signature-based scanning. Ransomware Shield unifies 19-feature Ensemble ML, BLAKE3 Static PE Analysis, Process-Attributed Honeyfile Traps, Live Network Threat Intelligence, and Groq LLaMA 3.1 remediation into a full-stack SOC platform.
Live Multi-Engine Threat Simulator
Test Ransomware Shield's weighted scoring formula in real time: VirusTotal (30%) + YARA (25%) + ML Classifier (25%) + Static PE (20%) plus the independent +20% Ransomware String Bonus.
4D 5A (MZ/PE32+)
Multi-Engine Signal Weights
Triggers on Bitcoin wallets, .onion URLs, YOUR FILES, or vssadmin
7 Integrated Security Engines
Every uploaded binary, file-system event, and outbound socket connection is inspected across seven specialized defense modules.
Industry-Grade Static PE Analyzer
Inspects Windows Executables without execution, extracting 19 ML-ready features in a single pass with BLAKE3 hashing (~14× faster) plus SHA-256, SHA-1, and MD5.
-
60+ Suspicious APIs: Crypto (
BCryptEncrypt), File Enum, Process Injection (WriteProcessMemory), Anti-Debug, Lateral Movement, & Shadow Copy deletion (vssadmin). -
Packer & Anomaly Checks: Detects
.upx,.aspack,.themida, Authenticode signatures, TLS callbacks, and section entropy.
Thread-Safe YARA Scanner Engine
High-throughput signature matching built for concurrent Celery worker execution with automated rule hot-reloading.
-
Thread-Safe Caching: Uses
threading.Lockwith individual filemtimecache invalidation across.yarand.yararules. - Forensic Match Extraction & ReDoS Guard: Extracts first 5 matched strings (× 64 bytes) with strict regex timeouts.
Ensemble ML Classifier (19 Features)
Soft-voting ensemble combining GradientBoosting + RandomForest trained on 15,550 samples across ransomware, trojans, droppers, worms, and packed malware.
- Validated Accuracy: Stratified 5-fold cross-validation achieving 99.96% precision and < 0.1% false negative rate.
- Heuristic Fallback: Multi-signal weighted heuristic guarantees uninterrupted scoring even before model training.
Generative AI Threat Explainer
Translates dense PE headers, YARA hits, and network telemetry into plain-English incident response playbooks via Groq (LLaMA 3.1) & LangChain.
- Rich Markdown SOC UI: Renders syntax-highlighted remediation commands, tables, and copy buttons in real time.
- Conversational Analyst: Interactive security chat assistant plus automated PDF executive report narratives.
Honeyfile Trap & Process Attribution
Active zero-day ransomware tripwire deploying realistic, non-trivial decoy files (passwords.txt, bitcoin_wallet.dat, tax_returns_2025.pdf).
-
PID & Entropy Forensics: Pinpoints offending process name/path via
psutiland flags entropy jumps> 7.0. -
Instant WebSocket Alerts: Broadcasts
CRITICALalerts over Django Channels with a 10s anti-flood cooldown.
Live Network Monitor & Threat Intel
Real-time socket telemetry enriched with Emerging Threats IP feeds, MaxMind GeoLite2 country resolution, and ARP Spoofing MitM detection.
-
C2 & Beaconing Detection: Flags C2/mining ports (
4444,8443,9001,3333) and detects periodic callbacks via coefficient of variation. - 0–100 Connection Risk Score: Maps every socket to its owning PID, executable path, and user account.
Normalized Scan Pipeline & Zero-Overwrite Security
Orchestrates VirusTotal (30%), YARA (25%), Ensemble ML (25%), and Static PE Analysis (20%) with an independent +20% ransomware indicator boost. Enforces magic-byte file verification (never trusting extensions), Celery task timeouts (5m hard / 4m soft), and zero-overwrite secure file deletion post-analysis.
Interactive System Architecture
Click any architectural layer below to inspect its protocols, asynchronous workers, and underlying Python/JavaScript libraries.
React 18 SOC Frontend Interface
Built with React 18, Vite, and Tailwind CSS to deliver a responsive Security Operations Center dashboard. Uses Zustand for low-overhead global alert state, Recharts for 7-day threat timelines, and React Markdown with syntax highlighting for ChatGPT-style AI threat explanations.
Platform Screenshots
Explore the real-time SOC dashboard, live socket risk scoring, Groq LLaMA 3.1 markdown explanations, MitM ARP spoofing alerts, and downloadable PDF reports. Click any screenshot to inspect full-screen.
Dashboard Overview
High-level overview of threat scores, clear rates, and recent scans.
Live Network Analysis
Real-time connection monitoring with process names, risk scores, and IP reputation.
AI Threat Explainer
LLaMA 3.1 conversational security analyst with ChatGPT-style markdown rendering.
Live MitM ARP Alerts
Global warning for active Man-in-the-Middle ARP spoofing attacks.
Advanced Scanner Engine
Multi-engine scan with BLAKE3 hashing, AI explanation, VT results, and ransomware indicators.
Post-Scan PDF Reports
Detailed downloadable reports featuring AI severity explanations.
Quickstart Installation
Requires Python 3.10+, Node.js v18+, Redis (`localhost:6379`), and API keys for VirusTotal & Groq.
git clone https://github.com/rudra00434/Ransomware_Shield.git
cd Ransomware_Shield/backend
# Create & activate virtual environment
python -m venv venv
# Windows: venv\Scripts\activate | Mac/Linux: source venv/bin/activate
pip install -r requirements.txt
# Add GROQ_API_KEY & VT_API_KEY to .env
python manage.py migrate
python -m ai_engine.ml.train_model
python manage.py runserver
Interactive API Explorer
Rate Limits: 20 req/min (Anonymous) • 100 req/min (JWT Authenticated).
// GET /api/scanner/jobs/42/ (200 OK)
{
"id": 42,
"status": "COMPLETED",
"file_name": "suspicious_file.exe",
"result": {
"threat_level": "HIGH",
"detection_count": 3,
"engine_results": {
"static_analysis": { "entropy": 7.84, "suspicious_apis": 9 },
"yara_matches": ["Ransomware_LockBit_Strings"],
"ml_prediction": { "label": "Ransomware", "confidence": 0.994 },
"virustotal": { "malicious": 48, "total": 72 }
}
}
}