How 0xcyberberserker/ghosttrace-lab works
GhostTrace is a reverse-engineering and malware-analysis workspace centered on uploading a sample, running Ghidra static analysis, and presenting persistent job status and findings. The operator can enrich analysis with sandbox/debugger evidence, generate cached triage reports, and develop reconstruction targets, hypotheses, and draft artifacts. The README documents the broader service topology, including Ollama, RabbitMQ, and the Windows lab; those links are shown as documented rather than inferred from unsampled implementation. The excerpts establish key route and service relationships, but do not expose every runtime path.
Main entry points: webui/app.py Flask API · flask_api.py Ghidra service · runner/app.py Sandbox runner · job_service.py Job service
Components 27
Operator workspace
- Web interface
webui/static/js/analysis.js - Flask API
webui/app.py
Static analysis
- Ghidra client
webui/ghidra_client.py - Ghidra service
Ghidraaas/flask_api.py - Decompilation
Ghidraaas/ghidra_plugins/FunctionDecompile.py - Function listing
Ghidraaas/ghidra_plugins/FunctionsList.py - Function listing
Ghidraaas/ghidra_plugins/FunctionsListA.py - Import listing
Ghidraaas/ghidra_plugins/ImportsList.py - String listing
Ghidraaas/ghidra_plugins/StringsList.py
Evidence and reasoning
- Triage report
webui/triage_report.py - Analysis assistant
webui/ghidra_assistant.py - Assistant guidance
webui/assistant_guidance.py - Reconstruction service
webui/reconstruction_service.py - Reconstruction records
webui/reconstruction_record.py
Jobs and orchestration
- Job service
webui/job_service.py - Job store
webui/job_store.py - Job status
webui/job_status.py - Triage queue
webui/task_queue.py - Triage worker
webui/worker.py
Sandbox and debugging
- Sandbox client
webui/sandbox_client.py - Sandbox runner
sandbox/runner/app.py - Sandbox worker
sandbox/runner/worker.py
Other components
- Operator
- Ollama LLM
- RabbitMQ
- Windows lab
- x64dbg bridge
Connections 29
- Operator → Web interface: uses
- Web interface → Flask API: sends requests
- Flask API → Job service: routes job operations
webui/app.py - Job service → Job store: records jobs
webui/job_service.py - Job service → Job status: resolves status
webui/job_service.py - Job service → Ghidra client: queries analysis
webui/job_service.py - Ghidra client → Ghidra service: calls REST API
webui/ghidra_client.py - Ghidra service → Decompilation: provides decompilation
- Ghidra service → Function listing: provides functions
- Ghidra service → Function listing: provides functions
- Ghidra service → Import listing: provides imports
- Ghidra service → String listing: provides strings
- Flask API → Triage queue: queues triage
webui/app.py - Triage worker → Triage report: runs reports
webui/worker.py - Triage report → Ghidra service: fetches analysis
webui/triage_report.py - Flask API → Reconstruction service: generates targets
webui/app.py - Reconstruction service → Reconstruction records: uses records
webui/reconstruction_service.py - Flask API → Analysis assistant: serves assistant
webui/app.py - Flask API → Assistant guidance: builds guidance
webui/app.py - Analysis assistant → Ollama LLM: requests reasoning
- Flask API → Sandbox client: routes sandbox calls
webui/app.py - Sandbox client → Sandbox runner: sends HTTP requests
webui/sandbox_client.py - Sandbox runner → Flask API: forwards evidence
sandbox/runner/app.py - Sandbox runner → RabbitMQ: queues sandbox work
- Sandbox worker → Sandbox runner: starts queue worker
sandbox/runner/worker.py - Windows lab → Sandbox runner: shares bridge state
- Windows lab → x64dbg bridge: provides debugger context
- Sandbox runner → x64dbg bridge: exchanges findings
- Flask API → Job store: reads and writes state
webui/app.py