secfoo 0.2.0__tar.gz → 0.3.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.
Files changed (131) hide show
  1. secfoo-0.3.0/LICENSE +21 -0
  2. secfoo-0.3.0/PKG-INFO +233 -0
  3. secfoo-0.3.0/README.md +189 -0
  4. {secfoo-0.2.0 → secfoo-0.3.0}/pyproject.toml +17 -9
  5. secfoo-0.3.0/src/secfoo/__about__.py +1 -0
  6. secfoo-0.3.0/src/secfoo/agents/__init__.py +5 -0
  7. secfoo-0.3.0/src/secfoo/agents/api.py +235 -0
  8. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/agents/base.py +58 -8
  9. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/agents/claude.py +23 -1
  10. secfoo-0.3.0/src/secfoo/agents/codex.py +54 -0
  11. secfoo-0.3.0/src/secfoo/agents/copilot.py +76 -0
  12. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/agents/gemini.py +21 -2
  13. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/agents/registry.py +8 -0
  14. secfoo-0.3.0/src/secfoo/agents/secfoo.py +89 -0
  15. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/aibom.py +1 -1
  16. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/cli.py +130 -10
  17. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/cloud.py +32 -5
  18. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/config.example.toml +3 -1
  19. secfoo-0.3.0/src/secfoo/cost.py +21 -0
  20. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/mcp.py +5 -4
  21. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/osv.py +1 -1
  22. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/report/markdown.py +24 -2
  23. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/runner.py +51 -10
  24. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/settings.py +1 -1
  25. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/skills/loader.py +1 -1
  26. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/storage/models.py +15 -0
  27. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/storage/repository.py +119 -20
  28. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/storage/schema.sql +20 -2
  29. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/storage/schema_indexes.sql +3 -0
  30. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/targets/github.py +8 -1
  31. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/dashboard_common.py +3 -1
  32. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/routes/activities.py +1 -1
  33. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/routes/assessments.py +3 -3
  34. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/routes/overview.py +9 -0
  35. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/routes/runs.py +1 -1
  36. secfoo-0.3.0/src/secfoo/web/static/js/interactive.js +50 -0
  37. secfoo-0.3.0/src/secfoo/web/static/js/mermaid-init.js +22 -0
  38. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/activities/architecture_dashboard.html +1 -1
  39. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/activities/detail.html +10 -14
  40. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/activities/sast_dashboard.html +1 -1
  41. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/activities/sast_findings_list.html +1 -1
  42. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/activities/sca_dashboard.html +1 -1
  43. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/activities/sca_vulnerabilities_list.html +1 -1
  44. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/activities/sca_vulnerability_detail.html +1 -1
  45. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/activities/secret_scanning_dashboard.html +1 -1
  46. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/activities/secret_scanning_findings_list.html +1 -1
  47. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/activities/threat_modeling_dashboard.html +1 -1
  48. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/assessments/detail.html +3 -2
  49. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/assessments/list.html +11 -10
  50. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/base.html +1 -0
  51. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/overview.html +29 -2
  52. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/project.html +4 -3
  53. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/responsible_ai.html +1 -1
  54. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/run_detail.html +3 -16
  55. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/third_party.html +1 -1
  56. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templating.py +3 -0
  57. secfoo-0.2.0/LICENSE +0 -202
  58. secfoo-0.2.0/PKG-INFO +0 -452
  59. secfoo-0.2.0/README.md +0 -416
  60. secfoo-0.2.0/src/secfoo/__about__.py +0 -1
  61. secfoo-0.2.0/src/secfoo/agents/__init__.py +0 -4
  62. {secfoo-0.2.0 → secfoo-0.3.0}/.gitignore +0 -0
  63. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/__init__.py +0 -0
  64. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/agents/antigravity.py +0 -0
  65. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/agents/cursor.py +0 -0
  66. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/attachments.py +0 -0
  67. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/config.py +0 -0
  68. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/cvss.py +0 -0
  69. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/docext.py +0 -0
  70. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/report/__init__.py +0 -0
  71. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/report/architecture.py +0 -0
  72. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/report/sast.py +0 -0
  73. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/report/sca.py +0 -0
  74. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/report/secret_scanning.py +0 -0
  75. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/report/severity.py +0 -0
  76. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/skills/__init__.py +0 -0
  77. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/skills/definitions/deployment-readiness.md +0 -0
  78. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/skills/definitions/prompt-review.md +0 -0
  79. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/skills/definitions/responsible-ai-compliance.md +0 -0
  80. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/skills/definitions/sast.md +0 -0
  81. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/skills/definitions/sca-reachability.md +0 -0
  82. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/skills/definitions/secret-scanning.md +0 -0
  83. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/skills/definitions/security-architecture-review.md +0 -0
  84. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/skills/definitions/third-party-risk-assessment.md +0 -0
  85. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/skills/definitions/threat-modeling.md +0 -0
  86. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/skills/renderer.py +0 -0
  87. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/storage/__init__.py +0 -0
  88. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/targets/__init__.py +0 -0
  89. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/targets/resolver.py +0 -0
  90. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/__init__.py +0 -0
  91. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/app.py +0 -0
  92. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/architecture_dashboard.py +0 -0
  93. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/routes/__init__.py +0 -0
  94. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/routes/projects.py +0 -0
  95. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/routes/responsible_ai.py +0 -0
  96. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/routes/third_party.py +0 -0
  97. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/sast_dashboard.py +0 -0
  98. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/sca_dashboard.py +0 -0
  99. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/secret_scanning_dashboard.py +0 -0
  100. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/README.md +0 -0
  101. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/base.css +0 -0
  102. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/alerts.css +0 -0
  103. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/badges.css +0 -0
  104. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/buttons.css +0 -0
  105. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/cards.css +0 -0
  106. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/code.css +0 -0
  107. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/conformance-bar.css +0 -0
  108. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/donut.css +0 -0
  109. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/forms.css +0 -0
  110. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/logo.css +0 -0
  111. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/modal.css +0 -0
  112. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/navigation.css +0 -0
  113. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/segmented-control.css +0 -0
  114. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/severity-bar.css +0 -0
  115. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/sidebar.css +0 -0
  116. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/stacked-bar.css +0 -0
  117. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/stat-card.css +0 -0
  118. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/tables.css +0 -0
  119. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/tabs.css +0 -0
  120. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/components/themes.css +0 -0
  121. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/demo.html +0 -0
  122. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/design-system.css +0 -0
  123. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/static/design-system/tokens.css +0 -0
  124. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/_macros.html +0 -0
  125. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/activities/sast_finding_detail.html +0 -0
  126. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/activities/secret_scanning_finding_detail.html +0 -0
  127. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/assessments/new.html +0 -0
  128. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/templates/assessments/run.html +0 -0
  129. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/third_party_dashboard.py +0 -0
  130. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/threat_modeling_dashboard.py +0 -0
  131. {secfoo-0.2.0 → secfoo-0.3.0}/src/secfoo/web/top_findings.py +0 -0
