secfoo 0.3.1__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {secfoo-0.3.1 → secfoo-0.3.2}/.gitignore +8 -0
- secfoo-0.3.2/PKG-INFO +332 -0
- secfoo-0.3.2/README.md +270 -0
- secfoo-0.3.2/pyproject.toml +125 -0
- secfoo-0.3.2/src/secfoo/__about__.py +1 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/agents/__init__.py +1 -1
- secfoo-0.3.2/src/secfoo/agents/api.py +765 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/agents/base.py +50 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/agents/claude.py +22 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/agents/codex.py +26 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/agents/copilot.py +108 -2
- secfoo-0.3.2/src/secfoo/agents/cursor.py +47 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/agents/droid.py +20 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/agents/gemini.py +14 -1
- secfoo-0.3.2/src/secfoo/agents/mcp_tools.py +312 -0
- secfoo-0.3.2/src/secfoo/agents/model_info.py +20 -0
- secfoo-0.3.2/src/secfoo/agents/models.py +301 -0
- secfoo-0.3.2/src/secfoo/agents/opencode.py +85 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/agents/registry.py +3 -1
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/aibom.py +46 -0
- secfoo-0.3.2/src/secfoo/cli.py +3139 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/cloud.py +65 -10
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/config.example.toml +21 -5
- secfoo-0.3.2/src/secfoo/config.py +75 -0
- secfoo-0.3.2/src/secfoo/context_brief.py +530 -0
- secfoo-0.3.2/src/secfoo/context_run.py +62 -0
- secfoo-0.3.2/src/secfoo/context_sources.py +184 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/cvss.py +4 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/docext.py +66 -2
- secfoo-0.3.2/src/secfoo/egress.py +58 -0
- secfoo-0.3.2/src/secfoo/mcp.py +390 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/memory.py +35 -16
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/osv.py +2 -2
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/report/architecture.py +42 -13
- secfoo-0.3.2/src/secfoo/report/baseline.py +195 -0
- secfoo-0.3.2/src/secfoo/report/context_coverage.py +340 -0
- secfoo-0.3.2/src/secfoo/report/evidence.py +51 -0
- secfoo-0.3.2/src/secfoo/report/gitlab.py +178 -0
- secfoo-0.3.2/src/secfoo/report/jsonl.py +16 -0
- secfoo-0.3.2/src/secfoo/report/markdown.py +453 -0
- secfoo-0.3.2/src/secfoo/report/responsible_ai.py +370 -0
- secfoo-0.3.2/src/secfoo/report/sarif.py +160 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/report/sast.py +128 -23
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/report/sca.py +10 -10
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/report/secret_scanning.py +26 -10
- secfoo-0.3.2/src/secfoo/report/severity.py +150 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/runner.py +315 -49
- secfoo-0.3.2/src/secfoo/runtime/__init__.py +5 -0
- secfoo-0.3.2/src/secfoo/runtime/api.py +273 -0
- secfoo-0.3.2/src/secfoo/runtime/client.py +85 -0
- secfoo-0.3.2/src/secfoo/runtime/conformance/__init__.py +1 -0
- secfoo-0.3.2/src/secfoo/runtime/conformance/kit.py +223 -0
- secfoo-0.3.2/src/secfoo/runtime/conformance/sample_app.py +62 -0
- secfoo-0.3.2/src/secfoo/runtime/conformance/vulnerable.py +10 -0
- secfoo-0.3.2/src/secfoo/runtime/correlation.py +222 -0
- secfoo-0.3.2/src/secfoo/runtime/coverage_import.py +213 -0
- secfoo-0.3.2/src/secfoo/runtime/developer.py +192 -0
- secfoo-0.3.2/src/secfoo/runtime/evidence.py +365 -0
- secfoo-0.3.2/src/secfoo/runtime/evidence.schema.json +74 -0
- secfoo-0.3.2/src/secfoo/runtime/inventory.py +294 -0
- secfoo-0.3.2/src/secfoo/runtime/keys.py +104 -0
- secfoo-0.3.2/src/secfoo/runtime/protocol.py +95 -0
- secfoo-0.3.2/src/secfoo/runtime/protocol.schema.json +60 -0
- secfoo-0.3.2/src/secfoo/runtime/watchlist.py +204 -0
- secfoo-0.3.2/src/secfoo/runtime/watchlist.schema.json +39 -0
- secfoo-0.3.2/src/secfoo/sensor/__init__.py +52 -0
- secfoo-0.3.2/src/secfoo/sensor/__main__.py +29 -0
- secfoo-0.3.2/src/secfoo/sensor/probe.py +547 -0
- secfoo-0.3.2/src/secfoo/sensor/transport.py +309 -0
- secfoo-0.3.2/src/secfoo/settings.py +463 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/skills/definitions/responsible-ai-compliance.md +13 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/skills/definitions/secret-scanning.md +7 -6
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/skills/definitions/security-architecture-review.md +3 -2
- secfoo-0.3.2/src/secfoo/skills/loader.py +437 -0
- secfoo-0.3.2/src/secfoo/skills/packs.py +247 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/skills/renderer.py +191 -19
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/storage/models.py +36 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/storage/repository.py +637 -64
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/storage/schema.sql +203 -2
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/storage/schema_indexes.sql +4 -0
- secfoo-0.3.2/src/secfoo/targets/diff.py +156 -0
- secfoo-0.3.2/src/secfoo/targets/forge.py +64 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/targets/github.py +23 -2
- secfoo-0.3.2/src/secfoo/targets/resolver.py +131 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/app.py +23 -1
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/architecture_dashboard.py +8 -2
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/dashboard_common.py +4 -12
- secfoo-0.3.2/src/secfoo/web/port_guard.py +141 -0
- secfoo-0.3.2/src/secfoo/web/responsible_ai_dashboard.py +234 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/routes/activities.py +39 -6
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/routes/assessments.py +115 -19
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/routes/overview.py +5 -1
- secfoo-0.3.2/src/secfoo/web/routes/projects.py +98 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/routes/responsible_ai.py +10 -1
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/routes/runs.py +52 -11
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/sast_dashboard.py +3 -1
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/sca_dashboard.py +59 -3
- secfoo-0.3.2/src/secfoo/web/sca_runtime.py +205 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/secret_scanning_dashboard.py +2 -1
- secfoo-0.3.2/src/secfoo/web/security.py +146 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/css/dashboard.css +8 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/js/interactive.js +19 -6
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/architecture_dashboard.html +3 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/detail.html +11 -8
- secfoo-0.3.2/src/secfoo/web/templates/activities/responsible_ai_dashboard.html +208 -0
- secfoo-0.3.2/src/secfoo/web/templates/activities/responsible_ai_dimensions.html +101 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/sast_finding_detail.html +8 -1
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/sast_findings_list.html +1 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/sca_dashboard.html +16 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/sca_vulnerabilities_list.html +8 -2
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/sca_vulnerability_detail.html +60 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/secret_scanning_dashboard.html +3 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/threat_modeling_dashboard.html +27 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/assessments/detail.html +30 -1
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/assessments/run.html +4 -3
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/base.html +16 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/overview.html +33 -5
- secfoo-0.3.2/src/secfoo/web/templates/project.html +96 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/responsible_ai.html +20 -1
- secfoo-0.3.2/src/secfoo/web/templates/run_detail.html +226 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/third_party.html +4 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templating.py +49 -3
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/third_party_dashboard.py +8 -2
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/threat_modeling_dashboard.py +40 -3
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/top_findings.py +8 -2
- secfoo-0.3.1/PKG-INFO +0 -160
- secfoo-0.3.1/README.md +0 -116
- secfoo-0.3.1/pyproject.toml +0 -88
- secfoo-0.3.1/src/secfoo/__about__.py +0 -1
- secfoo-0.3.1/src/secfoo/agents/api.py +0 -344
- secfoo-0.3.1/src/secfoo/agents/cursor.py +0 -26
- secfoo-0.3.1/src/secfoo/cli.py +0 -1623
- secfoo-0.3.1/src/secfoo/config.py +0 -35
- secfoo-0.3.1/src/secfoo/mcp.py +0 -179
- secfoo-0.3.1/src/secfoo/report/markdown.py +0 -188
- secfoo-0.3.1/src/secfoo/report/severity.py +0 -59
- secfoo-0.3.1/src/secfoo/settings.py +0 -140
- secfoo-0.3.1/src/secfoo/skills/loader.py +0 -87
- secfoo-0.3.1/src/secfoo/targets/resolver.py +0 -50
- secfoo-0.3.1/src/secfoo/web/routes/projects.py +0 -31
- secfoo-0.3.1/src/secfoo/web/templates/project.html +0 -51
- secfoo-0.3.1/src/secfoo/web/templates/run_detail.html +0 -106
- {secfoo-0.3.1 → secfoo-0.3.2}/LICENSE +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/__init__.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/agents/antigravity.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/agents/devin.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/attachments.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/cost.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/report/__init__.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/report/code_region.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/skills/__init__.py +1 -1
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/skills/definitions/deployment-readiness.md +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/skills/definitions/prompt-review.md +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/skills/definitions/sast.md +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/skills/definitions/sca-reachability.md +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/skills/definitions/third-party-risk-assessment.md +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/skills/definitions/threat-modeling.md +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/stack.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/storage/__init__.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/targets/__init__.py +1 -1
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/__init__.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/finding_filters.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/routes/__init__.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/routes/agents.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/routes/third_party.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/run_status.py +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/README.md +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/base.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/alerts.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/badges.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/buttons.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/cards.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/code.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/conformance-bar.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/dark.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/dashboard.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/donut.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/forms.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/logo.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/modal.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/navigation.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/run-ui.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/segmented-control.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/severity-bar.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/sidebar.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/stacked-bar.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/stat-card.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/tables.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/tabs.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/themes.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/components/workflow.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/demo.html +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/design-system.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/design-system/tokens.css +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/js/live-run.js +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/js/mermaid-init.js +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/js/palette.js +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/js/run-form.js +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/static/js/theme.js +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/_icons.html +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/_macros.html +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/_page.html +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/architecture_standards.html +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/sast_dashboard.html +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/secret_scanning_finding_detail.html +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/secret_scanning_findings_list.html +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/threat_modeling_accepted.html +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/threat_modeling_assumptions.html +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/activities/threat_modeling_post_build.html +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/agents.html +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/assessments/list.html +0 -0
- {secfoo-0.3.1 → secfoo-0.3.2}/src/secfoo/web/templates/assessments/new.html +0 -0
|
@@ -4,6 +4,10 @@ __pycache__/
|
|
|
4
4
|
*.egg-info/
|
|
5
5
|
.pytest_cache/
|
|
6
6
|
.ruff_cache/
|
|
7
|
+
# pytest --cov output (CI uploads coverage.xml as an artifact instead).
|
|
8
|
+
.coverage
|
|
9
|
+
.coverage.*
|
|
10
|
+
coverage.xml
|
|
7
11
|
build/
|
|
8
12
|
dist/
|
|
9
13
|
.DS_Store
|
|
@@ -33,3 +37,7 @@ node_modules/
|
|
|
33
37
|
# packaging exclusion filter, so ignoring it here silently drops the
|
|
34
38
|
# dashboard's CSS from every built wheel/sdist. Re-run the sync script
|
|
35
39
|
# after editing design-system/ and commit the result.
|
|
40
|
+
|
|
41
|
+
# uv writes a lockfile when you `uv run` inside the checkout; the project
|
|
42
|
+
# does not pin dependencies that way.
|
|
43
|
+
uv.lock
|
secfoo-0.3.2/PKG-INFO
ADDED
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: secfoo
|
|
3
|
+
Version: 0.3.2
|
|
4
|
+
Summary: AI security review CLI: SAST, secret scanning, SCA, threat modeling and architecture review with Claude Code, Copilot, Codex, Gemini, Cursor or an API key. Reads your design docs, Confluence and Jira through MCP. SARIF output for CI.
|
|
5
|
+
Project-URL: Homepage, https://secfoo.com
|
|
6
|
+
Project-URL: Documentation, https://secfoo.com/docs/index.html
|
|
7
|
+
Project-URL: Source, https://github.com/secfoo-com/secfoo
|
|
8
|
+
Project-URL: Changelog, https://github.com/secfoo-com/secfoo/releases
|
|
9
|
+
Project-URL: Issues, https://github.com/secfoo-com/secfoo/issues
|
|
10
|
+
Project-URL: CI integration, https://github.com/secfoo-com/secfoo/blob/main/docs/CI.md
|
|
11
|
+
Author-email: RakFort <info@rakfort.com>
|
|
12
|
+
License-Expression: MIT
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Keywords: ai-security,appsec,ci,claude-code,code-review,codex,compliance,confluence,context-aware,copilot,cursor,devsecops,gemini,llm,llm-agent,mcp,owasp,sarif,sast,sca,secret-scanning,security,security-architecture,security-scanner,static-analysis,stride,threat-modeling
|
|
15
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Environment :: Console
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: Intended Audience :: Information Technology
|
|
19
|
+
Classifier: Intended Audience :: System Administrators
|
|
20
|
+
Classifier: Natural Language :: English
|
|
21
|
+
Classifier: Operating System :: OS Independent
|
|
22
|
+
Classifier: Programming Language :: Python :: 3
|
|
23
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
28
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
29
|
+
Classifier: Topic :: Security
|
|
30
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
31
|
+
Classifier: Topic :: Software Development :: Testing
|
|
32
|
+
Requires-Python: >=3.10
|
|
33
|
+
Requires-Dist: click<9,>=8.5.1
|
|
34
|
+
Requires-Dist: fastapi>=0.162.5
|
|
35
|
+
Requires-Dist: jinja2>=3.1.6
|
|
36
|
+
Requires-Dist: langgraph>=1.2.24
|
|
37
|
+
Requires-Dist: litellm>=1.110.2
|
|
38
|
+
Requires-Dist: markdown-it-py>=4.3.0
|
|
39
|
+
Requires-Dist: mcp<2,>=1.12
|
|
40
|
+
Requires-Dist: pypdf>=7.1.1
|
|
41
|
+
Requires-Dist: python-docx>=1.2.0
|
|
42
|
+
Requires-Dist: python-multipart>=0.0.32
|
|
43
|
+
Requires-Dist: python-pptx>=1.0.2
|
|
44
|
+
Requires-Dist: rich>=15.0.0
|
|
45
|
+
Requires-Dist: tomli>=2.0; python_version < '3.11'
|
|
46
|
+
Requires-Dist: tomlkit>=0.13.0
|
|
47
|
+
Requires-Dist: typer>=0.29.1
|
|
48
|
+
Requires-Dist: uvicorn[standard]>=0.54.0
|
|
49
|
+
Provides-Extra: build
|
|
50
|
+
Requires-Dist: pyinstaller>=6.22.3; extra == 'build'
|
|
51
|
+
Provides-Extra: dev
|
|
52
|
+
Requires-Dist: bandit>=1.9.4; extra == 'dev'
|
|
53
|
+
Requires-Dist: httpx>=0.28.1; extra == 'dev'
|
|
54
|
+
Requires-Dist: hypothesis>=6.168.5; extra == 'dev'
|
|
55
|
+
Requires-Dist: jsonschema>=4.26.0; extra == 'dev'
|
|
56
|
+
Requires-Dist: langgraph>=1.2.24; extra == 'dev'
|
|
57
|
+
Requires-Dist: pip-audit>=2.10.1; extra == 'dev'
|
|
58
|
+
Requires-Dist: pytest-cov>=7.1.0; extra == 'dev'
|
|
59
|
+
Requires-Dist: pytest>=9.2.0; extra == 'dev'
|
|
60
|
+
Requires-Dist: ruff==0.17.6; extra == 'dev'
|
|
61
|
+
Description-Content-Type: text/markdown
|
|
62
|
+
|
|
63
|
+
<p align="center">
|
|
64
|
+
<img src="https://raw.githubusercontent.com/secfoo-com/secfoo/main/docs/assets/terminal.gif" alt="secfoo run on OWASP NodeGoat: SAST and secret scanning finish with 6 and 3 High findings, one finding is shown (server-side JS injection via eval on a POST body), then the findings are exported as SARIF" width="900">
|
|
65
|
+
</p>
|
|
66
|
+
|
|
67
|
+
# secfoo — AI security review CLI
|
|
68
|
+
|
|
69
|
+
<p align="center">
|
|
70
|
+
<strong>Turn the coding agent you already have into a disciplined security reviewer.</strong><br>
|
|
71
|
+
SAST, secret scanning, SCA, threat modeling and architecture review, with your design docs, Confluence and tickets as context.<br>
|
|
72
|
+
Same checklist, same report shape, every run.
|
|
73
|
+
</p>
|
|
74
|
+
|
|
75
|
+
<p align="center">
|
|
76
|
+
<a href="https://pypi.org/project/secfoo/"><img src="https://img.shields.io/pypi/v/secfoo" alt="PyPI"></a>
|
|
77
|
+
<a href="https://pypi.org/project/secfoo/"><img src="https://img.shields.io/pypi/dm/secfoo" alt="PyPI downloads"></a>
|
|
78
|
+
<a href="https://github.com/secfoo-com/secfoo/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/secfoo-com/secfoo/ci.yml" alt="CI"></a>
|
|
79
|
+
<a href="https://scorecard.dev/viewer/?uri=github.com/secfoo-com/secfoo"><img src="https://api.scorecard.dev/projects/github.com/secfoo-com/secfoo/badge" alt="OpenSSF Scorecard"></a>
|
|
80
|
+
<a href="https://github.com/secfoo-com/secfoo/blob/main/LICENSE"><img src="https://img.shields.io/github/license/secfoo-com/secfoo" alt="MIT license"></a>
|
|
81
|
+
</p>
|
|
82
|
+
|
|
83
|
+
<p align="center">
|
|
84
|
+
<a href="https://secfoo.com">Website</a> ·
|
|
85
|
+
<a href="https://secfoo.com/docs/index.html#install">Getting started</a> ·
|
|
86
|
+
<a href="https://secfoo.com/docs/cli.html">CLI</a> ·
|
|
87
|
+
<a href="https://github.com/secfoo-com/secfoo/blob/main/docs/CI.md">CI guide</a> ·
|
|
88
|
+
<a href="https://github.com/secfoo-com/secfoo/blob/main/examples/sample-output/nodegoat">Sample output</a>
|
|
89
|
+
</p>
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
uvx secfoo run --skill sast --skill secret-scanning --target https://github.com/OWASP/NodeGoat
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
That is the whole first run. No config file: secfoo picks the agent you
|
|
96
|
+
already have on `PATH` (Claude Code, Codex, Gemini CLI, Copilot, Cursor,
|
|
97
|
+
Antigravity, OpenCode, ...) or, if none is installed, uses the
|
|
98
|
+
`OPENAI_API_KEY` / `ANTHROPIC_API_KEY` / `GEMINI_API_KEY` already in your
|
|
99
|
+
shell. Pass `--agent` to choose. Keep it around with `pipx install secfoo`
|
|
100
|
+
or `pip install secfoo`; more channels under [Install](#install).
|
|
101
|
+
|
|
102
|
+
## Context, not just code
|
|
103
|
+
|
|
104
|
+
A code repository is one input. Real reviews also need the design doc, the
|
|
105
|
+
threat model from last year, the runbook and the ticket that explains why the
|
|
106
|
+
odd thing is there. secfoo passes that context to the agent through
|
|
107
|
+
[MCP](https://modelcontextprotocol.io) and asks the skills to use it:
|
|
108
|
+
the architecture review compares what is *documented* (the provided
|
|
109
|
+
documentation sources, README, ADRs) with what is *implemented* and reports
|
|
110
|
+
the gaps; secret scanning covers linked documentation sources as well as code;
|
|
111
|
+
every report ends with a coverage section that says which documentation sources
|
|
112
|
+
were reached and which were not.
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
secfoo run --skill security-architecture-review --skill threat-modeling \
|
|
116
|
+
--target https://github.com/org/payments-api \
|
|
117
|
+
--context https://yourcompany.atlassian.net/wiki/spaces/PAY/pages/123/Architecture \
|
|
118
|
+
--context ../design-docs/threat-model.pdf
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Connect remote documentation sources once in `~/.secfoo/config.toml`; any MCP
|
|
122
|
+
server works, so the same applies to SharePoint and Microsoft 365, Jira,
|
|
123
|
+
Notion, Google Docs or an internal wiki:
|
|
124
|
+
|
|
125
|
+
```toml
|
|
126
|
+
[[mcp_servers]]
|
|
127
|
+
name = "Atlassian-Rovo-MCP" # Confluence + Jira, official Atlassian server
|
|
128
|
+
command = "npx"
|
|
129
|
+
args = ["-y", "mcp-remote@latest", "https://mcp.atlassian.com/v1/mcp/authv2"]
|
|
130
|
+
|
|
131
|
+
[[mcp_servers]]
|
|
132
|
+
name = "sharepoint" # any HTTP/SSE MCP server
|
|
133
|
+
url = "https://mcp.example.com/sharepoint"
|
|
134
|
+
transport = "http"
|
|
135
|
+
headers = { Authorization = "Bearer ..." }
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
| Context | How it gets in | Used by |
|
|
139
|
+
|---|---|---|
|
|
140
|
+
| Documentation sources (Confluence, Jira, SharePoint, Notion, Google Docs, local PDF/DOCX/Markdown) | `--context <url\|path>` (repeatable; `--confluence` / `-c` alias) with an MCP server or local file extraction | Architecture review, threat modeling, secret scanning, compliance skills |
|
|
141
|
+
| Jira, SharePoint, Notion, Google Drive, internal wikis | `[[mcp_servers]]` in config; the agent calls them as tools during the review | Every skill |
|
|
142
|
+
| Vendor documents (PDF, DOCX, PPTX) and AI-BOM files | `secfoo assessment upload <id> <file>` | Third-party risk assessment, Responsible AI compliance |
|
|
143
|
+
| Curated vulnerability patterns | `secfoo memory signup` (optional hosted service, exposed as an MCP server) | SAST, SCA, secret scanning |
|
|
144
|
+
|
|
145
|
+
With `--agent claude` the configured servers are attached to each run
|
|
146
|
+
automatically and nothing else (your global Claude config is not touched and
|
|
147
|
+
the target's own `.mcp.json` is not loaded). The `api` agent (the GitHub
|
|
148
|
+
Action's default) connects to the same servers itself and offers their
|
|
149
|
+
read-only tools to the model, within a budget of 20 calls per run
|
|
150
|
+
(`[agents.api].tool_call_budget`) and a cap on the tokens resent. For Gemini
|
|
151
|
+
CLI, Cursor and Codex run `secfoo mcp sync --agent <agent>` (or
|
|
152
|
+
`secfoo mcp sync`) once. Antigravity cannot use MCP servers yet. Details in
|
|
153
|
+
[docs/REFERENCE.md](https://github.com/secfoo-com/secfoo/blob/main/docs/REFERENCE.md#configuration-secfooconfigtoml).
|
|
154
|
+
|
|
155
|
+
## A 30-second look at the dashboard
|
|
156
|
+
|
|
157
|
+
Everything a run produces lands in a local dashboard: `secfoo serve`, on your machine.
|
|
158
|
+
|
|
159
|
+
<p align="center">
|
|
160
|
+
<img src="https://raw.githubusercontent.com/secfoo-com/secfoo/main/docs/assets/demo.gif" alt="30-second tour of the secfoo dashboard: posture, threat modeling, STRIDE coverage, architecture verdict, and SAST" width="900">
|
|
161
|
+
</p>
|
|
162
|
+
|
|
163
|
+
<p align="center"><a href="https://github.com/secfoo-com/secfoo/blob/main/docs/assets/demo.mp4">Watch as MP4</a></p>
|
|
164
|
+
|
|
165
|
+
<p align="center">
|
|
166
|
+
<img src="https://raw.githubusercontent.com/secfoo-com/secfoo/main/docs/assets/threat-modeling.png" alt="Threat modeling program dashboard with coverage and STRIDE" width="48%">
|
|
167
|
+
<img src="https://raw.githubusercontent.com/secfoo-com/secfoo/main/docs/assets/architecture.png" alt="Security architecture design verdict and data-flow diagram" width="48%">
|
|
168
|
+
</p>
|
|
169
|
+
|
|
170
|
+
Screenshots are from a real local `secfoo serve` against public vulnerable-app targets.
|
|
171
|
+
|
|
172
|
+
## What you get
|
|
173
|
+
|
|
174
|
+
- **A skill is a brief, not a parser.** secfoo hands your coding agent a
|
|
175
|
+
structured prompt and a target, then collects a report in a fixed shape.
|
|
176
|
+
- **One dashboard for the program.** Coverage, dispositions, STRIDE,
|
|
177
|
+
design verdicts, and findings across every project you have scanned.
|
|
178
|
+
- **Context-aware.** Confluence pages, tickets, design docs and uploaded
|
|
179
|
+
vendor documents reach the agent through MCP, and the report says which
|
|
180
|
+
sources it could and could not read. See [Context, not just code](#context-not-just-code).
|
|
181
|
+
- **Local first.** Runs and `secfoo serve` stay on your machine. Optional
|
|
182
|
+
`secfoo cloud login` syncs to an org portal that is not in this repo.
|
|
183
|
+
- **Concurrent by default.** Several `--skill` flags run at the same time.
|
|
184
|
+
- **Portable findings.** Export SAST, SCA, and secret-scanning findings as
|
|
185
|
+
JSON Lines or SARIF 2.1.0 for GitHub code scanning and IDEs. See
|
|
186
|
+
[export examples](https://github.com/secfoo-com/secfoo/blob/main/docs/REFERENCE.md#structured-findings-export).
|
|
187
|
+
- **CI-ready.** `--fail-on high`, `--max-cost 2.00`, `--json`, and distinct
|
|
188
|
+
exit codes for "the scan broke" vs "policy failed". Details in
|
|
189
|
+
[docs/CI.md](https://github.com/secfoo-com/secfoo/blob/main/docs/CI.md).
|
|
190
|
+
|
|
191
|
+
## Activity catalog
|
|
192
|
+
|
|
193
|
+
| Activity | Skill ID |
|
|
194
|
+
|---|---|
|
|
195
|
+
| Security Architecture Review | `security-architecture-review` |
|
|
196
|
+
| Threat Modeling | `threat-modeling` |
|
|
197
|
+
| SAST — Static Code Analysis | `sast` |
|
|
198
|
+
| SCA — Reachability & Upgrade Triage | `sca-reachability` |
|
|
199
|
+
| Secret Scanning | `secret-scanning` |
|
|
200
|
+
| Prompt Review | `prompt-review` |
|
|
201
|
+
| Deployment Readiness | `deployment-readiness` |
|
|
202
|
+
| Responsible AI Compliance | `responsible-ai-compliance` |
|
|
203
|
+
| Third-Party Risk Assessment | `third-party-risk-assessment` |
|
|
204
|
+
|
|
205
|
+
Run one, or several together. What each report actually contains is in
|
|
206
|
+
[docs/REFERENCE.md](https://github.com/secfoo-com/secfoo/blob/main/docs/REFERENCE.md). Write your own skill as a
|
|
207
|
+
Markdown file: [docs/SKILLS.md](https://github.com/secfoo-com/secfoo/blob/main/docs/SKILLS.md).
|
|
208
|
+
|
|
209
|
+
## Agents
|
|
210
|
+
|
|
211
|
+
Point Claude Code, Cursor, Antigravity, Gemini CLI, Codex, Copilot, Droid,
|
|
212
|
+
Devin or OpenCode at a target with `--agent`, or use an API key with the
|
|
213
|
+
built-in `api` agent. Setup and troubleshooting for every adapter:
|
|
214
|
+
[docs/agents.md](https://github.com/secfoo-com/secfoo/blob/main/docs/agents.md). Choose a model for one run with
|
|
215
|
+
`--model <model-id>`, or set a per-agent default in
|
|
216
|
+
[configuration](https://github.com/secfoo-com/secfoo/blob/main/docs/REFERENCE.md#configuration-secfooconfigtoml).
|
|
217
|
+
|
|
218
|
+
## Repository targets
|
|
219
|
+
|
|
220
|
+
`--target` accepts local directories, GitHub URLs, GitLab (including nested
|
|
221
|
+
namespaces), and Bitbucket Cloud repositories:
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
secfoo run --skill sast --target https://gitlab.com/group/subgroup/repo --agent claude
|
|
225
|
+
secfoo run --skill sast --target https://bitbucket.org/workspace/repo --agent claude
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
GitLab and Bitbucket support HTTPS and `git@host:namespace/repo.git` SSH URLs;
|
|
229
|
+
`.git` is optional. SSH uses your existing SSH authentication. For self-hosted
|
|
230
|
+
GitLab, set `SECFOO_GITLAB_HOST` to its hostname, optionally with an HTTPS port
|
|
231
|
+
(e.g. `git.example.org:8443`), then pass that host's repository URL. The default
|
|
232
|
+
`gitlab.com` remains supported. URL credentials, queries, fragments, HTTP, and
|
|
233
|
+
`ssh://` forms are rejected for these new targets.
|
|
234
|
+
|
|
235
|
+
For private HTTPS repositories, provide `SECFOO_GITLAB_TOKEN` (a GitLab token
|
|
236
|
+
with repository read access) or `SECFOO_BITBUCKET_TOKEN` (a Bitbucket repository,
|
|
237
|
+
project, or workspace access token with repository read permission) through your
|
|
238
|
+
environment or CI secret store. Bitbucket user API tokens/app passwords are not
|
|
239
|
+
supported by this token mode. Tokens are supplied to Git through a temporary
|
|
240
|
+
askpass helper, never placed in clone arguments, repository URLs, reports, or
|
|
241
|
+
Git config. Git errors omit raw server output to keep credentials out of logs.
|
|
242
|
+
Authenticated HTTPS clones disable redirects to avoid forwarding credentials to
|
|
243
|
+
another host. Without a token, Git uses your existing noninteractive authentication. Clones are shallow and
|
|
244
|
+
removed after the run, including failures.
|
|
245
|
+
|
|
246
|
+
## Install
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
uvx secfoo --help # run from PyPI without installing (uv)
|
|
250
|
+
pipx install secfoo # isolated install, Python 3.10+
|
|
251
|
+
pip install secfoo # PyPI
|
|
252
|
+
npm install -g @rakfortltd/secfoo # npm, no Python needed
|
|
253
|
+
docker run --rm ghcr.io/secfoo-com/secfoo --help
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
No agent CLI? Use an API key:
|
|
257
|
+
|
|
258
|
+
```bash
|
|
259
|
+
export OPENAI_API_KEY=... # or ANTHROPIC_API_KEY / GEMINI_API_KEY
|
|
260
|
+
secfoo run --skill sast --target https://github.com/org/repo # picks the api agent
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
Universal install scripts, standalone binaries, CI flags, spend tracking,
|
|
264
|
+
and configuration live in [docs/REFERENCE.md](https://github.com/secfoo-com/secfoo/blob/main/docs/REFERENCE.md#install).
|
|
265
|
+
Developing this repo: `pip install -e ".[dev]"`.
|
|
266
|
+
|
|
267
|
+
## What it found on OWASP NodeGoat
|
|
268
|
+
|
|
269
|
+
One real, unedited run against [OWASP/NodeGoat](https://github.com/OWASP/NodeGoat)
|
|
270
|
+
(Claude Code, `--depth quick`, 2026-11-14), both skills running concurrently:
|
|
271
|
+
|
|
272
|
+
| Skill | Critical | High | Medium | Low | Time | Cost |
|
|
273
|
+
|---|---|---|---|---|---|---|
|
|
274
|
+
| SAST — Static Code Analysis | 0 | 6 | 5 | 1 | 4 min 12 s | $2.34 |
|
|
275
|
+
| Secret Scanning — Code, Confluence & Docs | 0 | 3 | 2 | 1 | 2 min 15 s | $1.39 |
|
|
276
|
+
|
|
277
|
+
Among the Highs: `eval()` on a POST body (CWE-95), SSRF with the response
|
|
278
|
+
reflected as HTML (CWE-918), NoSQL injection through a `$where` string
|
|
279
|
+
(CWE-943), IDOR on `/allocations/:userId`, autoescaping disabled globally
|
|
280
|
+
(CWE-79), an RSA private key and the session-signing secret committed to the
|
|
281
|
+
repo. Every finding carries CWE, OWASP category, CVSS vector, location,
|
|
282
|
+
the vulnerable code and a fix. The full reports, the SARIF and the JSONL
|
|
283
|
+
export are in [examples/sample-output/nodegoat](https://github.com/secfoo-com/secfoo/blob/main/examples/sample-output/nodegoat).
|
|
284
|
+
|
|
285
|
+
## Put it in CI
|
|
286
|
+
|
|
287
|
+
Findings show up in GitHub's **Security** tab and as PR annotations; the job
|
|
288
|
+
fails on the severity you choose.
|
|
289
|
+
|
|
290
|
+
```yaml
|
|
291
|
+
# .github/workflows/secfoo.yml
|
|
292
|
+
permissions:
|
|
293
|
+
contents: read
|
|
294
|
+
security-events: write
|
|
295
|
+
steps:
|
|
296
|
+
- uses: actions/checkout@v4
|
|
297
|
+
- uses: secfoo-com/secfoo@main
|
|
298
|
+
env:
|
|
299
|
+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} # or ANTHROPIC_API_KEY / GEMINI_API_KEY
|
|
300
|
+
with:
|
|
301
|
+
skills: sast,secret-scanning
|
|
302
|
+
fail-on: high
|
|
303
|
+
max-cost: "2.00"
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
- **GitHub Action** with SARIF upload, job summary and severity outputs: [docs/CI.md](https://github.com/secfoo-com/secfoo/blob/main/docs/CI.md#github-actions)
|
|
307
|
+
- **pre-commit**: `repo: https://github.com/secfoo-com/secfoo`, hooks `secfoo-secrets` and `secfoo` ([example](https://github.com/secfoo-com/secfoo/blob/main/examples/ci/pre-commit-config.yaml))
|
|
308
|
+
- **GitLab CI** job with SARIF artifact: [examples/ci/gitlab-ci.yml](https://github.com/secfoo-com/secfoo/blob/main/examples/ci/gitlab-ci.yml)
|
|
309
|
+
- **Docker**: `docker run --rm ghcr.io/secfoo-com/secfoo --help`
|
|
310
|
+
- **Anywhere else**: `secfoo run ... --json --fail-on high`, then `secfoo findings export --format sarif`. Exit codes `0` clean, `1` run failed, `2` findings gate, `3` cost gate.
|
|
311
|
+
|
|
312
|
+
## Learn more
|
|
313
|
+
|
|
314
|
+
- [docs/CI.md](https://github.com/secfoo-com/secfoo/blob/main/docs/CI.md) — GitHub Action, pre-commit, GitLab CI, Docker, SARIF
|
|
315
|
+
- [docs/REFERENCE.md](https://github.com/secfoo-com/secfoo/blob/main/docs/REFERENCE.md) — catalog, dashboards, assessments, config, distribution
|
|
316
|
+
- [Getting started](https://secfoo.com/docs/index.html#quickstart)
|
|
317
|
+
- [CLI reference](https://secfoo.com/docs/cli.html)
|
|
318
|
+
- [Running an assessment](https://secfoo.com/docs/guide-running-an-assessment.html)
|
|
319
|
+
- [Editions](https://secfoo.com/editions.html)
|
|
320
|
+
|
|
321
|
+
## Contributing
|
|
322
|
+
|
|
323
|
+
PRs welcome — see [CONTRIBUTING.md](https://github.com/secfoo-com/secfoo/blob/main/CONTRIBUTING.md) and
|
|
324
|
+
[CODE_OF_CONDUCT.md](https://github.com/secfoo-com/secfoo/blob/main/CODE_OF_CONDUCT.md). Security issues go through
|
|
325
|
+
[SECURITY.md](https://github.com/secfoo-com/secfoo/blob/main/SECURITY.md), not a public issue.
|
|
326
|
+
|
|
327
|
+
Hackathon? Issues tagged [`hackathon`](https://github.com/secfoo-com/secfoo/issues?q=is%3Aopen+label%3Ahackathon)
|
|
328
|
+
are open for contribution, and merged PRs earn points on the
|
|
329
|
+
[contributor leaderboard](https://github.com/secfoo-com/secfoo/blob/leaderboard/LEADERBOARD.md)
|
|
330
|
+
(10 / 6 / 3 for hard / medium / low issues; Bronze, Silver and Gold at 25, 50 and 100).
|
|
331
|
+
|
|
332
|
+
<a href="https://github.com/secfoo-com/secfoo/blob/leaderboard/LEADERBOARD.md"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsecfoo-com%2Fsecfoo%2Fleaderboard%2Fbadge.json" alt="Hackathon leaderboard"></a>
|
secfoo-0.3.2/README.md
ADDED
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/secfoo-com/secfoo/main/docs/assets/terminal.gif" alt="secfoo run on OWASP NodeGoat: SAST and secret scanning finish with 6 and 3 High findings, one finding is shown (server-side JS injection via eval on a POST body), then the findings are exported as SARIF" width="900">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# secfoo — AI security review CLI
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<strong>Turn the coding agent you already have into a disciplined security reviewer.</strong><br>
|
|
9
|
+
SAST, secret scanning, SCA, threat modeling and architecture review, with your design docs, Confluence and tickets as context.<br>
|
|
10
|
+
Same checklist, same report shape, every run.
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<a href="https://pypi.org/project/secfoo/"><img src="https://img.shields.io/pypi/v/secfoo" alt="PyPI"></a>
|
|
15
|
+
<a href="https://pypi.org/project/secfoo/"><img src="https://img.shields.io/pypi/dm/secfoo" alt="PyPI downloads"></a>
|
|
16
|
+
<a href="https://github.com/secfoo-com/secfoo/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/secfoo-com/secfoo/ci.yml" alt="CI"></a>
|
|
17
|
+
<a href="https://scorecard.dev/viewer/?uri=github.com/secfoo-com/secfoo"><img src="https://api.scorecard.dev/projects/github.com/secfoo-com/secfoo/badge" alt="OpenSSF Scorecard"></a>
|
|
18
|
+
<a href="https://github.com/secfoo-com/secfoo/blob/main/LICENSE"><img src="https://img.shields.io/github/license/secfoo-com/secfoo" alt="MIT license"></a>
|
|
19
|
+
</p>
|
|
20
|
+
|
|
21
|
+
<p align="center">
|
|
22
|
+
<a href="https://secfoo.com">Website</a> ·
|
|
23
|
+
<a href="https://secfoo.com/docs/index.html#install">Getting started</a> ·
|
|
24
|
+
<a href="https://secfoo.com/docs/cli.html">CLI</a> ·
|
|
25
|
+
<a href="https://github.com/secfoo-com/secfoo/blob/main/docs/CI.md">CI guide</a> ·
|
|
26
|
+
<a href="https://github.com/secfoo-com/secfoo/blob/main/examples/sample-output/nodegoat">Sample output</a>
|
|
27
|
+
</p>
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
uvx secfoo run --skill sast --skill secret-scanning --target https://github.com/OWASP/NodeGoat
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
That is the whole first run. No config file: secfoo picks the agent you
|
|
34
|
+
already have on `PATH` (Claude Code, Codex, Gemini CLI, Copilot, Cursor,
|
|
35
|
+
Antigravity, OpenCode, ...) or, if none is installed, uses the
|
|
36
|
+
`OPENAI_API_KEY` / `ANTHROPIC_API_KEY` / `GEMINI_API_KEY` already in your
|
|
37
|
+
shell. Pass `--agent` to choose. Keep it around with `pipx install secfoo`
|
|
38
|
+
or `pip install secfoo`; more channels under [Install](#install).
|
|
39
|
+
|
|
40
|
+
## Context, not just code
|
|
41
|
+
|
|
42
|
+
A code repository is one input. Real reviews also need the design doc, the
|
|
43
|
+
threat model from last year, the runbook and the ticket that explains why the
|
|
44
|
+
odd thing is there. secfoo passes that context to the agent through
|
|
45
|
+
[MCP](https://modelcontextprotocol.io) and asks the skills to use it:
|
|
46
|
+
the architecture review compares what is *documented* (the provided
|
|
47
|
+
documentation sources, README, ADRs) with what is *implemented* and reports
|
|
48
|
+
the gaps; secret scanning covers linked documentation sources as well as code;
|
|
49
|
+
every report ends with a coverage section that says which documentation sources
|
|
50
|
+
were reached and which were not.
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
secfoo run --skill security-architecture-review --skill threat-modeling \
|
|
54
|
+
--target https://github.com/org/payments-api \
|
|
55
|
+
--context https://yourcompany.atlassian.net/wiki/spaces/PAY/pages/123/Architecture \
|
|
56
|
+
--context ../design-docs/threat-model.pdf
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Connect remote documentation sources once in `~/.secfoo/config.toml`; any MCP
|
|
60
|
+
server works, so the same applies to SharePoint and Microsoft 365, Jira,
|
|
61
|
+
Notion, Google Docs or an internal wiki:
|
|
62
|
+
|
|
63
|
+
```toml
|
|
64
|
+
[[mcp_servers]]
|
|
65
|
+
name = "Atlassian-Rovo-MCP" # Confluence + Jira, official Atlassian server
|
|
66
|
+
command = "npx"
|
|
67
|
+
args = ["-y", "mcp-remote@latest", "https://mcp.atlassian.com/v1/mcp/authv2"]
|
|
68
|
+
|
|
69
|
+
[[mcp_servers]]
|
|
70
|
+
name = "sharepoint" # any HTTP/SSE MCP server
|
|
71
|
+
url = "https://mcp.example.com/sharepoint"
|
|
72
|
+
transport = "http"
|
|
73
|
+
headers = { Authorization = "Bearer ..." }
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
| Context | How it gets in | Used by |
|
|
77
|
+
|---|---|---|
|
|
78
|
+
| Documentation sources (Confluence, Jira, SharePoint, Notion, Google Docs, local PDF/DOCX/Markdown) | `--context <url\|path>` (repeatable; `--confluence` / `-c` alias) with an MCP server or local file extraction | Architecture review, threat modeling, secret scanning, compliance skills |
|
|
79
|
+
| Jira, SharePoint, Notion, Google Drive, internal wikis | `[[mcp_servers]]` in config; the agent calls them as tools during the review | Every skill |
|
|
80
|
+
| Vendor documents (PDF, DOCX, PPTX) and AI-BOM files | `secfoo assessment upload <id> <file>` | Third-party risk assessment, Responsible AI compliance |
|
|
81
|
+
| Curated vulnerability patterns | `secfoo memory signup` (optional hosted service, exposed as an MCP server) | SAST, SCA, secret scanning |
|
|
82
|
+
|
|
83
|
+
With `--agent claude` the configured servers are attached to each run
|
|
84
|
+
automatically and nothing else (your global Claude config is not touched and
|
|
85
|
+
the target's own `.mcp.json` is not loaded). The `api` agent (the GitHub
|
|
86
|
+
Action's default) connects to the same servers itself and offers their
|
|
87
|
+
read-only tools to the model, within a budget of 20 calls per run
|
|
88
|
+
(`[agents.api].tool_call_budget`) and a cap on the tokens resent. For Gemini
|
|
89
|
+
CLI, Cursor and Codex run `secfoo mcp sync --agent <agent>` (or
|
|
90
|
+
`secfoo mcp sync`) once. Antigravity cannot use MCP servers yet. Details in
|
|
91
|
+
[docs/REFERENCE.md](https://github.com/secfoo-com/secfoo/blob/main/docs/REFERENCE.md#configuration-secfooconfigtoml).
|
|
92
|
+
|
|
93
|
+
## A 30-second look at the dashboard
|
|
94
|
+
|
|
95
|
+
Everything a run produces lands in a local dashboard: `secfoo serve`, on your machine.
|
|
96
|
+
|
|
97
|
+
<p align="center">
|
|
98
|
+
<img src="https://raw.githubusercontent.com/secfoo-com/secfoo/main/docs/assets/demo.gif" alt="30-second tour of the secfoo dashboard: posture, threat modeling, STRIDE coverage, architecture verdict, and SAST" width="900">
|
|
99
|
+
</p>
|
|
100
|
+
|
|
101
|
+
<p align="center"><a href="https://github.com/secfoo-com/secfoo/blob/main/docs/assets/demo.mp4">Watch as MP4</a></p>
|
|
102
|
+
|
|
103
|
+
<p align="center">
|
|
104
|
+
<img src="https://raw.githubusercontent.com/secfoo-com/secfoo/main/docs/assets/threat-modeling.png" alt="Threat modeling program dashboard with coverage and STRIDE" width="48%">
|
|
105
|
+
<img src="https://raw.githubusercontent.com/secfoo-com/secfoo/main/docs/assets/architecture.png" alt="Security architecture design verdict and data-flow diagram" width="48%">
|
|
106
|
+
</p>
|
|
107
|
+
|
|
108
|
+
Screenshots are from a real local `secfoo serve` against public vulnerable-app targets.
|
|
109
|
+
|
|
110
|
+
## What you get
|
|
111
|
+
|
|
112
|
+
- **A skill is a brief, not a parser.** secfoo hands your coding agent a
|
|
113
|
+
structured prompt and a target, then collects a report in a fixed shape.
|
|
114
|
+
- **One dashboard for the program.** Coverage, dispositions, STRIDE,
|
|
115
|
+
design verdicts, and findings across every project you have scanned.
|
|
116
|
+
- **Context-aware.** Confluence pages, tickets, design docs and uploaded
|
|
117
|
+
vendor documents reach the agent through MCP, and the report says which
|
|
118
|
+
sources it could and could not read. See [Context, not just code](#context-not-just-code).
|
|
119
|
+
- **Local first.** Runs and `secfoo serve` stay on your machine. Optional
|
|
120
|
+
`secfoo cloud login` syncs to an org portal that is not in this repo.
|
|
121
|
+
- **Concurrent by default.** Several `--skill` flags run at the same time.
|
|
122
|
+
- **Portable findings.** Export SAST, SCA, and secret-scanning findings as
|
|
123
|
+
JSON Lines or SARIF 2.1.0 for GitHub code scanning and IDEs. See
|
|
124
|
+
[export examples](https://github.com/secfoo-com/secfoo/blob/main/docs/REFERENCE.md#structured-findings-export).
|
|
125
|
+
- **CI-ready.** `--fail-on high`, `--max-cost 2.00`, `--json`, and distinct
|
|
126
|
+
exit codes for "the scan broke" vs "policy failed". Details in
|
|
127
|
+
[docs/CI.md](https://github.com/secfoo-com/secfoo/blob/main/docs/CI.md).
|
|
128
|
+
|
|
129
|
+
## Activity catalog
|
|
130
|
+
|
|
131
|
+
| Activity | Skill ID |
|
|
132
|
+
|---|---|
|
|
133
|
+
| Security Architecture Review | `security-architecture-review` |
|
|
134
|
+
| Threat Modeling | `threat-modeling` |
|
|
135
|
+
| SAST — Static Code Analysis | `sast` |
|
|
136
|
+
| SCA — Reachability & Upgrade Triage | `sca-reachability` |
|
|
137
|
+
| Secret Scanning | `secret-scanning` |
|
|
138
|
+
| Prompt Review | `prompt-review` |
|
|
139
|
+
| Deployment Readiness | `deployment-readiness` |
|
|
140
|
+
| Responsible AI Compliance | `responsible-ai-compliance` |
|
|
141
|
+
| Third-Party Risk Assessment | `third-party-risk-assessment` |
|
|
142
|
+
|
|
143
|
+
Run one, or several together. What each report actually contains is in
|
|
144
|
+
[docs/REFERENCE.md](https://github.com/secfoo-com/secfoo/blob/main/docs/REFERENCE.md). Write your own skill as a
|
|
145
|
+
Markdown file: [docs/SKILLS.md](https://github.com/secfoo-com/secfoo/blob/main/docs/SKILLS.md).
|
|
146
|
+
|
|
147
|
+
## Agents
|
|
148
|
+
|
|
149
|
+
Point Claude Code, Cursor, Antigravity, Gemini CLI, Codex, Copilot, Droid,
|
|
150
|
+
Devin or OpenCode at a target with `--agent`, or use an API key with the
|
|
151
|
+
built-in `api` agent. Setup and troubleshooting for every adapter:
|
|
152
|
+
[docs/agents.md](https://github.com/secfoo-com/secfoo/blob/main/docs/agents.md). Choose a model for one run with
|
|
153
|
+
`--model <model-id>`, or set a per-agent default in
|
|
154
|
+
[configuration](https://github.com/secfoo-com/secfoo/blob/main/docs/REFERENCE.md#configuration-secfooconfigtoml).
|
|
155
|
+
|
|
156
|
+
## Repository targets
|
|
157
|
+
|
|
158
|
+
`--target` accepts local directories, GitHub URLs, GitLab (including nested
|
|
159
|
+
namespaces), and Bitbucket Cloud repositories:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
secfoo run --skill sast --target https://gitlab.com/group/subgroup/repo --agent claude
|
|
163
|
+
secfoo run --skill sast --target https://bitbucket.org/workspace/repo --agent claude
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
GitLab and Bitbucket support HTTPS and `git@host:namespace/repo.git` SSH URLs;
|
|
167
|
+
`.git` is optional. SSH uses your existing SSH authentication. For self-hosted
|
|
168
|
+
GitLab, set `SECFOO_GITLAB_HOST` to its hostname, optionally with an HTTPS port
|
|
169
|
+
(e.g. `git.example.org:8443`), then pass that host's repository URL. The default
|
|
170
|
+
`gitlab.com` remains supported. URL credentials, queries, fragments, HTTP, and
|
|
171
|
+
`ssh://` forms are rejected for these new targets.
|
|
172
|
+
|
|
173
|
+
For private HTTPS repositories, provide `SECFOO_GITLAB_TOKEN` (a GitLab token
|
|
174
|
+
with repository read access) or `SECFOO_BITBUCKET_TOKEN` (a Bitbucket repository,
|
|
175
|
+
project, or workspace access token with repository read permission) through your
|
|
176
|
+
environment or CI secret store. Bitbucket user API tokens/app passwords are not
|
|
177
|
+
supported by this token mode. Tokens are supplied to Git through a temporary
|
|
178
|
+
askpass helper, never placed in clone arguments, repository URLs, reports, or
|
|
179
|
+
Git config. Git errors omit raw server output to keep credentials out of logs.
|
|
180
|
+
Authenticated HTTPS clones disable redirects to avoid forwarding credentials to
|
|
181
|
+
another host. Without a token, Git uses your existing noninteractive authentication. Clones are shallow and
|
|
182
|
+
removed after the run, including failures.
|
|
183
|
+
|
|
184
|
+
## Install
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
uvx secfoo --help # run from PyPI without installing (uv)
|
|
188
|
+
pipx install secfoo # isolated install, Python 3.10+
|
|
189
|
+
pip install secfoo # PyPI
|
|
190
|
+
npm install -g @rakfortltd/secfoo # npm, no Python needed
|
|
191
|
+
docker run --rm ghcr.io/secfoo-com/secfoo --help
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
No agent CLI? Use an API key:
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
export OPENAI_API_KEY=... # or ANTHROPIC_API_KEY / GEMINI_API_KEY
|
|
198
|
+
secfoo run --skill sast --target https://github.com/org/repo # picks the api agent
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Universal install scripts, standalone binaries, CI flags, spend tracking,
|
|
202
|
+
and configuration live in [docs/REFERENCE.md](https://github.com/secfoo-com/secfoo/blob/main/docs/REFERENCE.md#install).
|
|
203
|
+
Developing this repo: `pip install -e ".[dev]"`.
|
|
204
|
+
|
|
205
|
+
## What it found on OWASP NodeGoat
|
|
206
|
+
|
|
207
|
+
One real, unedited run against [OWASP/NodeGoat](https://github.com/OWASP/NodeGoat)
|
|
208
|
+
(Claude Code, `--depth quick`, 2026-11-14), both skills running concurrently:
|
|
209
|
+
|
|
210
|
+
| Skill | Critical | High | Medium | Low | Time | Cost |
|
|
211
|
+
|---|---|---|---|---|---|---|
|
|
212
|
+
| SAST — Static Code Analysis | 0 | 6 | 5 | 1 | 4 min 12 s | $2.34 |
|
|
213
|
+
| Secret Scanning — Code, Confluence & Docs | 0 | 3 | 2 | 1 | 2 min 15 s | $1.39 |
|
|
214
|
+
|
|
215
|
+
Among the Highs: `eval()` on a POST body (CWE-95), SSRF with the response
|
|
216
|
+
reflected as HTML (CWE-918), NoSQL injection through a `$where` string
|
|
217
|
+
(CWE-943), IDOR on `/allocations/:userId`, autoescaping disabled globally
|
|
218
|
+
(CWE-79), an RSA private key and the session-signing secret committed to the
|
|
219
|
+
repo. Every finding carries CWE, OWASP category, CVSS vector, location,
|
|
220
|
+
the vulnerable code and a fix. The full reports, the SARIF and the JSONL
|
|
221
|
+
export are in [examples/sample-output/nodegoat](https://github.com/secfoo-com/secfoo/blob/main/examples/sample-output/nodegoat).
|
|
222
|
+
|
|
223
|
+
## Put it in CI
|
|
224
|
+
|
|
225
|
+
Findings show up in GitHub's **Security** tab and as PR annotations; the job
|
|
226
|
+
fails on the severity you choose.
|
|
227
|
+
|
|
228
|
+
```yaml
|
|
229
|
+
# .github/workflows/secfoo.yml
|
|
230
|
+
permissions:
|
|
231
|
+
contents: read
|
|
232
|
+
security-events: write
|
|
233
|
+
steps:
|
|
234
|
+
- uses: actions/checkout@v4
|
|
235
|
+
- uses: secfoo-com/secfoo@main
|
|
236
|
+
env:
|
|
237
|
+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} # or ANTHROPIC_API_KEY / GEMINI_API_KEY
|
|
238
|
+
with:
|
|
239
|
+
skills: sast,secret-scanning
|
|
240
|
+
fail-on: high
|
|
241
|
+
max-cost: "2.00"
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
- **GitHub Action** with SARIF upload, job summary and severity outputs: [docs/CI.md](https://github.com/secfoo-com/secfoo/blob/main/docs/CI.md#github-actions)
|
|
245
|
+
- **pre-commit**: `repo: https://github.com/secfoo-com/secfoo`, hooks `secfoo-secrets` and `secfoo` ([example](https://github.com/secfoo-com/secfoo/blob/main/examples/ci/pre-commit-config.yaml))
|
|
246
|
+
- **GitLab CI** job with SARIF artifact: [examples/ci/gitlab-ci.yml](https://github.com/secfoo-com/secfoo/blob/main/examples/ci/gitlab-ci.yml)
|
|
247
|
+
- **Docker**: `docker run --rm ghcr.io/secfoo-com/secfoo --help`
|
|
248
|
+
- **Anywhere else**: `secfoo run ... --json --fail-on high`, then `secfoo findings export --format sarif`. Exit codes `0` clean, `1` run failed, `2` findings gate, `3` cost gate.
|
|
249
|
+
|
|
250
|
+
## Learn more
|
|
251
|
+
|
|
252
|
+
- [docs/CI.md](https://github.com/secfoo-com/secfoo/blob/main/docs/CI.md) — GitHub Action, pre-commit, GitLab CI, Docker, SARIF
|
|
253
|
+
- [docs/REFERENCE.md](https://github.com/secfoo-com/secfoo/blob/main/docs/REFERENCE.md) — catalog, dashboards, assessments, config, distribution
|
|
254
|
+
- [Getting started](https://secfoo.com/docs/index.html#quickstart)
|
|
255
|
+
- [CLI reference](https://secfoo.com/docs/cli.html)
|
|
256
|
+
- [Running an assessment](https://secfoo.com/docs/guide-running-an-assessment.html)
|
|
257
|
+
- [Editions](https://secfoo.com/editions.html)
|
|
258
|
+
|
|
259
|
+
## Contributing
|
|
260
|
+
|
|
261
|
+
PRs welcome — see [CONTRIBUTING.md](https://github.com/secfoo-com/secfoo/blob/main/CONTRIBUTING.md) and
|
|
262
|
+
[CODE_OF_CONDUCT.md](https://github.com/secfoo-com/secfoo/blob/main/CODE_OF_CONDUCT.md). Security issues go through
|
|
263
|
+
[SECURITY.md](https://github.com/secfoo-com/secfoo/blob/main/SECURITY.md), not a public issue.
|
|
264
|
+
|
|
265
|
+
Hackathon? Issues tagged [`hackathon`](https://github.com/secfoo-com/secfoo/issues?q=is%3Aopen+label%3Ahackathon)
|
|
266
|
+
are open for contribution, and merged PRs earn points on the
|
|
267
|
+
[contributor leaderboard](https://github.com/secfoo-com/secfoo/blob/leaderboard/LEADERBOARD.md)
|
|
268
|
+
(10 / 6 / 3 for hard / medium / low issues; Bronze, Silver and Gold at 25, 50 and 100).
|
|
269
|
+
|
|
270
|
+
<a href="https://github.com/secfoo-com/secfoo/blob/leaderboard/LEADERBOARD.md"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsecfoo-com%2Fsecfoo%2Fleaderboard%2Fbadge.json" alt="Hackathon leaderboard"></a>
|