cognis-digital/soc2box

GitHub: cognis-digital/soc2box

自托管的 SOC 2 合规证据收集器与控制项追踪工具,帮助团队持续保持审计就绪状态。

Stars: 0 | Forks: 0

SOC2BOX # SOC2BOX ### SOC 2 证据收集器与控制追踪器,自托管 [![PyPI](https://img.shields.io/pypi/v/cognis-soc2box.svg?color=6b46c1)](https://pypi.org/project/cognis-soc2box/) [![CI](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/9b0bf7d8ed055543.svg)](https://github.com/cognis-digital/soc2box/actions) [![License: COCL 1.0](https://img.shields.io/badge/License-COCL%201.0-2b6cb0.svg)](LICENSE) [![Suite](https://img.shields.io/badge/Cognis-Neural%20Suite-6b46c1.svg)](https://github.com/cognis-digital) *合规 & GRC — 时刻保持审计就绪状态,自托管。*
``` pip install cognis-soc2box soc2box scan . # → prioritized findings in seconds ``` ## 使用说明 — 逐步指南 1. **安装** CLI(控制台脚本 `soc2box`): pip install cognis-soc2box 2. **初始化项目** — `init` 会使用默认的 TSC 控制项生成一个项目文件(默认为 `soc2_program.json`): soc2box init --company "Acme Inc" --framework "SOC 2 Type II" 3. **将证据附加到控制项** — `add` 会针对特定的控制项 ID 记录一个带有日期的工件: soc2box add CC6.1 https://drive/screenshot.png --by jdoe --note "Q2 access review" 4. **读取状态 / 就绪情况** — `status` 显示每个控制项的新鲜度,`report` 提供整体的就绪百分比,而 `gaps` 会列出缺失/过期的内容(当仍存在差距时以状态码 `2` 退出): soc2box report soc2box status --format json | jq '.[] | select(.status!="satisfied")' 5. **作为审计门禁实现自动化** — 只要控制项仍需关注,`gaps` 就会返回非零退出码: - 运行:pip install cognis-soc2box - 运行:soc2box gaps # 在控制项集合被满足之前,退出码均为非零 ## 目录 - [为什么选择 soc2box?](#why) · [功能](#features) · [快速开始](#quick-start) · [示例](#example) · [架构](#architecture) · [AI 技术栈](#ai-stack) · [对比分析](#how-it-compares) · [集成](#integrations) · [随处安装](#install-anywhere) · [相关项目](#related) · [贡献指南](#contributing) ## 为什么选择 soc2box? 最热门的 GRC 细分领域,自托管 `soc2box` 是单一用途、可脚本化且可自托管的:将其指向目标,以您的工作流已使用的格式(表格 · JSON · SARIF)获取优先级排序的结果,使用它在 CI 中设置门禁,并让代理通过 MCP 驱动它。
↑ 回到顶部
## 功能 - ✅ 新建项目 - ✅ 项目转字典 - ✅ 从字典创建项目 - ✅ 加载项目 - ✅ 保存项目 - ✅ 添加证据 - ✅ 控制项状态 - ✅ 项目就绪情况 - ✅ 支持 Linux/macOS/Windows · Docker · devcontainer 运行 - ✅ 支持 Python、JavaScript、Go 和 Rust 的多语言移植版本 (`ports/`)
↑ 回到顶部
## 快速开始 ``` pip install cognis-soc2box soc2box --version soc2box scan . # scan current project soc2box scan . --format json # machine-readable soc2box scan . --fail-on high # CI gate (non-zero exit) ```
↑ 回到顶部
## 示例 ``` $ soc2box scan . [HIGH ] SOC-001 example finding (./src/app.py) [MEDIUM ] SOC-002 another signal (./config.yaml) 2 findings · risk score 5 · 38ms ```
↑ 回到顶部
## 架构 ``` flowchart LR IN[input] --> P[soc2box
analyze + score] P --> OUT[report] ```
↑ 回到顶部
## 在任何 AI 技术栈中使用 `soc2box` 兼容所有流行的 AI 使用方式: - **MCP server** — `soc2box mcp`(Claude Desktop、Cursor、Cognis.Studio、[uncensored-fleet](https://github.com/cognis-digital/uncensored-fleet)) - **兼容 OpenAI / JSON** — 将 `soc2box scan . --format json` 通过管道传递给任何代理或 LLM - **LangChain · CrewAI · AutoGen · LlamaIndex** — 只需一行代码即可将 CLI/JSON 封装为工具 - **CI / 脚本** — 为非 AI pipeline 提供 exit code + SARIF
↑ 回到顶部
## 对比分析 | | **Cognis soc2box** | Comp AI | |---|:---:|:---:| | 可自托管,无需账号 | ✅ | 视情况而定 | | 单一命令,零配置 | ✅ | ⚠️ | | 面向 CI 的 JSON + SARIF | ✅ | 视情况而定 | | MCP 原生支持(AI 代理) | ✅ | ❌ | | 多语言端口(JS/Go/Rust) | ✅ | ❌ | | 开放许可证 | ✅ COCL | 视情况而定 | *秉承 **Comp AI / Probo** 的精神,以 Cognis 的方式重新构建。遗漏了致谢?欢迎提交 PR。*
↑ 回到顶部
## 集成 可融入您的技术栈:用于代码扫描的 **SARIF**,适用于任何场景的 **JSON**,面向 AI 代理的 **MCP server**(`soc2box mcp`),以及用于 SIEM/Slack/Jira 的 webhook 转发器。详见 [`docs/INTEGRATIONS.md`](docs/INTEGRATIONS.md)。
↑ 回到顶部
## 安装 — 全平台,所有方式 ``` pip install "git+https://github.com/cognis-digital/soc2box.git" # pip (works today) pipx install "git+https://github.com/cognis-digital/soc2box.git" # isolated CLI uv tool install "git+https://github.com/cognis-digital/soc2box.git" # uv pip install cognis-soc2box # PyPI (when published) docker run --rm ghcr.io/cognis-digital/soc2box:latest --help # Docker brew install cognis-digital/tap/soc2box # Homebrew tap curl -fsSL https://raw.githubusercontent.com/cognis-digital/soc2box/main/install.sh | sh ``` | Linux | macOS | Windows | Docker | Cloud | |---|---|---|---|---| | `scripts/setup-linux.sh` | `scripts/setup-macos.sh` | `scripts/setup-windows.ps1` | `docker run ghcr.io/cognis-digital/soc2box` | [DEPLOY.md](docs/DEPLOY.md) (AWS/Azure/GCP/k8s) |
↑ 回到顶部
## 相关 Cognis 工具 - [`gdprkit`](https://github.com/cognis-digital/gdprkit) — GDPR/CCPA DSAR、RoPA 和 cookie 同意管理工具包 - [`policyforge`](https://github.com/cognis-digital/policyforge) — 通过简短的问卷自动生成安全策略 - [`vendorvet`](https://github.com/cognis-digital/vendorvet) — 结合 SBOM 交叉引用的第三方/供应商风险评估问卷 - [`auditrail`](https://github.com/cognis-digital/auditrail) — 具备哈希链证实的防篡改审计日志聚合器 - [`frameworkmap`](https://github.com/cognis-digital/frameworkmap) — 跨越 NIST、ISO 27001、SOC 2、CMMC、PCI 的交叉映射控制项 - [`dpiaforge`](https://github.com/cognis-digital/dpiaforge) — DPIA 与欧盟 AI 法案影响评估生成器 **探索全套工具 →** [🗂️ 全部 170+ 种工具](https://github.com/cognis-digital/cognis-neural-suite) · [⭐ awesome-cognis](https://github.com/cognis-digital/awesome-cognis) · [🔗 cognis-sources](https://github.com/cognis-digital/cognis-sources) · [🤖 uncensored-fleet](https://github.com/cognis-digital/uncensored-fleet) · [🧠 engram](https://github.com/cognis-digital/engram)
↑ 回到顶部
## 互操作性 `{}` 可与包含 300+ 工具的 Cognis 套件无缝组合 — 统一的 JSON 输入/输出以及共享的、兼容 OpenAI 的 `/v1` 主干网络。请参阅 **[INTEROP.md](INTEROP.md)** 了解套件图谱、组合模式与参考技术栈。 ## 许可证 在 **Cognis 开放协作许可证 (COCL) v1.0** 下提供源代码 — 个人、内部评估、研究和教育用途免费;**商业/生产用途需要许可证** (licensing@cognis.digital)。详见 [LICENSE](LICENSE)。
Cognis Digital · Cognis Neural Suite 中的 170+ 工具之一 · 让明天更美好,从今天开始
标签:ESC漏洞, GRC, SOC 2, 内部控制, 对称加密, 文档结构分析, 自动化审计, 自托管, 证据收集, 请求拦截, 逆向工具