secfoo-0.3.0/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.0/PKG-INFO ADDED
@@ -0,0 +1,233 @@
1
+ Metadata-Version: 2.5
2
+ Name: secfoo
3
+ Version: 0.3.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: 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 - Everyone's a security professional.
46
+
47
+ <p align="center">
48
+ <a href="https://pypi.org/project/secfoo/"><img src="https://img.shields.io/pypi/v/secfoo" alt="PyPI"></a>
49
+ <a href="https://pypi.org/project/secfoo/"><img src="https://img.shields.io/pypi/dm/secfoo" alt="PyPI downloads"></a>
50
+ <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>
51
+ <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>
52
+ </p>
53
+
54
+ <p align="center">
55
+ Secfoo turns any AI coding agent into a disciplined security reviewer — same standards, same report, every run.
56
+ Context-based security architectural assessment orchestrator: pick skills, targets, and an agent CLI to run them.
57
+ </p>
58
+
59
+ <p align="center">
60
+ <a href="https://secfoo.com">Website</a> ·
61
+ <a href="https://secfoo.com/docs/index.html#install">Getting Started</a> ·
62
+ <a href="https://secfoo.com/docs/cli.html">CLI Reference</a> ·
63
+ <a href="https://secfoo.com/docs/index.html">Documentation</a>
64
+ </p>
65
+
66
+ Pick one or more security **activities** (see the catalog below), point them
67
+ at a **target** (a public GitHub URL, a local directory, plus optional
68
+ Confluence links for extra context), choose which coding-agent CLI runs them
69
+ (Claude Code, Cursor, Antigravity, Gemini CLI, or Codex CLI), and browse every
70
+ assessment ever run, across every project, in a local web dashboard.
71
+
72
+ > This repository is the open-source CLI and local dashboard. secfoo's
73
+ > enterprise portal (multi-tenant cloud sync, admin console) is closed-source
74
+ > and lives in a separate private repository — `secfoo cloud login` connects
75
+ > this CLI to it, but nothing about the portal itself is in this repo.
76
+
77
+ ## Quick Start
78
+
79
+ Requires Python 3.10+ for `pip install` — or skip Python entirely with
80
+ npm, a standalone binary, or Docker (see [Install](#install) below).
81
+
82
+ ```bash
83
+ pip install secfoo
84
+ secfoo run --skill security-architecture-review --agent claude
85
+ ```
86
+
87
+ You'll need an agent CLI already installed and authenticated — Claude
88
+ Code, Cursor, Antigravity, Gemini CLI, or Codex CLI (`--agent claude|agent|agy|gemini|codex`)
89
+ — or just a model API key with the built-in `api` agent (below).
90
+ On a real terminal, that first run prompts for a project name and
91
+ application ID, then browse every result in the dashboard:
92
+
93
+ ```bash
94
+ secfoo run --skill sast --skill threat-modeling \
95
+ --target https://github.com/org/repo --agent claude
96
+ secfoo serve
97
+ ```
98
+
99
+ ### No agent CLI? Use an API key
100
+
101
+ The built-in `api` agent is a LangGraph workflow that sends the target's
102
+ source to OpenAI, Anthropic or Gemini through LiteLLM — no coding-agent
103
+ CLI needed, which suits CI. Keys are read from the environment only and
104
+ never stored:
105
+
106
+ ```bash
107
+ pip install "secfoo[api]"
108
+ export OPENAI_API_KEY=... # or ANTHROPIC_API_KEY / GEMINI_API_KEY
109
+ export SECFOO_API_MODEL=openai/gpt-4.1-mini # optional; any LiteLLM model id
110
+ secfoo run --skill sast --agent api --target https://github.com/org/repo
111
+ ```
112
+
113
+ It suits small and medium repositories: the whole target has to fit in one
114
+ request, and larger ones are rejected with a message suggesting `--exclude`.
115
+
116
+ ### Tracking AI spend
117
+
118
+ Every run records tokens and cost where the agent reports them (`api`,
119
+ `claude`; `gemini` reports tokens only). See it per run in `secfoo run`,
120
+ `secfoo list` and the dashboard, or summarised:
121
+
122
+ ```bash
123
+ secfoo cost # by agent
124
+ secfoo cost --by skill --since 2026-09-01
125
+ secfoo cost --project checkout
126
+ ```
127
+
128
+ Secfoo also includes a built-in LangGraph agent whose model calls are routed
129
+ through LiteLLM. Configure the provider key and model in the environment;
130
+ credentials are never stored in the repository:
131
+
132
+ ```powershell
133
+ $env:OPENAI_API_KEY = "your-key"
134
+ $env:SECFOO_MODEL = "openai/gpt-4o-mini"
135
+ secfoo run --skill security-architecture-review --agent secfoo
136
+ ```
137
+
138
+ LiteLLM-reported spend is stored per run and can be reviewed from the
139
+ dashboard or queried from the CLI:
140
+
141
+ ```bash
142
+ secfoo cost
143
+ secfoo cost --project "Checkout Service"
144
+ ```
145
+
146
+ See [Getting Started](https://secfoo.com/docs/index.html#quickstart) or
147
+ the [CLI reference](https://secfoo.com/docs/cli.html) for more.
148
+
149
+ ## What can you do with secfoo?
150
+
151
+ - **Review architecture and threat-model a system** against secure
152
+ design principles, STRIDE/LINDDUN, and CSA CCM v4 domain conformance
153
+ - **Find code and dependency vulnerabilities** — SAST and SCA reachability
154
+ triage, tracked as an Open/Closed Findings register across rescans, not
155
+ just a one-off report
156
+ - **Catch exposed credentials** across source, config, git history, and
157
+ linked Confluence pages
158
+ - **Review LLM prompts and agent tool definitions** for injection and
159
+ over-permissioning risk
160
+ - **Track third-party/vendor risk** with AI-BOM inventories and a
161
+ dedicated third-party review workflow
162
+ - **Run it in CI**, non-interactively, with the same commands you'd use
163
+ locally
164
+ - **Browse every assessment across every project** in a local dashboard,
165
+ or sync to your org's enterprise portal
166
+
167
+ ## Why secfoo?
168
+
169
+ - **Agent-native, not another parser**: a skill is a structured prompt,
170
+ not a bespoke rules engine — secfoo hands your existing coding-agent
171
+ CLI a brief and a target and lets it actually read the code, the way
172
+ a human reviewer would.
173
+ - **Local-first**: `secfoo serve` and every run stay on your machine
174
+ unless you explicitly connect `secfoo cloud login` to your org's portal.
175
+ - **One case file per system**: assessments consolidate repeat runs
176
+ under the same application ID instead of fragmenting into a new
177
+ record every rescan.
178
+ - **Concurrent by default**: multiple `--skill` flags run at the same
179
+ time, not one after another.
180
+ - **Bring your own agent**: Claude Code, Cursor, Antigravity, Gemini
181
+ CLI, or Codex CLI — pick whichever you already use and trust.
182
+ - **Open source CLI**: MIT licensed.
183
+
184
+ ## Activity catalog
185
+
186
+ | Activity | Skill ID |
187
+ |---|---|
188
+ | Security Architecture Review | `security-architecture-review` |
189
+ | Threat Modeling | `threat-modeling` |
190
+ | SAST — Static Code Analysis | `sast` |
191
+ | SCA — Reachability & Upgrade Triage | `sca-reachability` |
192
+ | Secret Scanning — Code, Confluence & Docs | `secret-scanning` |
193
+ | Prompt Review | `prompt-review` |
194
+ | Deployment Readiness | `deployment-readiness` |
195
+ | Responsible AI Compliance | `responsible-ai-compliance` |
196
+
197
+ Run one, or several together — multiple `--skill` flags execute
198
+ concurrently against the same target. Each has its own report shape and
199
+ program-level dashboard; see [docs/REFERENCE.md](docs/REFERENCE.md) for
200
+ what each one actually produces, plus assessments, configuration, and
201
+ install/distribution details.
202
+
203
+ ## Install
204
+
205
+ ```bash
206
+ pip install secfoo # PyPI, needs Python 3.10+
207
+ npm install -g @rakfortltd/secfoo # npm, no Python needed
208
+ docker run --rm ghcr.io/rakfortltd/secfoo --help
209
+ ```
210
+
211
+ Also available via a universal install script (macOS/Linux/Windows) and
212
+ as standalone platform binaries — see
213
+ [docs/REFERENCE.md#install](docs/REFERENCE.md#install) for every channel.
214
+ Developing on this repo instead? `pip install -e ".[dev]"`.
215
+
216
+ ## Learn More
217
+
218
+ - [docs/REFERENCE.md](docs/REFERENCE.md) — full activity catalog, dashboards, assessments, configuration, distribution
219
+ - [Getting Started](https://secfoo.com/docs/index.html#quickstart)
220
+ - [Full Documentation](https://secfoo.com/docs/index.html)
221
+ - [CLI Reference](https://secfoo.com/docs/cli.html)
222
+ - [Running an assessment](https://secfoo.com/docs/guide-running-an-assessment.html)
223
+ - [Excluding paths from a scan](https://secfoo.com/docs/guide-excluding-paths.html)
224
+ - [Rendering architecture diagrams](https://secfoo.com/docs/guide-architecture-diagrams.html)
225
+ - [Connecting agent CLIs (MCP)](https://secfoo.com/docs/guide-connecting-mcp.html)
226
+ - [Editions & pricing](https://secfoo.com/editions.html)
227
+
228
+ ## Contributing
229
+
230
+ We welcome contributions — see [CONTRIBUTING.md](CONTRIBUTING.md) to get
231
+ started, and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) for community
232
+ expectations. Found a security issue? See [SECURITY.md](SECURITY.md)
233
+ instead of opening a public issue.
secfoo-0.3.0/README.md ADDED
@@ -0,0 +1,189 @@
1
+ # Secfoo - Everyone's a security professional.
2
+
3
+ <p align="center">
4
+ <a href="https://pypi.org/project/secfoo/"><img src="https://img.shields.io/pypi/v/secfoo" alt="PyPI"></a>
5
+ <a href="https://pypi.org/project/secfoo/"><img src="https://img.shields.io/pypi/dm/secfoo" alt="PyPI downloads"></a>
6
+ <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>
7
+ <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>
8
+ </p>
9
+
10
+ <p align="center">
11
+ Secfoo turns any AI coding agent into a disciplined security reviewer — same standards, same report, every run.
12
+ Context-based security architectural assessment orchestrator: pick skills, targets, and an agent CLI to run them.
13
+ </p>
14
+
15
+ <p align="center">
16
+ <a href="https://secfoo.com">Website</a> ·
17
+ <a href="https://secfoo.com/docs/index.html#install">Getting Started</a> ·
18
+ <a href="https://secfoo.com/docs/cli.html">CLI Reference</a> ·
19
+ <a href="https://secfoo.com/docs/index.html">Documentation</a>
20
+ </p>
21
+
22
+ Pick one or more security **activities** (see the catalog below), point them
23
+ at a **target** (a public GitHub URL, a local directory, plus optional
24
+ Confluence links for extra context), choose which coding-agent CLI runs them
25
+ (Claude Code, Cursor, Antigravity, Gemini CLI, or Codex CLI), and browse every
26
+ assessment ever run, across every project, in a local web dashboard.
27
+
28
+ > This repository is the open-source CLI and local dashboard. secfoo's
29
+ > enterprise portal (multi-tenant cloud sync, admin console) is closed-source
30
+ > and lives in a separate private repository — `secfoo cloud login` connects
31
+ > this CLI to it, but nothing about the portal itself is in this repo.
32
+
33
+ ## Quick Start
34
+
35
+ Requires Python 3.10+ for `pip install` — or skip Python entirely with
36
+ npm, a standalone binary, or Docker (see [Install](#install) below).
37
+
38
+ ```bash
39
+ pip install secfoo
40
+ secfoo run --skill security-architecture-review --agent claude
41
+ ```
42
+
43
+ You'll need an agent CLI already installed and authenticated — Claude
44
+ Code, Cursor, Antigravity, Gemini CLI, or Codex CLI (`--agent claude|agent|agy|gemini|codex`)
45
+ — or just a model API key with the built-in `api` agent (below).
46
+ On a real terminal, that first run prompts for a project name and
47
+ application ID, then browse every result in the dashboard:
48
+
49
+ ```bash
50
+ secfoo run --skill sast --skill threat-modeling \
51
+ --target https://github.com/org/repo --agent claude
52
+ secfoo serve
53
+ ```
54
+
55
+ ### No agent CLI? Use an API key
56
+
57
+ The built-in `api` agent is a LangGraph workflow that sends the target's
58
+ source to OpenAI, Anthropic or Gemini through LiteLLM — no coding-agent
59
+ CLI needed, which suits CI. Keys are read from the environment only and
60
+ never stored:
61
+
62
+ ```bash
63
+ pip install "secfoo[api]"
64
+ export OPENAI_API_KEY=... # or ANTHROPIC_API_KEY / GEMINI_API_KEY
65
+ export SECFOO_API_MODEL=openai/gpt-4.1-mini # optional; any LiteLLM model id
66
+ secfoo run --skill sast --agent api --target https://github.com/org/repo
67
+ ```
68
+
69
+ It suits small and medium repositories: the whole target has to fit in one
70
+ request, and larger ones are rejected with a message suggesting `--exclude`.
71
+
72
+ ### Tracking AI spend
73
+
74
+ Every run records tokens and cost where the agent reports them (`api`,
75
+ `claude`; `gemini` reports tokens only). See it per run in `secfoo run`,
76
+ `secfoo list` and the dashboard, or summarised:
77
+
78
+ ```bash
79
+ secfoo cost # by agent
80
+ secfoo cost --by skill --since 2026-09-01
81
+ secfoo cost --project checkout
82
+ ```
83
+
84
+ Secfoo also includes a built-in LangGraph agent whose model calls are routed
85
+ through LiteLLM. Configure the provider key and model in the environment;
86
+ credentials are never stored in the repository:
87
+
88
+ ```powershell
89
+ $env:OPENAI_API_KEY = "your-key"
90
+ $env:SECFOO_MODEL = "openai/gpt-4o-mini"
91
+ secfoo run --skill security-architecture-review --agent secfoo
92
+ ```
93
+
94
+ LiteLLM-reported spend is stored per run and can be reviewed from the
95
+ dashboard or queried from the CLI:
96
+
97
+ ```bash
98
+ secfoo cost
99
+ secfoo cost --project "Checkout Service"
100
+ ```
101
+
102
+ See [Getting Started](https://secfoo.com/docs/index.html#quickstart) or
103
+ the [CLI reference](https://secfoo.com/docs/cli.html) for more.
104
+
105
+ ## What can you do with secfoo?
106
+
107
+ - **Review architecture and threat-model a system** against secure
108
+ design principles, STRIDE/LINDDUN, and CSA CCM v4 domain conformance
109
+ - **Find code and dependency vulnerabilities** — SAST and SCA reachability
110
+ triage, tracked as an Open/Closed Findings register across rescans, not
111
+ just a one-off report
112
+ - **Catch exposed credentials** across source, config, git history, and
113
+ linked Confluence pages
114
+ - **Review LLM prompts and agent tool definitions** for injection and
115
+ over-permissioning risk
116
+ - **Track third-party/vendor risk** with AI-BOM inventories and a
117
+ dedicated third-party review workflow
118
+ - **Run it in CI**, non-interactively, with the same commands you'd use
119
+ locally
120
+ - **Browse every assessment across every project** in a local dashboard,
121
+ or sync to your org's enterprise portal
122
+
123
+ ## Why secfoo?
124
+
125
+ - **Agent-native, not another parser**: a skill is a structured prompt,
126
+ not a bespoke rules engine — secfoo hands your existing coding-agent
127
+ CLI a brief and a target and lets it actually read the code, the way
128
+ a human reviewer would.
129
+ - **Local-first**: `secfoo serve` and every run stay on your machine
130
+ unless you explicitly connect `secfoo cloud login` to your org's portal.
131
+ - **One case file per system**: assessments consolidate repeat runs
132
+ under the same application ID instead of fragmenting into a new
133
+ record every rescan.
134
+ - **Concurrent by default**: multiple `--skill` flags run at the same
135
+ time, not one after another.
136
+ - **Bring your own agent**: Claude Code, Cursor, Antigravity, Gemini
137
+ CLI, or Codex CLI — pick whichever you already use and trust.
138
+ - **Open source CLI**: MIT licensed.
139
+
140
+ ## Activity catalog
141
+
142
+ | Activity | Skill ID |
143
+ |---|---|
144
+ | Security Architecture Review | `security-architecture-review` |
145
+ | Threat Modeling | `threat-modeling` |
146
+ | SAST — Static Code Analysis | `sast` |
147
+ | SCA — Reachability & Upgrade Triage | `sca-reachability` |
148
+ | Secret Scanning — Code, Confluence & Docs | `secret-scanning` |
149
+ | Prompt Review | `prompt-review` |
150
+ | Deployment Readiness | `deployment-readiness` |
151
+ | Responsible AI Compliance | `responsible-ai-compliance` |
152
+
153
+ Run one, or several together — multiple `--skill` flags execute
154
+ concurrently against the same target. Each has its own report shape and
155
+ program-level dashboard; see [docs/REFERENCE.md](docs/REFERENCE.md) for
156
+ what each one actually produces, plus assessments, configuration, and
157
+ install/distribution details.
158
+
159
+ ## Install
160
+
161
+ ```bash
162
+ pip install secfoo # PyPI, needs Python 3.10+
163
+ npm install -g @rakfortltd/secfoo # npm, no Python needed
164
+ docker run --rm ghcr.io/rakfortltd/secfoo --help
165
+ ```
166
+
167
+ Also available via a universal install script (macOS/Linux/Windows) and
168
+ as standalone platform binaries — see
169
+ [docs/REFERENCE.md#install](docs/REFERENCE.md#install) for every channel.
170
+ Developing on this repo instead? `pip install -e ".[dev]"`.
171
+
172
+ ## Learn More
173
+
174
+ - [docs/REFERENCE.md](docs/REFERENCE.md) — full activity catalog, dashboards, assessments, configuration, distribution
175
+ - [Getting Started](https://secfoo.com/docs/index.html#quickstart)
176
+ - [Full Documentation](https://secfoo.com/docs/index.html)
177
+ - [CLI Reference](https://secfoo.com/docs/cli.html)
178
+ - [Running an assessment](https://secfoo.com/docs/guide-running-an-assessment.html)
179
+ - [Excluding paths from a scan](https://secfoo.com/docs/guide-excluding-paths.html)
180
+ - [Rendering architecture diagrams](https://secfoo.com/docs/guide-architecture-diagrams.html)
181
+ - [Connecting agent CLIs (MCP)](https://secfoo.com/docs/guide-connecting-mcp.html)
182
+ - [Editions & pricing](https://secfoo.com/editions.html)
183
+
184
+ ## Contributing
185
+
186
+ We welcome contributions — see [CONTRIBUTING.md](CONTRIBUTING.md) to get
187
+ started, and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) for community
188
+ expectations. Found a security issue? See [SECURITY.md](SECURITY.md)
189
+ instead of opening 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 = "Apache-2.0"
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
- "typer>=0.12",
28
- # typer 0.12.x's rich help renderer and Enum-option handling call into
29
- # click.Parameter internals (make_metavar(), Choice default validation)
30
- # that click 8.2 changed the signature/strictness of -- pinning below
31
- # 8.2 keeps `secfoo --help` and any Enum-typed --option with a default
32
- # from crashing. Safe to drop once typer is upgraded past this pair.
33
- "click<8.2",
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.0"
@@ -0,0 +1,5 @@
1
+ from secfoo.agents.base import AgentAdapter, AgentResult
2
+ from secfoo.agents.registry import ADAPTERS, get_adapter
3
+ from secfoo.agents.secfoo import SecFooAdapter
4
+
5
+ __all__ = ["AgentAdapter", "AgentResult", "SecFooAdapter", "ADAPTERS", "get_adapter"]