secfoo 0.2.0__tar.gz → 0.3.1__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.2.0 → secfoo-0.3.1}/.gitignore +5 -0
- secfoo-0.3.1/LICENSE +21 -0
- secfoo-0.3.1/PKG-INFO +160 -0
- secfoo-0.3.1/README.md +116 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/pyproject.toml +17 -9
- secfoo-0.3.1/src/secfoo/__about__.py +1 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/agents/antigravity.py +1 -1
- secfoo-0.3.1/src/secfoo/agents/api.py +344 -0
- secfoo-0.3.1/src/secfoo/agents/base.py +232 -0
- secfoo-0.3.1/src/secfoo/agents/claude.py +159 -0
- secfoo-0.3.1/src/secfoo/agents/codex.py +95 -0
- secfoo-0.3.1/src/secfoo/agents/copilot.py +108 -0
- secfoo-0.3.1/src/secfoo/agents/devin.py +95 -0
- secfoo-0.3.1/src/secfoo/agents/droid.py +97 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/agents/gemini.py +21 -2
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/agents/registry.py +10 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/aibom.py +1 -1
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/cli.py +503 -34
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/cloud.py +35 -5
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/config.example.toml +21 -1
- secfoo-0.3.1/src/secfoo/cost.py +34 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/mcp.py +22 -4
- secfoo-0.3.1/src/secfoo/memory.py +194 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/osv.py +1 -1
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/report/architecture.py +32 -0
- secfoo-0.3.1/src/secfoo/report/code_region.py +65 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/report/markdown.py +24 -2
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/report/sast.py +70 -34
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/report/sca.py +84 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/report/secret_scanning.py +98 -0
- secfoo-0.3.1/src/secfoo/runner.py +660 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/settings.py +31 -2
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/skills/loader.py +1 -1
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/skills/renderer.py +69 -0
- secfoo-0.3.1/src/secfoo/stack.py +270 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/storage/models.py +86 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/storage/repository.py +466 -39
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/storage/schema.sql +108 -6
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/storage/schema_indexes.sql +3 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/targets/github.py +8 -1
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/app.py +13 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/architecture_dashboard.py +23 -2
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/dashboard_common.py +4 -1
- secfoo-0.3.1/src/secfoo/web/finding_filters.py +77 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/routes/activities.py +187 -16
- secfoo-0.3.1/src/secfoo/web/routes/agents.py +16 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/routes/assessments.py +104 -5
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/routes/overview.py +23 -0
- secfoo-0.3.1/src/secfoo/web/routes/runs.py +81 -0
- secfoo-0.3.1/src/secfoo/web/run_status.py +231 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/sast_dashboard.py +5 -1
- secfoo-0.3.1/src/secfoo/web/static/css/dashboard.css +414 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/base.css +2 -2
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/alerts.css +9 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/badges.css +18 -4
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/buttons.css +1 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/cards.css +1 -1
- secfoo-0.3.1/src/secfoo/web/static/design-system/components/dark.css +56 -0
- secfoo-0.3.1/src/secfoo/web/static/design-system/components/dashboard.css +369 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/donut.css +4 -3
- secfoo-0.3.1/src/secfoo/web/static/design-system/components/run-ui.css +279 -0
- secfoo-0.3.1/src/secfoo/web/static/design-system/components/sidebar.css +168 -0
- secfoo-0.3.1/src/secfoo/web/static/design-system/components/stat-card.css +86 -0
- secfoo-0.3.1/src/secfoo/web/static/design-system/components/tables.css +70 -0
- secfoo-0.3.1/src/secfoo/web/static/design-system/components/workflow.css +305 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/design-system.css +4 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/tokens.css +16 -7
- secfoo-0.3.1/src/secfoo/web/static/js/interactive.js +188 -0
- secfoo-0.3.1/src/secfoo/web/static/js/live-run.js +84 -0
- secfoo-0.3.1/src/secfoo/web/static/js/mermaid-init.js +22 -0
- secfoo-0.3.1/src/secfoo/web/static/js/palette.js +131 -0
- secfoo-0.3.1/src/secfoo/web/static/js/run-form.js +23 -0
- secfoo-0.3.1/src/secfoo/web/static/js/theme.js +36 -0
- secfoo-0.3.1/src/secfoo/web/templates/_icons.html +29 -0
- secfoo-0.3.1/src/secfoo/web/templates/_macros.html +59 -0
- secfoo-0.3.1/src/secfoo/web/templates/_page.html +20 -0
- secfoo-0.3.1/src/secfoo/web/templates/activities/architecture_dashboard.html +252 -0
- secfoo-0.3.1/src/secfoo/web/templates/activities/architecture_standards.html +30 -0
- secfoo-0.3.1/src/secfoo/web/templates/activities/detail.html +260 -0
- secfoo-0.3.1/src/secfoo/web/templates/activities/sast_dashboard.html +156 -0
- secfoo-0.3.1/src/secfoo/web/templates/activities/sast_finding_detail.html +100 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/templates/activities/sast_findings_list.html +29 -12
- secfoo-0.3.1/src/secfoo/web/templates/activities/sca_dashboard.html +148 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/templates/activities/sca_vulnerabilities_list.html +10 -7
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/templates/activities/sca_vulnerability_detail.html +14 -14
- secfoo-0.3.1/src/secfoo/web/templates/activities/secret_scanning_dashboard.html +125 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/templates/activities/secret_scanning_finding_detail.html +7 -7
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/templates/activities/secret_scanning_findings_list.html +10 -7
- secfoo-0.3.1/src/secfoo/web/templates/activities/threat_modeling_accepted.html +35 -0
- secfoo-0.3.1/src/secfoo/web/templates/activities/threat_modeling_assumptions.html +30 -0
- secfoo-0.3.1/src/secfoo/web/templates/activities/threat_modeling_dashboard.html +357 -0
- secfoo-0.3.1/src/secfoo/web/templates/activities/threat_modeling_post_build.html +32 -0
- secfoo-0.3.1/src/secfoo/web/templates/agents.html +36 -0
- secfoo-0.3.1/src/secfoo/web/templates/assessments/detail.html +129 -0
- secfoo-0.3.1/src/secfoo/web/templates/assessments/list.html +96 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/templates/assessments/new.html +12 -9
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/templates/assessments/run.html +29 -9
- secfoo-0.3.1/src/secfoo/web/templates/base.html +104 -0
- secfoo-0.3.1/src/secfoo/web/templates/overview.html +300 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/templates/project.html +8 -7
- secfoo-0.3.1/src/secfoo/web/templates/responsible_ai.html +56 -0
- secfoo-0.3.1/src/secfoo/web/templates/run_detail.html +106 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/templates/third_party.html +23 -13
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/templating.py +65 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/threat_modeling_dashboard.py +32 -4
- secfoo-0.2.0/LICENSE +0 -202
- secfoo-0.2.0/PKG-INFO +0 -452
- secfoo-0.2.0/README.md +0 -416
- secfoo-0.2.0/src/secfoo/__about__.py +0 -1
- secfoo-0.2.0/src/secfoo/agents/base.py +0 -113
- secfoo-0.2.0/src/secfoo/agents/claude.py +0 -57
- secfoo-0.2.0/src/secfoo/runner.py +0 -366
- secfoo-0.2.0/src/secfoo/web/routes/runs.py +0 -47
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/sidebar.css +0 -112
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/stat-card.css +0 -51
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/tables.css +0 -38
- secfoo-0.2.0/src/secfoo/web/templates/_macros.html +0 -15
- secfoo-0.2.0/src/secfoo/web/templates/activities/architecture_dashboard.html +0 -183
- secfoo-0.2.0/src/secfoo/web/templates/activities/detail.html +0 -193
- secfoo-0.2.0/src/secfoo/web/templates/activities/sast_dashboard.html +0 -114
- secfoo-0.2.0/src/secfoo/web/templates/activities/sast_finding_detail.html +0 -66
- secfoo-0.2.0/src/secfoo/web/templates/activities/sca_dashboard.html +0 -115
- secfoo-0.2.0/src/secfoo/web/templates/activities/secret_scanning_dashboard.html +0 -94
- secfoo-0.2.0/src/secfoo/web/templates/activities/threat_modeling_dashboard.html +0 -227
- secfoo-0.2.0/src/secfoo/web/templates/assessments/detail.html +0 -96
- secfoo-0.2.0/src/secfoo/web/templates/assessments/list.html +0 -67
- secfoo-0.2.0/src/secfoo/web/templates/base.html +0 -58
- secfoo-0.2.0/src/secfoo/web/templates/overview.html +0 -120
- secfoo-0.2.0/src/secfoo/web/templates/responsible_ai.html +0 -47
- secfoo-0.2.0/src/secfoo/web/templates/run_detail.html +0 -80
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/__init__.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/agents/__init__.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/agents/cursor.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/attachments.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/config.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/cvss.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/docext.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/report/__init__.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/report/severity.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/skills/__init__.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/skills/definitions/deployment-readiness.md +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/skills/definitions/prompt-review.md +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/skills/definitions/responsible-ai-compliance.md +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/skills/definitions/sast.md +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/skills/definitions/sca-reachability.md +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/skills/definitions/secret-scanning.md +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/skills/definitions/security-architecture-review.md +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/skills/definitions/third-party-risk-assessment.md +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/skills/definitions/threat-modeling.md +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/storage/__init__.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/targets/__init__.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/targets/resolver.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/__init__.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/routes/__init__.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/routes/projects.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/routes/responsible_ai.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/routes/third_party.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/sca_dashboard.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/secret_scanning_dashboard.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/README.md +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/code.css +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/conformance-bar.css +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/forms.css +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/logo.css +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/modal.css +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/navigation.css +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/segmented-control.css +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/severity-bar.css +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/stacked-bar.css +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/tabs.css +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/components/themes.css +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/static/design-system/demo.html +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/third_party_dashboard.py +0 -0
- {secfoo-0.2.0 → secfoo-0.3.1}/src/secfoo/web/top_findings.py +0 -0
|
@@ -8,6 +8,11 @@ build/
|
|
|
8
8
|
dist/
|
|
9
9
|
.DS_Store
|
|
10
10
|
|
|
11
|
+
# Local-only secrets (API keys for manual testing) -- never commit these.
|
|
12
|
+
.env
|
|
13
|
+
.env.*
|
|
14
|
+
*.secret
|
|
15
|
+
|
|
11
16
|
# Unrelated third-party repo cloned into this directory for testing --
|
|
12
17
|
# never belongs in this repo (already caused one real incident: it leaked
|
|
13
18
|
# into a published PyPI sdist before this line existed).
|
secfoo-0.3.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 RakFort
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
secfoo-0.3.1/PKG-INFO
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: secfoo
|
|
3
|
+
Version: 0.3.1
|
|
4
|
+
Summary: Context-based security architectural assessment orchestrator: pick skills, targets, and an agent CLI to run them.
|
|
5
|
+
Author-email: RakFort <info@rakfort.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: compliance,llm-agent,owasp,security,stride,threat-modeling
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Topic :: Security
|
|
15
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Requires-Dist: click<9,>=8.3.3
|
|
18
|
+
Requires-Dist: fastapi>=0.110
|
|
19
|
+
Requires-Dist: jinja2>=3.1
|
|
20
|
+
Requires-Dist: langgraph>=0.2
|
|
21
|
+
Requires-Dist: litellm>=1.40
|
|
22
|
+
Requires-Dist: markdown-it-py>=3.0
|
|
23
|
+
Requires-Dist: pypdf>=4.0
|
|
24
|
+
Requires-Dist: python-docx>=1.1
|
|
25
|
+
Requires-Dist: python-multipart>=0.0.9
|
|
26
|
+
Requires-Dist: python-pptx>=0.6.23
|
|
27
|
+
Requires-Dist: rich>=13.0
|
|
28
|
+
Requires-Dist: tomli>=2.0; python_version < '3.11'
|
|
29
|
+
Requires-Dist: typer>=0.15
|
|
30
|
+
Requires-Dist: uvicorn[standard]>=0.29
|
|
31
|
+
Provides-Extra: api
|
|
32
|
+
Requires-Dist: langgraph>=0.2; extra == 'api'
|
|
33
|
+
Requires-Dist: litellm>=1.40; extra == 'api'
|
|
34
|
+
Provides-Extra: build
|
|
35
|
+
Requires-Dist: pyinstaller>=6.0; extra == 'build'
|
|
36
|
+
Provides-Extra: dev
|
|
37
|
+
Requires-Dist: bandit>=1.8; extra == 'dev'
|
|
38
|
+
Requires-Dist: httpx>=0.27; extra == 'dev'
|
|
39
|
+
Requires-Dist: langgraph>=0.2; extra == 'dev'
|
|
40
|
+
Requires-Dist: pip-audit>=2.7; extra == 'dev'
|
|
41
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
42
|
+
Requires-Dist: ruff>=0.4; extra == 'dev'
|
|
43
|
+
Description-Content-Type: text/markdown
|
|
44
|
+
|
|
45
|
+
# secfoo
|
|
46
|
+
|
|
47
|
+
<p align="center">
|
|
48
|
+
<strong>Turn any AI coding agent into a disciplined security reviewer.</strong><br>
|
|
49
|
+
Same standards, same report, every run.
|
|
50
|
+
</p>
|
|
51
|
+
|
|
52
|
+
<p align="center">
|
|
53
|
+
<a href="https://pypi.org/project/secfoo/"><img src="https://img.shields.io/pypi/v/secfoo" alt="PyPI"></a>
|
|
54
|
+
<a href="https://pypi.org/project/secfoo/"><img src="https://img.shields.io/pypi/dm/secfoo" alt="PyPI downloads"></a>
|
|
55
|
+
<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>
|
|
56
|
+
<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>
|
|
57
|
+
</p>
|
|
58
|
+
|
|
59
|
+
<p align="center">
|
|
60
|
+
<img src="docs/assets/dashboard.png" alt="secfoo local dashboard: program posture across applications, findings, and security activities" width="900">
|
|
61
|
+
</p>
|
|
62
|
+
|
|
63
|
+
<p align="center">
|
|
64
|
+
<a href="https://secfoo.com">Website</a> ·
|
|
65
|
+
<a href="https://secfoo.com/docs/index.html#install">Getting started</a> ·
|
|
66
|
+
<a href="https://secfoo.com/docs/cli.html">CLI</a> ·
|
|
67
|
+
<a href="https://secfoo.com/docs/index.html">Docs</a>
|
|
68
|
+
</p>
|
|
69
|
+
|
|
70
|
+
Point Claude Code, Cursor, Antigravity, Gemini CLI, or Codex at a target.
|
|
71
|
+
Pick architecture review, threat modeling, SAST, and the rest of the catalog.
|
|
72
|
+
Browse every result in a local dashboard — `secfoo serve`, on your machine.
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
pip install secfoo
|
|
76
|
+
secfoo run --skill sast --target https://github.com/org/repo --agent claude
|
|
77
|
+
secfoo serve
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
You need an agent CLI already installed and authenticated
|
|
81
|
+
(`--agent claude|agent|agy|gemini|codex`), or an API key with the built-in
|
|
82
|
+
`api` agent — see [Install](#install).
|
|
83
|
+
|
|
84
|
+
## A 30-second look at the dashboard
|
|
85
|
+
|
|
86
|
+
<p align="center">
|
|
87
|
+
<img src="docs/assets/demo.gif" alt="30-second tour of the secfoo dashboard: posture, threat modeling, STRIDE coverage, architecture verdict, and SAST" width="900">
|
|
88
|
+
</p>
|
|
89
|
+
|
|
90
|
+
<p align="center"><a href="docs/assets/demo.mp4">Watch as MP4</a></p>
|
|
91
|
+
|
|
92
|
+
<p align="center">
|
|
93
|
+
<img src="docs/assets/threat-modeling.png" alt="Threat modeling program dashboard with coverage and STRIDE" width="48%">
|
|
94
|
+
<img src="docs/assets/architecture.png" alt="Security architecture design verdict and data-flow diagram" width="48%">
|
|
95
|
+
</p>
|
|
96
|
+
|
|
97
|
+
Screenshots are from a real local `secfoo serve` against public vulnerable-app targets.
|
|
98
|
+
|
|
99
|
+
## What you get
|
|
100
|
+
|
|
101
|
+
- **A skill is a brief, not a parser.** secfoo hands your coding agent a
|
|
102
|
+
structured prompt and a target, then collects a report in a fixed shape.
|
|
103
|
+
- **One dashboard for the program.** Coverage, dispositions, STRIDE,
|
|
104
|
+
design verdicts, and findings across every project you have scanned.
|
|
105
|
+
- **Local first.** Runs and `secfoo serve` stay on your machine. Optional
|
|
106
|
+
`secfoo cloud login` syncs to an org portal that is not in this repo.
|
|
107
|
+
- **Concurrent by default.** Several `--skill` flags run at the same time.
|
|
108
|
+
- **CI-ready.** `--fail-on high`, `--max-cost 2.00`, `--json`, and distinct
|
|
109
|
+
exit codes for "the scan broke" vs "policy failed". Details in
|
|
110
|
+
[docs/REFERENCE.md](docs/REFERENCE.md#ci-gates-and-machine-readable-output).
|
|
111
|
+
|
|
112
|
+
## Activity catalog
|
|
113
|
+
|
|
114
|
+
| Activity | Skill ID |
|
|
115
|
+
|---|---|
|
|
116
|
+
| Security Architecture Review | `security-architecture-review` |
|
|
117
|
+
| Threat Modeling | `threat-modeling` |
|
|
118
|
+
| SAST — Static Code Analysis | `sast` |
|
|
119
|
+
| SCA — Reachability & Upgrade Triage | `sca-reachability` |
|
|
120
|
+
| Secret Scanning | `secret-scanning` |
|
|
121
|
+
| Prompt Review | `prompt-review` |
|
|
122
|
+
| Deployment Readiness | `deployment-readiness` |
|
|
123
|
+
| Responsible AI Compliance | `responsible-ai-compliance` |
|
|
124
|
+
|
|
125
|
+
Run one, or several together. What each report actually contains is in
|
|
126
|
+
[docs/REFERENCE.md](docs/REFERENCE.md).
|
|
127
|
+
|
|
128
|
+
## Install
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
pip install secfoo # PyPI, Python 3.10+
|
|
132
|
+
npm install -g @rakfortltd/secfoo # npm, no Python needed
|
|
133
|
+
docker run --rm ghcr.io/rakfortltd/secfoo --help
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
No agent CLI? Use an API key:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
pip install "secfoo[api]"
|
|
140
|
+
export OPENAI_API_KEY=... # or ANTHROPIC_API_KEY / GEMINI_API_KEY
|
|
141
|
+
secfoo run --skill sast --agent api --target https://github.com/org/repo
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Universal install scripts, standalone binaries, CI flags, spend tracking,
|
|
145
|
+
and configuration live in [docs/REFERENCE.md](docs/REFERENCE.md#install).
|
|
146
|
+
Developing this repo: `pip install -e ".[dev]"`.
|
|
147
|
+
|
|
148
|
+
## Learn more
|
|
149
|
+
|
|
150
|
+
- [docs/REFERENCE.md](docs/REFERENCE.md) — catalog, dashboards, assessments, config, distribution
|
|
151
|
+
- [Getting started](https://secfoo.com/docs/index.html#quickstart)
|
|
152
|
+
- [CLI reference](https://secfoo.com/docs/cli.html)
|
|
153
|
+
- [Running an assessment](https://secfoo.com/docs/guide-running-an-assessment.html)
|
|
154
|
+
- [Editions](https://secfoo.com/editions.html)
|
|
155
|
+
|
|
156
|
+
## Contributing
|
|
157
|
+
|
|
158
|
+
PRs welcome — see [CONTRIBUTING.md](CONTRIBUTING.md) and
|
|
159
|
+
[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md). Security issues go through
|
|
160
|
+
[SECURITY.md](SECURITY.md), not a public issue.
|
secfoo-0.3.1/README.md
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# secfoo
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<strong>Turn any AI coding agent into a disciplined security reviewer.</strong><br>
|
|
5
|
+
Same standards, same report, every run.
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
<a href="https://pypi.org/project/secfoo/"><img src="https://img.shields.io/pypi/v/secfoo" alt="PyPI"></a>
|
|
10
|
+
<a href="https://pypi.org/project/secfoo/"><img src="https://img.shields.io/pypi/dm/secfoo" alt="PyPI downloads"></a>
|
|
11
|
+
<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>
|
|
12
|
+
<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>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<img src="docs/assets/dashboard.png" alt="secfoo local dashboard: program posture across applications, findings, and security activities" width="900">
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
<p align="center">
|
|
20
|
+
<a href="https://secfoo.com">Website</a> ·
|
|
21
|
+
<a href="https://secfoo.com/docs/index.html#install">Getting started</a> ·
|
|
22
|
+
<a href="https://secfoo.com/docs/cli.html">CLI</a> ·
|
|
23
|
+
<a href="https://secfoo.com/docs/index.html">Docs</a>
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
Point Claude Code, Cursor, Antigravity, Gemini CLI, or Codex at a target.
|
|
27
|
+
Pick architecture review, threat modeling, SAST, and the rest of the catalog.
|
|
28
|
+
Browse every result in a local dashboard — `secfoo serve`, on your machine.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install secfoo
|
|
32
|
+
secfoo run --skill sast --target https://github.com/org/repo --agent claude
|
|
33
|
+
secfoo serve
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
You need an agent CLI already installed and authenticated
|
|
37
|
+
(`--agent claude|agent|agy|gemini|codex`), or an API key with the built-in
|
|
38
|
+
`api` agent — see [Install](#install).
|
|
39
|
+
|
|
40
|
+
## A 30-second look at the dashboard
|
|
41
|
+
|
|
42
|
+
<p align="center">
|
|
43
|
+
<img src="docs/assets/demo.gif" alt="30-second tour of the secfoo dashboard: posture, threat modeling, STRIDE coverage, architecture verdict, and SAST" width="900">
|
|
44
|
+
</p>
|
|
45
|
+
|
|
46
|
+
<p align="center"><a href="docs/assets/demo.mp4">Watch as MP4</a></p>
|
|
47
|
+
|
|
48
|
+
<p align="center">
|
|
49
|
+
<img src="docs/assets/threat-modeling.png" alt="Threat modeling program dashboard with coverage and STRIDE" width="48%">
|
|
50
|
+
<img src="docs/assets/architecture.png" alt="Security architecture design verdict and data-flow diagram" width="48%">
|
|
51
|
+
</p>
|
|
52
|
+
|
|
53
|
+
Screenshots are from a real local `secfoo serve` against public vulnerable-app targets.
|
|
54
|
+
|
|
55
|
+
## What you get
|
|
56
|
+
|
|
57
|
+
- **A skill is a brief, not a parser.** secfoo hands your coding agent a
|
|
58
|
+
structured prompt and a target, then collects a report in a fixed shape.
|
|
59
|
+
- **One dashboard for the program.** Coverage, dispositions, STRIDE,
|
|
60
|
+
design verdicts, and findings across every project you have scanned.
|
|
61
|
+
- **Local first.** Runs and `secfoo serve` stay on your machine. Optional
|
|
62
|
+
`secfoo cloud login` syncs to an org portal that is not in this repo.
|
|
63
|
+
- **Concurrent by default.** Several `--skill` flags run at the same time.
|
|
64
|
+
- **CI-ready.** `--fail-on high`, `--max-cost 2.00`, `--json`, and distinct
|
|
65
|
+
exit codes for "the scan broke" vs "policy failed". Details in
|
|
66
|
+
[docs/REFERENCE.md](docs/REFERENCE.md#ci-gates-and-machine-readable-output).
|
|
67
|
+
|
|
68
|
+
## Activity catalog
|
|
69
|
+
|
|
70
|
+
| Activity | Skill ID |
|
|
71
|
+
|---|---|
|
|
72
|
+
| Security Architecture Review | `security-architecture-review` |
|
|
73
|
+
| Threat Modeling | `threat-modeling` |
|
|
74
|
+
| SAST — Static Code Analysis | `sast` |
|
|
75
|
+
| SCA — Reachability & Upgrade Triage | `sca-reachability` |
|
|
76
|
+
| Secret Scanning | `secret-scanning` |
|
|
77
|
+
| Prompt Review | `prompt-review` |
|
|
78
|
+
| Deployment Readiness | `deployment-readiness` |
|
|
79
|
+
| Responsible AI Compliance | `responsible-ai-compliance` |
|
|
80
|
+
|
|
81
|
+
Run one, or several together. What each report actually contains is in
|
|
82
|
+
[docs/REFERENCE.md](docs/REFERENCE.md).
|
|
83
|
+
|
|
84
|
+
## Install
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
pip install secfoo # PyPI, Python 3.10+
|
|
88
|
+
npm install -g @rakfortltd/secfoo # npm, no Python needed
|
|
89
|
+
docker run --rm ghcr.io/rakfortltd/secfoo --help
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
No agent CLI? Use an API key:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
pip install "secfoo[api]"
|
|
96
|
+
export OPENAI_API_KEY=... # or ANTHROPIC_API_KEY / GEMINI_API_KEY
|
|
97
|
+
secfoo run --skill sast --agent api --target https://github.com/org/repo
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Universal install scripts, standalone binaries, CI flags, spend tracking,
|
|
101
|
+
and configuration live in [docs/REFERENCE.md](docs/REFERENCE.md#install).
|
|
102
|
+
Developing this repo: `pip install -e ".[dev]"`.
|
|
103
|
+
|
|
104
|
+
## Learn more
|
|
105
|
+
|
|
106
|
+
- [docs/REFERENCE.md](docs/REFERENCE.md) — catalog, dashboards, assessments, config, distribution
|
|
107
|
+
- [Getting started](https://secfoo.com/docs/index.html#quickstart)
|
|
108
|
+
- [CLI reference](https://secfoo.com/docs/cli.html)
|
|
109
|
+
- [Running an assessment](https://secfoo.com/docs/guide-running-an-assessment.html)
|
|
110
|
+
- [Editions](https://secfoo.com/editions.html)
|
|
111
|
+
|
|
112
|
+
## Contributing
|
|
113
|
+
|
|
114
|
+
PRs welcome — see [CONTRIBUTING.md](CONTRIBUTING.md) and
|
|
115
|
+
[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md). Security issues go through
|
|
116
|
+
[SECURITY.md](SECURITY.md), not a public issue.
|
|
@@ -8,7 +8,7 @@ dynamic = ["version"]
|
|
|
8
8
|
description = "Context-based security architectural assessment orchestrator: pick skills, targets, and an agent CLI to run them."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
11
|
-
license = "
|
|
11
|
+
license = "MIT"
|
|
12
12
|
license-files = ["LICENSE"]
|
|
13
13
|
authors = [
|
|
14
14
|
{ name = "RakFort", email = "info@rakfort.com" },
|
|
@@ -24,13 +24,15 @@ classifiers = [
|
|
|
24
24
|
"Topic :: Software Development :: Quality Assurance",
|
|
25
25
|
]
|
|
26
26
|
dependencies = [
|
|
27
|
-
|
|
28
|
-
#
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
"
|
|
27
|
+
# typer>=0.12 alone still resolves/keeps typer 0.12.3 on an environment
|
|
28
|
+
# that already has it (e.g. an old venv, or a resolver picking the
|
|
29
|
+
# floor) -- confirmed by hitting a real one: typer 0.12.3 + click 8.5.0
|
|
30
|
+
# broke multi-word option parsing ("secfoo accept create --threat-id T1
|
|
31
|
+
# ..." rejected as unexpected extra arguments). typer>=0.15 is the
|
|
32
|
+
# actual minimum verified working against the click pin below.
|
|
33
|
+
"typer>=0.15",
|
|
34
|
+
# click 8.3.3+ fixes PYSEC-2026-2132 (click.edit command injection).
|
|
35
|
+
"click>=8.3.3,<9",
|
|
34
36
|
"rich>=13.0",
|
|
35
37
|
"fastapi>=0.110",
|
|
36
38
|
"uvicorn[standard]>=0.29",
|
|
@@ -45,11 +47,17 @@ dependencies = [
|
|
|
45
47
|
"pypdf>=4.0",
|
|
46
48
|
"python-docx>=1.1",
|
|
47
49
|
"python-pptx>=0.6.23",
|
|
50
|
+
"langgraph>=0.2",
|
|
51
|
+
"litellm>=1.40",
|
|
48
52
|
]
|
|
49
53
|
|
|
50
54
|
[project.optional-dependencies]
|
|
51
|
-
dev = ["pytest>=8.0", "httpx>=0.27", "ruff>=0.4"]
|
|
55
|
+
dev = ["pytest>=8.0", "httpx>=0.27", "ruff>=0.4", "bandit>=1.8", "pip-audit>=2.7", "langgraph>=0.2"]
|
|
52
56
|
build = ["pyinstaller>=6.0"]
|
|
57
|
+
# The `api` agent (secfoo/agents/api.py): a LangGraph workflow that calls OpenAI/Anthropic/Gemini
|
|
58
|
+
# through LiteLLM with an API key instead of driving an installed agent CLI.
|
|
59
|
+
# (dev includes langgraph so the real graph runs in tests; litellm is faked.)
|
|
60
|
+
api = ["litellm>=1.40", "langgraph>=0.2"]
|
|
53
61
|
|
|
54
62
|
[project.scripts]
|
|
55
63
|
secfoo = "secfoo.cli:main"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.1"
|
|
@@ -42,6 +42,6 @@ class AntigravityAdapter(AgentAdapter):
|
|
|
42
42
|
effective_timeout = getattr(self, "_effective_timeout", self.default_timeout_seconds)
|
|
43
43
|
return [self.binary, "--print", prompt, "--print-timeout", f"{effective_timeout}s"]
|
|
44
44
|
|
|
45
|
-
def run(self, prompt: str, *, workdir: Path, timeout: int | None = None) -> AgentResult:
|
|
45
|
+
def run(self, prompt: str, *, workdir: Path, timeout: int | None = None, prev_commit: str | None = None) -> AgentResult: # Memory Bank: prev_commit is only used by the api agent.
|
|
46
46
|
self._effective_timeout = timeout or self.default_timeout_seconds
|
|
47
47
|
return super().run(prompt, workdir=workdir, timeout=timeout)
|