How faqih-rus/safira-pentest works
SAFIRA is a filesystem-backed pentest CLI. A user creates or selects an engagement, then runs a playbook that orchestrates recon and scanning plugins through a manual handoff; findings are stored for verification, remediation and reporting. Users can also select tools manually or use the methods catalog. The graph preserves the documented plugin families and lifecycle capabilities. Some subsystem paths are directories because their individual implementations were not sampled; unshown links are omitted rather than inferred.
Main entry points: base.py Plugin contract · cli.py Command CLI · store.py Engagement files · engine.py Playbook engine
Components 27
User entry
- Command CLI
cli.py - Interactive menu
ui.py
Playbook runtime
- Playbook engine
core/engine.py - Run context
core/context.py - Plugin registry
core/plugin_manager.py - Plugin contract
plugins/base.py
Testing plugins
- Recon tools
plugins/recon - Scanners
plugins/scanners - Web tools
plugins/web - Cloud tools
plugins/cloud - Exploit tools
plugins/exploit - Manual verification
plugins/manual - CLI tool runner
plugins/clitool.py
Findings lifecycle
- Engagement files
store.py - Finding model
models/finding.py - Finding lifecycle
core/state_machine.py - MSF verification
msfverify.py - MSF module catalog
msfcatalog.py - MCP client
mcp_client.py - VOT verification
votverify.py
Reporting and tools
- Methods catalog
methods.py - Report generator
report.py - Tool checker
toolcheck.py
Other components
- Pentester
- External tools
- Metasploit MCP server
- Report files
Connections 34
- Pentester → Command CLI: runs commands
- Pentester → Interactive menu: opens menu
- Command CLI → Playbook engine: starts runs
cli.py - Interactive menu → Playbook engine: starts runs
ui.py - Playbook engine → Plugin registry: resolves plugins
core/engine.py - Playbook engine → Run context: creates context
core/engine.py - Playbook engine → Plugin contract: runs plugin
core/engine.py - Plugin registry → Plugin contract: registers plugins
core/plugin_manager.py - Recon tools → Plugin contract: implements contract
plugins/recon/credleak.py - Scanners → Plugin contract: implements contract
plugins/scanners/nuclei.py - Web tools → Plugin contract: implements contract
plugins/web/ffuf.py - Cloud tools → Plugin contract: implements contract
plugins/cloud/prowler.py - Exploit tools → Plugin contract: implements contract
plugins/exploit/netexec.py - Manual verification → Plugin contract: implements contract
plugins/manual/manual_verification.py - Plugin contract → CLI tool runner: extends runner
plugins/clitool.py - CLI tool runner → Tool checker: checks binary
plugins/clitool.py - CLI tool runner → External tools: executes tools
plugins/clitool.py - Command CLI → Engagement files: manages engagement
cli.py - Command CLI → MSF verification: runs verification
cli.py - Command CLI → Report generator: requests reports
cli.py - Command CLI → Methods catalog: loads methods
cli.py - Command CLI → Tool checker: checks tools
cli.py - Interactive menu → Engagement files: reads engagement
ui.py - Interactive menu → Methods catalog: loads methods
ui.py - Engagement files → Finding model: stores findings
- Finding model → Finding lifecycle: transitions state
models/finding.py - Engagement files → Finding lifecycle: uses lifecycle
store.py - MSF verification → Engagement files: updates findings
- MSF verification → MSF module catalog: assesses modules
msfverify.py - MSF verification → MCP client: executes plan
msfverify.py - MCP client → Metasploit MCP server: calls tools
- VOT verification → MSF verification: uses MSF verification
votverify.py - Report generator → Engagement files: reads findings
- Report generator → Report files: renders reports