How f3rb123/beetle works
Beetle is an offline-first mobile application security platform. An authenticated analyst uploads an APK, IPA, or supported repository archive; the backend decompiles and analyzes it, then presents evidence-backed findings, attack paths, and source locations in an investigation workspace. Deterministic intelligence and reporting are core capabilities; AI interpretation is optional. The README documents several capabilities whose implementation was not sampled, so their links are shown as unverified where needed. Source excerpts and the index support only the cited relationships; unsampled implementation details are not assumed.
Main entry points: main.py API and scan orchestration · canonical_finding.py Canonical findings · Results.jsx Investigation workspace · decompiler.py App decompilation
Components 26
Analyst experience
- Web application
frontend/src/App.jsx - Scan workflow
frontend/src/pages/ScanApp.jsx - Investigation workspace
frontend/src/pages/Results.jsx - Finding views
frontend/src/components/workspace/SectionViews.jsx - Source explorer
frontend/src/components/workspace2/SourceExplorer.jsx
Scanning and analysis
- App decompilation
backend/decompiler.py - Platform analyzers
backend/analyzers - Taint analysis
backend/analyzers/taint_analyzer.py - Binary inspection
backend/analyzers/binary_inspector.py
Finding intelligence
- Canonical findings
backend/analyzers/canonical_finding.py - Ownership classification
backend/analyzers/ownership/engine.py - Evidence selection
backend/analyzers/evidence_selection/engine.py - Finding fusion
backend/analyzers/fusion/engine.py - Attack chains
backend/analyzers/attack_chains/engine.py - Optional AI assistance
backend/ai_actions.py
Reports and integrations
- PDF reports
backend/report/pdf_generator.py - Compliance reports
backend/report/compliance_pdf.py - CycloneDX SBOM
backend/report/sbom_generator.py - SARIF export
backend/sarif_exporter.py - Webhooks
backend/webhooks.py - CI policy gating
backend/policy.py
Platform services
- API and scan orchestration
backend/main.py - Scan and source storage
backend/analyzers/scan_storage.py - Scan history database
backend/database.py - Authentication
backend/auth.py
Other components
- Security analyst
Connections 27
- Security analyst → Web application: uses
- Web application → Scan workflow: routes to
frontend/src/App.jsx - Web application → Investigation workspace: routes to
frontend/src/App.jsx - Scan workflow → API and scan orchestration: submits scan
- API and scan orchestration → App decompilation: invokes
backend/main.py - App decompilation → Scan and source storage: uses
backend/decompiler.py - App decompilation → Binary inspection: uses
backend/decompiler.py - App decompilation → Platform analyzers: uses
backend/decompiler.py - Platform analyzers → Taint analysis: includes
- Platform analyzers → Canonical findings: produces
backend/analyzers/ownership/engine.py - Canonical findings → Ownership classification: classified by
backend/analyzers/ownership/engine.py - Canonical findings → Evidence selection: selected by
backend/analyzers/evidence_selection/engine.py - Canonical findings → Finding fusion: fused by
backend/analyzers/fusion/engine.py - Canonical findings → Attack chains: correlated by
backend/analyzers/attack_chains/engine.py - API and scan orchestration → Scan history database: uses
backend/main.py - Scan history database → Canonical findings: normalizes
backend/database.py - API and scan orchestration → Authentication: uses
backend/main.py - Investigation workspace → Finding views: renders
frontend/src/pages/Results.jsx - Investigation workspace → Source explorer: provides navigation
- Investigation workspace → API and scan orchestration: loads results
- API and scan orchestration → Optional AI assistance: offers optional assistance
backend/main.py - API and scan orchestration → PDF reports: generates
backend/main.py - API and scan orchestration → Compliance reports: generates
backend/main.py - API and scan orchestration → CycloneDX SBOM: generates
backend/main.py - API and scan orchestration → SARIF export: exports
backend/main.py - API and scan orchestration → Webhooks: dispatches
backend/main.py - API and scan orchestration → CI policy gating: applies
backend/main.py