How mohitpaddhariya/snoop works
Investigators submit an APK through the dashboard; the API creates a case and invokes the analysis orchestrator, which extracts static evidence, optionally runs controlled dynamic analysis, parses network captures, correlates signals into C2 priorities, maps behavior to MITRE ATT&CK, and produces plain-language findings. Results are stored and exposed for case review and PDF evidence reports. The README documents enrichment, AI narration, and legal worksheet capabilities; dynamic execution is fail-closed/code-only in the sampled backend excerpt. Unshown subsystem links are omitted where invocation evidence is unavailable.
Main entry points: orchestrator.py Analysis orchestrator · routes.py Case routes · analyzer.py Dynamic analyzer · page.tsx Case dashboard
Components 26
Investigator dashboard
- Case dashboard
frontend/app/page.tsx - Upload interface
frontend/components/Uploader.tsx - API client
frontend/lib/api.ts - Analysis route
frontend/app/api/analyze/route.ts
Case API and evidence
- Case routes
backend/app/api/routes.py - Case database
backend/app/db.py - Case records
backend/app/models.py - Evidence trace
backend/app/tracing.py - PDF route
frontend/app/api/cases/[id]/report.pdf/route.ts
APK analysis pipeline
- Analysis orchestrator
backend/app/pipeline/orchestrator.py - Static APK analysis
backend/app/pipeline/static_engine.py - IOC extraction
backend/app/pipeline/ioc_extractor.py - PCAP analysis
backend/app/pipeline/pcap_engine.py - Threat enrichment
backend/app/pipeline/enrichment.py - C2 scoring
backend/app/pipeline/c2_scorer.py - MITRE mapping
backend/app/pipeline/mitre.py - AI summaries
backend/app/pipeline/ai_summarizer.py - Result schemas
backend/app/schemas.py
Dynamic sandbox
- Dynamic analyzer
engine/dynamic/analyzer.py - Sandbox capture
engine/dynamic/capture.py - Emulator backend
engine/dynamic/backends.py - Behavior normalizer
engine/dynamic/normalizer.py
Results and reporting
- Case results
frontend/components/CaseReport.tsx - Correlation view
frontend/components/CorrelationView.tsx - Evidence PDF
backend/app/report/builder.py
Other components
- Investigator
Connections 26
- Investigator → Case dashboard: reviews cases
README.md - Case dashboard → Upload interface: starts upload
- Upload interface → API client: submits APK
- API client → Analysis route: sends request
frontend/lib/api.ts - Analysis route → Case routes: calls backend
- Case routes → Analysis orchestrator: runs analysis
backend/app/api/routes.py - Case routes → Case database: persists cases
backend/app/api/routes.py - Case database → Case records: stores records
backend/app/db.py - Case routes → Evidence trace: records custody
backend/app/api/routes.py - Analysis orchestrator → Static APK analysis: analyzes APK
backend/app/pipeline/orchestrator.py - Static APK analysis → IOC extraction: extracts indicators
backend/app/pipeline/static_engine.py - Analysis orchestrator → PCAP analysis: parses capture
backend/app/pipeline/orchestrator.py - Analysis orchestrator → Dynamic analyzer: runs optionally
backend/app/pipeline/orchestrator.py - Dynamic analyzer → Emulator backend: drives emulator
- Dynamic analyzer → Sandbox capture: collects behavior
- Dynamic analyzer → Behavior normalizer: normalizes events
- Analysis orchestrator → Threat enrichment: enriches findings
backend/app/pipeline/orchestrator.py - Analysis orchestrator → C2 scoring: scores evidence
backend/app/pipeline/orchestrator.py - Analysis orchestrator → MITRE mapping: maps behavior
backend/app/pipeline/orchestrator.py - Analysis orchestrator → AI summaries: adds narration
backend/app/pipeline/orchestrator.py - Case routes → Evidence PDF: builds report
backend/app/api/routes.py - Case routes → Case results: serves results
- Case results → Correlation view: shows correlations
- PDF route → Case routes: requests report
- Analysis orchestrator → Result schemas: builds result
backend/app/pipeline/orchestrator.py - Evidence PDF → Result schemas: renders findings
backend/app/report/builder.py