secfoo 0.1.1__tar.gz → 0.2.0__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/.gitignore +30 -0
- secfoo-0.2.0/PKG-INFO +452 -0
- secfoo-0.2.0/README.md +416 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/pyproject.toml +24 -1
- secfoo-0.2.0/src/secfoo/__about__.py +1 -0
- secfoo-0.2.0/src/secfoo/agents/claude.py +57 -0
- secfoo-0.2.0/src/secfoo/aibom.py +100 -0
- secfoo-0.2.0/src/secfoo/attachments.py +25 -0
- secfoo-0.2.0/src/secfoo/cli.py +1154 -0
- secfoo-0.2.0/src/secfoo/cloud.py +178 -0
- secfoo-0.2.0/src/secfoo/config.example.toml +45 -0
- secfoo-0.2.0/src/secfoo/config.py +35 -0
- secfoo-0.2.0/src/secfoo/cvss.py +156 -0
- secfoo-0.2.0/src/secfoo/docext.py +102 -0
- secfoo-0.2.0/src/secfoo/mcp.py +161 -0
- secfoo-0.2.0/src/secfoo/osv.py +138 -0
- secfoo-0.2.0/src/secfoo/report/architecture.py +266 -0
- secfoo-0.2.0/src/secfoo/report/markdown.py +166 -0
- secfoo-0.2.0/src/secfoo/report/sast.py +193 -0
- secfoo-0.2.0/src/secfoo/report/sca.py +192 -0
- secfoo-0.2.0/src/secfoo/report/secret_scanning.py +100 -0
- secfoo-0.2.0/src/secfoo/report/severity.py +59 -0
- secfoo-0.2.0/src/secfoo/runner.py +366 -0
- secfoo-0.2.0/src/secfoo/settings.py +111 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/skills/definitions/deployment-readiness.md +1 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/skills/definitions/prompt-review.md +1 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/skills/definitions/responsible-ai-compliance.md +15 -0
- secfoo-0.2.0/src/secfoo/skills/definitions/sast.md +87 -0
- secfoo-0.2.0/src/secfoo/skills/definitions/sca-reachability.md +53 -0
- secfoo-0.2.0/src/secfoo/skills/definitions/secret-scanning.md +54 -0
- secfoo-0.2.0/src/secfoo/skills/definitions/security-architecture-review.md +99 -0
- secfoo-0.2.0/src/secfoo/skills/definitions/third-party-risk-assessment.md +55 -0
- secfoo-0.2.0/src/secfoo/skills/definitions/threat-modeling.md +104 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/skills/loader.py +10 -0
- secfoo-0.2.0/src/secfoo/skills/renderer.py +830 -0
- secfoo-0.2.0/src/secfoo/storage/models.py +155 -0
- secfoo-0.2.0/src/secfoo/storage/repository.py +1180 -0
- secfoo-0.2.0/src/secfoo/storage/schema.sql +201 -0
- secfoo-0.2.0/src/secfoo/storage/schema_indexes.sql +11 -0
- secfoo-0.2.0/src/secfoo/web/app.py +49 -0
- secfoo-0.2.0/src/secfoo/web/architecture_dashboard.py +180 -0
- secfoo-0.2.0/src/secfoo/web/dashboard_common.py +66 -0
- secfoo-0.2.0/src/secfoo/web/routes/activities.py +307 -0
- secfoo-0.2.0/src/secfoo/web/routes/assessments.py +367 -0
- secfoo-0.2.0/src/secfoo/web/routes/overview.py +52 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/routes/projects.py +11 -2
- secfoo-0.2.0/src/secfoo/web/routes/responsible_ai.py +24 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/routes/runs.py +7 -1
- secfoo-0.2.0/src/secfoo/web/routes/third_party.py +30 -0
- secfoo-0.2.0/src/secfoo/web/sast_dashboard.py +81 -0
- secfoo-0.2.0/src/secfoo/web/sca_dashboard.py +253 -0
- secfoo-0.2.0/src/secfoo/web/secret_scanning_dashboard.py +126 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/static/design-system/README.md +76 -1
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/buttons.css +217 -0
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/code.css +96 -0
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/conformance-bar.css +64 -0
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/donut.css +58 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/static/design-system/components/forms.css +10 -0
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/logo.css +117 -0
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/modal.css +86 -0
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/segmented-control.css +40 -0
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/severity-bar.css +62 -0
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/sidebar.css +112 -0
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/stacked-bar.css +58 -0
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/stat-card.css +51 -0
- secfoo-0.2.0/src/secfoo/web/static/design-system/components/themes.css +70 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/static/design-system/demo.html +14 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/static/design-system/design-system.css +10 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/static/design-system/tokens.css +30 -0
- secfoo-0.2.0/src/secfoo/web/templates/_macros.html +15 -0
- secfoo-0.2.0/src/secfoo/web/templates/activities/architecture_dashboard.html +183 -0
- secfoo-0.2.0/src/secfoo/web/templates/activities/detail.html +193 -0
- secfoo-0.2.0/src/secfoo/web/templates/activities/sast_dashboard.html +114 -0
- secfoo-0.2.0/src/secfoo/web/templates/activities/sast_finding_detail.html +66 -0
- secfoo-0.2.0/src/secfoo/web/templates/activities/sast_findings_list.html +60 -0
- secfoo-0.2.0/src/secfoo/web/templates/activities/sca_dashboard.html +115 -0
- secfoo-0.2.0/src/secfoo/web/templates/activities/sca_vulnerabilities_list.html +48 -0
- secfoo-0.2.0/src/secfoo/web/templates/activities/sca_vulnerability_detail.html +92 -0
- secfoo-0.2.0/src/secfoo/web/templates/activities/secret_scanning_dashboard.html +94 -0
- secfoo-0.2.0/src/secfoo/web/templates/activities/secret_scanning_finding_detail.html +51 -0
- secfoo-0.2.0/src/secfoo/web/templates/activities/secret_scanning_findings_list.html +47 -0
- secfoo-0.2.0/src/secfoo/web/templates/activities/threat_modeling_dashboard.html +227 -0
- secfoo-0.2.0/src/secfoo/web/templates/assessments/detail.html +96 -0
- secfoo-0.2.0/src/secfoo/web/templates/assessments/list.html +67 -0
- secfoo-0.2.0/src/secfoo/web/templates/assessments/new.html +64 -0
- secfoo-0.2.0/src/secfoo/web/templates/assessments/run.html +54 -0
- secfoo-0.2.0/src/secfoo/web/templates/base.html +58 -0
- secfoo-0.2.0/src/secfoo/web/templates/overview.html +120 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/templates/project.html +26 -1
- secfoo-0.2.0/src/secfoo/web/templates/responsible_ai.html +47 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/templates/run_detail.html +30 -0
- secfoo-0.2.0/src/secfoo/web/templates/third_party.html +59 -0
- secfoo-0.2.0/src/secfoo/web/templating.py +231 -0
- secfoo-0.2.0/src/secfoo/web/third_party_dashboard.py +67 -0
- secfoo-0.2.0/src/secfoo/web/threat_modeling_dashboard.py +282 -0
- secfoo-0.2.0/src/secfoo/web/top_findings.py +213 -0
- secfoo-0.1.1/.gitignore +0 -15
- secfoo-0.1.1/PKG-INFO +0 -73
- secfoo-0.1.1/README.md +0 -45
- secfoo-0.1.1/src/secfoo/__about__.py +0 -1
- secfoo-0.1.1/src/secfoo/agents/claude.py +0 -36
- secfoo-0.1.1/src/secfoo/cli.py +0 -243
- secfoo-0.1.1/src/secfoo/config.py +0 -21
- secfoo-0.1.1/src/secfoo/report/markdown.py +0 -43
- secfoo-0.1.1/src/secfoo/runner.py +0 -197
- secfoo-0.1.1/src/secfoo/skills/definitions/threat-assessment.md +0 -41
- secfoo-0.1.1/src/secfoo/skills/renderer.py +0 -149
- secfoo-0.1.1/src/secfoo/storage/models.py +0 -33
- secfoo-0.1.1/src/secfoo/storage/repository.py +0 -154
- secfoo-0.1.1/src/secfoo/storage/schema.sql +0 -30
- secfoo-0.1.1/src/secfoo/web/app.py +0 -19
- secfoo-0.1.1/src/secfoo/web/routes/overview.py +0 -20
- secfoo-0.1.1/src/secfoo/web/static/design-system/components/buttons.css +0 -120
- secfoo-0.1.1/src/secfoo/web/static/design-system/components/modal.css +0 -63
- secfoo-0.1.1/src/secfoo/web/templates/base.html +0 -31
- secfoo-0.1.1/src/secfoo/web/templates/overview.html +0 -48
- secfoo-0.1.1/src/secfoo/web/templating.py +0 -38
- {secfoo-0.1.1 → secfoo-0.2.0}/LICENSE +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/__init__.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/agents/__init__.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/agents/antigravity.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/agents/base.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/agents/cursor.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/agents/gemini.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/agents/registry.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/report/__init__.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/skills/__init__.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/storage/__init__.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/targets/__init__.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/targets/github.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/targets/resolver.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/__init__.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/routes/__init__.py +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/static/design-system/base.css +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/static/design-system/components/alerts.css +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/static/design-system/components/badges.css +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/static/design-system/components/cards.css +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/static/design-system/components/navigation.css +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/static/design-system/components/tables.css +0 -0
- {secfoo-0.1.1 → secfoo-0.2.0}/src/secfoo/web/static/design-system/components/tabs.css +0 -0
secfoo-0.2.0/.gitignore
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.venv/
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.pyc
|
|
4
|
+
*.egg-info/
|
|
5
|
+
.pytest_cache/
|
|
6
|
+
.ruff_cache/
|
|
7
|
+
build/
|
|
8
|
+
dist/
|
|
9
|
+
.DS_Store
|
|
10
|
+
|
|
11
|
+
# Unrelated third-party repo cloned into this directory for testing --
|
|
12
|
+
# never belongs in this repo (already caused one real incident: it leaked
|
|
13
|
+
# into a published PyPI sdist before this line existed).
|
|
14
|
+
AI-Goverance-Health/
|
|
15
|
+
|
|
16
|
+
# Local IDE/tool metadata (directory-to-UUID mapping), not project content.
|
|
17
|
+
cache/
|
|
18
|
+
|
|
19
|
+
# Platform binaries are copied into npm/*/bin/ by the release workflow at
|
|
20
|
+
# publish time -- never committed (README.txt placeholders stay tracked).
|
|
21
|
+
npm/secfoo-*/bin/secfoo
|
|
22
|
+
npm/secfoo-*/bin/secfoo.exe
|
|
23
|
+
node_modules/
|
|
24
|
+
|
|
25
|
+
# NOTE: src/secfoo/web/static/design-system/ is intentionally NOT
|
|
26
|
+
# gitignored even though it's a generated copy (via
|
|
27
|
+
# scripts/sync_design_system.py) -- hatchling reads .gitignore as a
|
|
28
|
+
# packaging exclusion filter, so ignoring it here silently drops the
|
|
29
|
+
# dashboard's CSS from every built wheel/sdist. Re-run the sync script
|
|
30
|
+
# after editing design-system/ and commit the result.
|
secfoo-0.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: secfoo
|
|
3
|
+
Version: 0.2.0
|
|
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: Apache-2.0
|
|
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<8.2
|
|
18
|
+
Requires-Dist: fastapi>=0.110
|
|
19
|
+
Requires-Dist: jinja2>=3.1
|
|
20
|
+
Requires-Dist: markdown-it-py>=3.0
|
|
21
|
+
Requires-Dist: pypdf>=4.0
|
|
22
|
+
Requires-Dist: python-docx>=1.1
|
|
23
|
+
Requires-Dist: python-multipart>=0.0.9
|
|
24
|
+
Requires-Dist: python-pptx>=0.6.23
|
|
25
|
+
Requires-Dist: rich>=13.0
|
|
26
|
+
Requires-Dist: tomli>=2.0; python_version < '3.11'
|
|
27
|
+
Requires-Dist: typer>=0.12
|
|
28
|
+
Requires-Dist: uvicorn[standard]>=0.29
|
|
29
|
+
Provides-Extra: build
|
|
30
|
+
Requires-Dist: pyinstaller>=6.0; extra == 'build'
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: httpx>=0.27; extra == 'dev'
|
|
33
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
34
|
+
Requires-Dist: ruff>=0.4; extra == 'dev'
|
|
35
|
+
Description-Content-Type: text/markdown
|
|
36
|
+
|
|
37
|
+
# secfoo
|
|
38
|
+
|
|
39
|
+
Context-based security architectural assessment orchestrator.
|
|
40
|
+
|
|
41
|
+
Pick one or more security **activities** (see the catalog below), point them
|
|
42
|
+
at a **target** (a public GitHub URL, a local directory, plus optional
|
|
43
|
+
Confluence links for extra context), choose which coding-agent CLI runs them
|
|
44
|
+
(Claude Code, Cursor, Antigravity, or Gemini CLI), and browse every
|
|
45
|
+
assessment ever run, across every project, in a local web dashboard.
|
|
46
|
+
|
|
47
|
+
## Activity catalog
|
|
48
|
+
|
|
49
|
+
Each activity is a self-contained security engagement with its own report
|
|
50
|
+
shape. Run one, or several together — multiple activities execute
|
|
51
|
+
concurrently against the same target.
|
|
52
|
+
|
|
53
|
+
| Activity | Skill ID | What it produces |
|
|
54
|
+
|---|---|---|
|
|
55
|
+
| Security Architecture Review | `security-architecture-review` | Controls matrix (presence / placement / layering), design-principles verdict, operational & regulatory fit, CSA CCM v4 domain conformance, and a **Design verdict** for milestone gating — plus a program-level dashboard, see below |
|
|
56
|
+
| Threat Modeling | `threat-modeling` | Adversary classes, STRIDE (+ LINDDUN when personal data is in scope), attack chains, every threat dispositioned Mitigated/Gap/Accepted, and an explicit **residual risk** statement |
|
|
57
|
+
| SAST — Static Code Analysis | `sast` | Code-level findings with taint paths, CWE/OWASP mapping, and illustrative fix diffs |
|
|
58
|
+
| SCA — Reachability & Upgrade Triage | `sca-reachability` | Dependency inventory, **reachability verdict** per risk, and a grouped upgrade plan |
|
|
59
|
+
| Secret Scanning — Code, Confluence & Docs | `secret-scanning` | Exposed credentials across source, config, git history, and linked Confluence pages, with a rotation-first remediation list |
|
|
60
|
+
| Prompt Review | `prompt-review` | LLM prompt, tool-definition, and agent-behavior security review |
|
|
61
|
+
| Deployment Readiness | `deployment-readiness` | Production security and operational readiness review |
|
|
62
|
+
| Responsible AI Compliance | `responsible-ai-compliance` | Governance, transparency, fairness, and oversight review (drives the dashboard's Responsible AI risk badges) |
|
|
63
|
+
|
|
64
|
+
### Architecture review vs. threat modeling
|
|
65
|
+
|
|
66
|
+
These two look adjacent but answer different questions and fail
|
|
67
|
+
differently, so secfoo keeps them separate rather than merging them into
|
|
68
|
+
one "threat assessment":
|
|
69
|
+
|
|
70
|
+
- **Security Architecture Review** asks *is this design sound?* It is
|
|
71
|
+
control-centric and evaluative — you judge components, boundaries, and
|
|
72
|
+
topology against secure design principles and compliance baselines. Are
|
|
73
|
+
controls present, correctly placed, and layered? Is least privilege
|
|
74
|
+
enforced by the topology or merely by policy? Does the design fail safe?
|
|
75
|
+
It also covers ground with no attacker at all: recoverability, key
|
|
76
|
+
lifecycle, maintainability, regulatory fit.
|
|
77
|
+
- **Threat Modeling** asks *what could go wrong, and who would make it go
|
|
78
|
+
wrong?* It is adversary-centric and generative — enumerate threats from
|
|
79
|
+
assets and trust boundaries, then disposition each as mitigated,
|
|
80
|
+
accepted, or a gap, and state residual risk explicitly.
|
|
81
|
+
|
|
82
|
+
An architecture review can pass every checklist item and still miss a
|
|
83
|
+
threat nobody enumerated. A threat model can list fifty threats and still
|
|
84
|
+
miss that the design has no blast-radius containment. Run both.
|
|
85
|
+
|
|
86
|
+
Adding an activity is a matter of dropping a Markdown file into
|
|
87
|
+
[`src/secfoo/skills/definitions/`](src/secfoo/skills/definitions/) — the CLI
|
|
88
|
+
choices, the web run form, the dashboard's coverage panel, and the
|
|
89
|
+
per-activity pages are all derived from that directory, so there is no
|
|
90
|
+
registry to keep in sync.
|
|
91
|
+
|
|
92
|
+
In the dashboard, the six focused analysis activities each get their own
|
|
93
|
+
page under **Analysis** in the sidebar (`/activities/<skill-id>`), showing
|
|
94
|
+
which projects have been scanned with that activity, when, and what it
|
|
95
|
+
found. Each project's own page mirrors it with an **Activity coverage**
|
|
96
|
+
table — including the activities that have *never* been run against it,
|
|
97
|
+
since that gap is usually the point.
|
|
98
|
+
|
|
99
|
+
### Architecture diagrams
|
|
100
|
+
|
|
101
|
+
Security Architecture Review and Threat Modeling reports include a
|
|
102
|
+
[Mermaid](https://mermaid.js.org/) data-flow diagram with one subgraph per
|
|
103
|
+
trust zone. Mermaid source is readable as-is, so it always appears in the
|
|
104
|
+
report; to render it as a picture in the dashboard, fetch the renderer once:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
secfoo vendor mermaid # ~3.6MB, stored in ~/.secfoo/vendor/
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
It's not bundled by default because it's an order of magnitude larger than
|
|
111
|
+
the rest of secfoo. It's served locally afterwards — the dashboard never
|
|
112
|
+
calls out to a CDN while you're reading a report — and rendered with
|
|
113
|
+
Mermaid's `securityLevel: "strict"`, since report content originates from
|
|
114
|
+
an agent reading a possibly untrusted repository. No outbound access on the
|
|
115
|
+
box? Copy the file to `~/.secfoo/vendor/mermaid.min.js` by hand.
|
|
116
|
+
|
|
117
|
+
### Keeping a scan focused
|
|
118
|
+
|
|
119
|
+
Vendored copies and unrelated repos checked out inside a project dilute
|
|
120
|
+
reports and cost tokens. Exclude them per run or permanently:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
secfoo run --skill sast --exclude vendor/ --exclude some-cloned-repo/
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
```toml
|
|
127
|
+
# ~/.secfoo/config.toml — applies to every run
|
|
128
|
+
[defaults]
|
|
129
|
+
exclude = ["vendor/", "some-cloned-repo/"]
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Exclusions are always **additive**: `--exclude` adds to `[defaults].exclude`,
|
|
133
|
+
which adds to secfoo's built-in list (`node_modules/`, `.git/`, `dist/`, …).
|
|
134
|
+
Naming one path can never silently re-enable scanning of the others.
|
|
135
|
+
|
|
136
|
+
### Security Architecture program dashboard
|
|
137
|
+
|
|
138
|
+
The Security Architecture Review activity page
|
|
139
|
+
(`/activities/security-architecture-review`) is a program-level view on top
|
|
140
|
+
of the per-project reports: coverage, exceptions, a findings-disposition
|
|
141
|
+
approximation, a **CSA Cloud Controls Matrix (CCM v4)** conformance
|
|
142
|
+
heatmap, recurring root causes, and gate-decision (approve / with
|
|
143
|
+
conditions / reject) mix — derived from the Design Verdict, CCM Domain
|
|
144
|
+
Conformance table, and Standard column the skill's report contract now
|
|
145
|
+
produces (v4).
|
|
146
|
+
|
|
147
|
+
This is deliberately built from what a report can state at review time and
|
|
148
|
+
the exceptions you record — not a separate persistent findings-lifecycle
|
|
149
|
+
system with manually-updated statuses. A few panels are therefore honest
|
|
150
|
+
approximations, not exact tracking:
|
|
151
|
+
|
|
152
|
+
- **Open findings past due** / **remediated** — no per-finding due date or
|
|
153
|
+
close event exists, so "past due" means a Confirmed-verdict finding
|
|
154
|
+
whose *most recent* review is older than 30 days, and "remediated" means
|
|
155
|
+
the total finding count dropped between a project's two most recent
|
|
156
|
+
reviews (it can't say *which* finding closed).
|
|
157
|
+
- **In scope** (for the Coverage % tile) means "has an assessment" — there
|
|
158
|
+
is no separate system registry, so a project secfoo has never heard of
|
|
159
|
+
can't appear as an uncovered denominator.
|
|
160
|
+
- **CCM conformance** is domain-level (17 domains), not the ~200
|
|
161
|
+
individual CCM controls — an LLM review scoring every control
|
|
162
|
+
individually each run would cost far more than it's worth. A domain the
|
|
163
|
+
report marks `Not Assessed (process-assured)` (e.g. Human Resources
|
|
164
|
+
Security, usually governed by an external process a codebase can't
|
|
165
|
+
reveal) shows hatched on the heatmap rather than scored.
|
|
166
|
+
|
|
167
|
+
Reports from before this contract version (or from other skills) simply
|
|
168
|
+
show zeros/hatching for panels they have no data for, rather than
|
|
169
|
+
guessing.
|
|
170
|
+
|
|
171
|
+
### Threat Modeling program dashboard
|
|
172
|
+
|
|
173
|
+
The Threat Modeling activity page (`/activities/threat-modeling`) is the
|
|
174
|
+
same kind of program-level view, built on the same ground rules: coverage,
|
|
175
|
+
a **per-project STRIDE × asset-class coverage matrix** (empty cells are
|
|
176
|
+
the signal — a blank category was never exercised on *that* project, not
|
|
177
|
+
proven safe; kept per-project rather than aggregated, since averaging
|
|
178
|
+
across projects would blend one project's real gap into another's totals
|
|
179
|
+
and hide which system actually has it), threat disposition
|
|
180
|
+
(mitigated-and-tested / mitigated-untested / accepted / transferred / open
|
|
181
|
+
/ past due), recorded risk acceptances, models needing rework, recurring
|
|
182
|
+
**threat archetypes** across every model run, a model-depth mix (Full /
|
|
183
|
+
Feature-level / Lightweight), threats found post-build, and falsified
|
|
184
|
+
assumptions — all derived from the Threat Register, Assumptions, and
|
|
185
|
+
Executive Summary sections the skill's report contract now produces (v3).
|
|
186
|
+
|
|
187
|
+
The page shows only this specialized dashboard, not the generic
|
|
188
|
+
per-activity stat-card block (Projects covered / Runs / Total findings /
|
|
189
|
+
Critical + High) or diagram gallery every other activity page gets —
|
|
190
|
+
both would just duplicate tiles this dashboard already covers more
|
|
191
|
+
specifically.
|
|
192
|
+
|
|
193
|
+
Approximations, called out the same way as the architecture dashboard:
|
|
194
|
+
|
|
195
|
+
- **Open threats past due** uses the same 30-day-since-last-model proxy as
|
|
196
|
+
Security Architecture Review's "past due" tile, for the same reason (no
|
|
197
|
+
per-threat due date exists).
|
|
198
|
+
- **Mitigated but untested** means the Threat Register's Disposition is
|
|
199
|
+
`Mitigated` but its Test Reference column is `none` — a claimed
|
|
200
|
+
mitigation the model didn't verify with an actual test.
|
|
201
|
+
- **Models needing rework** collapses "stale (boundary moved / new
|
|
202
|
+
integration / new data class)" and "superseded by a design change" into
|
|
203
|
+
the one structural signal actually derivable from report text: a
|
|
204
|
+
different trust-boundary count between a project's two most recent
|
|
205
|
+
models. It's sorted by total findings count as a criticality proxy,
|
|
206
|
+
since no separate criticality field or system registry exists.
|
|
207
|
+
- **Accepted threats** (the flat, report-derived list) reflects the
|
|
208
|
+
model's own Disposition call, with no named human owner — see
|
|
209
|
+
**Recorded risk acceptances** below for the actual loop-back.
|
|
210
|
+
- **Recurring threat patterns** is exact-string aggregation over the
|
|
211
|
+
Threat Register's **Archetype** column (a short, deliberately reusable
|
|
212
|
+
phrase like "Unauthenticated internal service call" the skill is
|
|
213
|
+
instructed to reuse verbatim for the same underlying pattern) — not NLP
|
|
214
|
+
clustering.
|
|
215
|
+
- **Threats found post-build** is inherently not derivable from any
|
|
216
|
+
report — a model can't know what it missed — so it's recorded by hand
|
|
217
|
+
with `secfoo miss`, the same rationale as `secfoo exception`.
|
|
218
|
+
|
|
219
|
+
**Accepting a threat.** A report's own `Accepted` disposition is just the
|
|
220
|
+
model's judgment call at review time — there's no button in the report
|
|
221
|
+
that a human actually clicked. `secfoo accept` is that loop-back: a named
|
|
222
|
+
owner and justification for accepting one specific threat, recorded
|
|
223
|
+
independently of the report and re-shown on every future dashboard load
|
|
224
|
+
even after the model re-runs and its Threat Register changes:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
secfoo accept create --project . --threat-id T4 --title "Legacy endpoint risk" \
|
|
228
|
+
--justification "Endpoint is being decommissioned next quarter" \
|
|
229
|
+
--accepted-by "Jane Doe" --expires-at 2026-12-01
|
|
230
|
+
|
|
231
|
+
secfoo accept list --status active
|
|
232
|
+
secfoo accept update 1 --status revoked
|
|
233
|
+
secfoo accept delete 1
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Exceptions
|
|
237
|
+
|
|
238
|
+
A risk acceptance against a project, with an expiry the dashboard tracks:
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
secfoo exception create --project . --title "Legacy auth exemption" \
|
|
242
|
+
--justification "Migration in progress, tracked in JIRA-123" \
|
|
243
|
+
--granted-by "Jane Doe" --expires-at 2026-09-01 --control IAM
|
|
244
|
+
|
|
245
|
+
secfoo exception list --status active
|
|
246
|
+
secfoo exception update 1 --status revoked
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
`--control` is free text — typically a CCM domain code (`IAM`, `CEK`, …) or
|
|
250
|
+
a standard clause (`"SOC 2 CC6.1"`) — surfaced on the dashboard's exception
|
|
251
|
+
aging panel (30/60/90-day buckets, past-expiry highlighted).
|
|
252
|
+
|
|
253
|
+
### Post-build findings
|
|
254
|
+
|
|
255
|
+
A threat an earlier model missed — found by an incident, a pen test, or a
|
|
256
|
+
later scan — recorded by hand since nothing in a report can know what it
|
|
257
|
+
missed:
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
secfoo miss create --project . --title "SSRF via webhook URL" \
|
|
261
|
+
--discovered-at 2026-08-01 --discovered-by "Pen test Q3" \
|
|
262
|
+
--description "Webhook target URL wasn't validated against internal IP ranges" \
|
|
263
|
+
--run <run-uuid> # optional: the threat model that should have caught it
|
|
264
|
+
|
|
265
|
+
secfoo miss list
|
|
266
|
+
secfoo miss show 1
|
|
267
|
+
secfoo miss delete 1
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
Feeds the Threat Modeling dashboard's "Threats found post-build" panel
|
|
271
|
+
(recent-90-day trend + all-time count).
|
|
272
|
+
|
|
273
|
+
### Secret Scanning program dashboard
|
|
274
|
+
|
|
275
|
+
The Secret Scanning activity page (`/activities/secret-scanning`) is a
|
|
276
|
+
program-level view of exposed credentials across every project: a findings
|
|
277
|
+
funnel emphasizing **Looks live** credentials (rotate immediately), a
|
|
278
|
+
severity breakdown, a source breakdown (code / config / version-control
|
|
279
|
+
history / documentation), and a cross-project findings register with
|
|
280
|
+
evidence, exposure analysis, and remediation text pulled from each report.
|
|
281
|
+
|
|
282
|
+
Like SCA and Threat Modeling, this dashboard is derived fresh from report
|
|
283
|
+
text on every request — there is no persistent per-finding lifecycle.
|
|
284
|
+
Findings link to a detail page keyed by `(project, finding ID, type,
|
|
285
|
+
location)` so duplicate rows in a report remain addressable.
|
|
286
|
+
|
|
287
|
+
## Install
|
|
288
|
+
|
|
289
|
+
Pick whichever fits how you work — they're all the same tool underneath.
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
# PyPI (needs Python 3.10+)
|
|
293
|
+
pip install secfoo
|
|
294
|
+
|
|
295
|
+
# npm (no Python needed -- installs a real standalone binary, not a
|
|
296
|
+
# Python wrapper; see the "Distribution" section below for why)
|
|
297
|
+
npm install -g @rakfortltd/secfoo
|
|
298
|
+
|
|
299
|
+
# Universal installer script (macOS/Linux, no Python or Node needed)
|
|
300
|
+
curl -fsSL https://raw.githubusercontent.com/rakfortltd/secfoo/main/install.sh | sh
|
|
301
|
+
|
|
302
|
+
# Windows (PowerShell), no Python or Node needed
|
|
303
|
+
irm https://raw.githubusercontent.com/rakfortltd/secfoo/main/install.ps1 | iex
|
|
304
|
+
|
|
305
|
+
# Docker (nothing installed on the host at all)
|
|
306
|
+
docker run --rm ghcr.io/rakfortltd/secfoo --help
|
|
307
|
+
|
|
308
|
+
# Or grab a binary directly for your platform from the Releases page:
|
|
309
|
+
# https://github.com/rakfortltd/secfoo/releases
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
Developing on this repo instead? `pip install -e ".[dev]"`.
|
|
313
|
+
|
|
314
|
+
## Usage
|
|
315
|
+
|
|
316
|
+
```bash
|
|
317
|
+
# Run a skill against the current directory with Claude Code
|
|
318
|
+
secfoo run --skill security-architecture-review --agent claude
|
|
319
|
+
|
|
320
|
+
# Run multiple skills against a GitHub repo, with Confluence context
|
|
321
|
+
secfoo run \
|
|
322
|
+
--skill security-architecture-review --skill threat-modeling \
|
|
323
|
+
--target https://github.com/org/repo \
|
|
324
|
+
--confluence https://yourcompany.atlassian.net/wiki/spaces/SEC/pages/123 \
|
|
325
|
+
--agent agent
|
|
326
|
+
|
|
327
|
+
# See what's on PATH
|
|
328
|
+
secfoo agents
|
|
329
|
+
|
|
330
|
+
# List past runs
|
|
331
|
+
secfoo list
|
|
332
|
+
|
|
333
|
+
# View a single run's report in the terminal
|
|
334
|
+
secfoo show <run-uuid>
|
|
335
|
+
|
|
336
|
+
# Launch the local dashboard
|
|
337
|
+
secfoo serve
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
## Assessments
|
|
341
|
+
|
|
342
|
+
An **assessment** is a case-file container -- an Application ID / Security
|
|
343
|
+
Assessment Request, a review status (Ready → In Progress → Completed →
|
|
344
|
+
Blocked), and one or more attached runs and/or uploaded files (e.g. an
|
|
345
|
+
AI-BOM inventory). Runs can attach to a case file at creation time; the
|
|
346
|
+
dashboard's Assessments, Third-Party, and Responsible AI pages are all
|
|
347
|
+
built on top of this.
|
|
348
|
+
|
|
349
|
+
```bash
|
|
350
|
+
# Create a case file
|
|
351
|
+
secfoo assessment create --project https://github.com/org/vendor-app \
|
|
352
|
+
--type third-party --app-id APP-042 --sar SAR-2026-0007 --reviewer "Jane Doe"
|
|
353
|
+
|
|
354
|
+
# Attach a skill run to it directly
|
|
355
|
+
secfoo run --skill security-architecture-review --agent claude --assessment 1
|
|
356
|
+
|
|
357
|
+
# Upload an AI-BOM file (parsed automatically -- see secfoo/aibom.py for the schema)
|
|
358
|
+
secfoo assessment upload 1 ai-bom.json
|
|
359
|
+
|
|
360
|
+
secfoo assessment list --type third-party --status in_progress
|
|
361
|
+
secfoo assessment show 1
|
|
362
|
+
secfoo assessment update 1 --status completed
|
|
363
|
+
secfoo assessment delete 1
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
Responsible AI risk badges in the dashboard are derived automatically from
|
|
367
|
+
an assessment's attached Responsible AI Compliance run (its `Overall risk
|
|
368
|
+
rating` line) rather than set manually, and stay "provisional" until the
|
|
369
|
+
assessment's own status is marked Completed.
|
|
370
|
+
|
|
371
|
+
## Configuration (`~/.secfoo/config.toml`)
|
|
372
|
+
|
|
373
|
+
Set default agent/depth/timeout and MCP servers (e.g. Confluence/Jira via
|
|
374
|
+
Atlassian's Rovo MCP server) once, instead of passing flags every time or
|
|
375
|
+
wiring each agent CLI separately.
|
|
376
|
+
|
|
377
|
+
```bash
|
|
378
|
+
secfoo config init # writes a starter ~/.secfoo/config.toml
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
```toml
|
|
382
|
+
[defaults]
|
|
383
|
+
agent = "claude"
|
|
384
|
+
depth = "quick"
|
|
385
|
+
# Vendored copies / unrelated repos checked out inside a project. Added to
|
|
386
|
+
# the built-in exclusions (node_modules/, .git/, ...), never replacing them.
|
|
387
|
+
exclude = ["vendor/", "some-cloned-repo/"]
|
|
388
|
+
|
|
389
|
+
[[mcp_servers]]
|
|
390
|
+
name = "Atlassian-Rovo-MCP"
|
|
391
|
+
command = "npx"
|
|
392
|
+
args = ["-y", "mcp-remote@latest", "https://mcp.atlassian.com/v1/mcp/authv2"]
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
CLI flags always override `[defaults]`. See
|
|
396
|
+
[`src/secfoo/config.example.toml`](src/secfoo/config.example.toml) for the
|
|
397
|
+
full reference, including remote HTTP/SSE servers.
|
|
398
|
+
|
|
399
|
+
How MCP servers reach each agent varies by what its CLI actually supports:
|
|
400
|
+
|
|
401
|
+
| Agent | Mechanism |
|
|
402
|
+
|---|---|
|
|
403
|
+
| `claude` | Automatic on every `secfoo run` (`--mcp-config`, scoped to that invocation only — your global Claude config is never touched) |
|
|
404
|
+
| `gemini`, `agent` (Cursor) | Run `secfoo mcp sync --agent <agent>` once to register persistently in that tool's own config |
|
|
405
|
+
| `agy` (Antigravity) | Not supported yet — its CLI has no MCP configuration mechanism as of this writing |
|
|
406
|
+
|
|
407
|
+
```bash
|
|
408
|
+
secfoo mcp list # show what's configured
|
|
409
|
+
secfoo mcp sync --agent gemini # register into gemini's own config
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
## Distribution
|
|
413
|
+
|
|
414
|
+
Every install channel above is built on the same foundation: standalone,
|
|
415
|
+
self-contained binaries (bundled Python interpreter + all dependencies —
|
|
416
|
+
nothing needs to be pre-installed) for macOS (arm64/x64), Linux
|
|
417
|
+
(x64/arm64), and Windows (x64), built by CI (`.github/workflows/release.yml`)
|
|
418
|
+
on every `vX.Y.Z` tag push and attached to the matching GitHub Release
|
|
419
|
+
along with a `SHA256SUMS` file.
|
|
420
|
+
|
|
421
|
+
- **pip**: the "real"/native path — a normal Python sdist+wheel, published
|
|
422
|
+
to PyPI as usual.
|
|
423
|
+
- **npm**: `@rakfortltd/secfoo` is a tiny meta-package whose
|
|
424
|
+
`optionalDependencies` are 5 per-platform packages
|
|
425
|
+
(`@rakfortltd/secfoo-darwin-arm64`, etc.), each containing just that
|
|
426
|
+
platform's binary. npm installs only the one matching your machine —
|
|
427
|
+
no `postinstall` network fetch, which is what makes this safe to use
|
|
428
|
+
behind a locked-down corporate npm/Artifactory mirror.
|
|
429
|
+
- **install.sh / install.ps1**: detect your OS/arch, download the matching
|
|
430
|
+
binary from the latest GitHub Release, verify its SHA256, install it.
|
|
431
|
+
- **Docker**: `ghcr.io/rakfortltd/secfoo`, built from the PyPI package on
|
|
432
|
+
a slim Python base (simplest, most robust route for a container image —
|
|
433
|
+
no cross-platform concern since the image itself is the platform).
|
|
434
|
+
**Note**: none of the 4 agent CLIs (claude, cursor, antigravity, gemini)
|
|
435
|
+
are installed in this image, so `secfoo run` needs one made available on
|
|
436
|
+
`PATH` inside the container yourself (e.g. a custom image built `FROM`
|
|
437
|
+
this one, or a volume/bind mount) to actually execute a skill — without
|
|
438
|
+
that it's still useful standalone for `secfoo serve`/`list`/`show`
|
|
439
|
+
against a mounted `~/.secfoo` store from a host-run assessment. Also
|
|
440
|
+
bind to all interfaces explicitly for `serve` to be reachable through
|
|
441
|
+
Docker's port mapping (the default is `127.0.0.1`, which isn't):
|
|
442
|
+
|
|
443
|
+
```bash
|
|
444
|
+
docker run --rm -p 8787:8787 -v ~/.secfoo:/root/.secfoo \
|
|
445
|
+
ghcr.io/rakfortltd/secfoo serve --host 0.0.0.0 --port 8787
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
Homebrew is a planned follow-up (a tap formula in a separate
|
|
449
|
+
`rakfortltd/homebrew-tap` repo) — not built yet.
|
|
450
|
+
|
|
451
|
+
See [`design-system/README.md`](design-system/README.md) for the design
|
|
452
|
+
system used by the dashboard.
|