Skip to content

Repository files navigation

ThreatScope

AI-driven malware analysis framework — upload a PE/ELF binary, run it through a multi-phase analysis pipeline powered by Claude AI + Ghidra, and view results in a React dashboard.

Features

  • Multi-phase analysis pipeline (file ID → static/dynamic → Ghidra reverse engineering → AI report)
  • Claude AI agents for automated binary reverse engineering
  • Static analysis: CAPA, YARA, string extraction, threat intelligence
  • Dynamic analysis: Tracee syscall tracing, GDB debugging
  • MITRE ATT&CK mapping
  • MCP server for external AI agent integration
  • React dashboard with real-time task tracking

Dashboard

Quick Start

Docker (Recommended)

cp .env.example .env   # Set ANTHROPIC_API_KEY
docker-compose up -d

Access at http://localhost

Local Development

# Backend
uv sync --extra api --extra ai
uv run uvicorn src.threatscope.api:app --host 0.0.0.0 --port 8000 --reload

# Frontend
cd frontend && npm install && npm run dev

Architecture

Upload → Phase 1 (File ID) → Phase 2 (Static + Dynamic) → Phase 3 (Ghidra AI) → Phase 4 (Report)
Service Role
nginx Reverse proxy
backend FastAPI + analysis engine
frontend React SPA
ghidra Headless Ghidra + MCP
diec File type detection
gdb / gdb-target Dynamic debugging sandbox

Screenshots

Tasks

Report

Tech Stack

Layer Technology
AI Claude Agent SDK
Backend FastAPI, SQLite
Frontend React 19, TanStack Query, Tailwind, shadcn/ui
RE Ghidra (headless)
Deployment Docker Compose, Nginx
Observability Langfuse

Development

uv run pytest              # Tests
uv run ruff check .        # Lint
uv run ruff format .       # Format
cd frontend && npm run lint

License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages