Governed compliance evidence from AIops audit trails: HIPAA/PCI-DSS/SOC2/GDPR, hash-chain-sealed, 15 MCP tools (preview)
git clone https://github.com/AIops-tools/Compliance-AIops && cp Compliance-AIops/*.md ~/.claude/agents/Resumen de Subagents
<!-- mcp-name: io.github.AIops-tools/compliance-aiops --> # Compliance AIops > **Disclaimer**: Community-maintained open-source project. **Not affiliated with, endorsed by, or sponsored by any framework body or GRC vendor.** HIPAA, PCI-DSS, SOC 2, GDPR and OSCAL are referenced descriptively; the frameworks and trademarks belong to their owners. MIT licensed. Governed **compliance-evidence** tooling for AI-agent infrastructure ops. It **reads the audit trails your governed AIops agents already write** — the local `~/.<tool>-aiops/audit.db` SQLite trails, all sharing one `audit_log` schema — and turns that activity into **framework-mapped, hash-chain-sealed compliance evidence**. It **never scans your infrastructure and never replaces a GRC platform**: it converts the trails you already produce into auditor-ready, tamper-evident evidence bundles. Unlike the other tools in the AIops-tools line it is **not a platform wrapper**: **no external API, no network, no platform credentials**. Its only inputs are those on-disk audit databases, read **read-only**. That also makes it the easiest-to-self-test tool in the line — fully offline and deterministic. > **Evidence, not certification.** Fully offline; the source `audit.db` > files remain the system of record. OSCAL export is a documented v0.2 roadmap > item (v0.1 emits JSON + Markdown + CSV shaped to ease a future OSCAL > Assessment-Results adapter). ## Key features - **Framework mapping with honest evidence-strength** — audit events map to **HIPAA §164.312 / PCI-DSS v4.0 / SOC 2 TSC / GDPR** controls. Audit trails prove *operating effectiveness* strongly but *control design / configuration* only partially, and each control is labelled `strong` or `partial`. `gap_analysis` says so per control, with the caveat and a remediation hint. - **Hash-chain-sealed evidence bundles** — SHA-256 over ordered records (`hash = SHA-256(prev_hash ‖ canonical_json(record))`, genesis prev = 64 zeros). The `chainHead` is **reproducible** for the same (framework, period, sources). `verify_bundle` catches tampering; `verify_source_chain` detects row-id gaps / deletions in a source trail. An optional HMAC signature seals a bundle under a stored signing key. - **Zero-network, read-only** — no credentials, no outbound calls, no mutation of the source trails. Bundles are the only thing written, under `~/.compliance-aiops/bundles/`. - **Deterministic, test-verified integrity** — the integrity claims are themselves covered by tests: synthetic audit DBs are built through the real governance-harness `AuditEngine`, a golden reproducible `chainHead` is asserted, and tamper tests confirm detection. No live infrastructure needed. ## What this tool does, and does not, decide It reads your audit trails and writes evidence bundles — and records every operation. It does **not** decide whether producing or signing a bundle is allowed: that is the agent's judgement, or the filesystem permissions of the account it runs as. The source `audit.db` files are opened strictly read-only regardless, and the only thing ever written is a bundle under `~/.compliance-aiops/bundles/`. So there is no read-only switch, no policy file, no approval gate to configure. The one thing the tool guarantees is that nothing is silent: **every call, over MCP and over the CLI alike, lands an audit row** in `~/.compliance-aiops/audit.db`. > Each tool declares a `risk_level`, kept in agreement with its `[READ]`/`[WRITE]` > documentation tag by a test, and carried into the audit row as a descriptive > tier — so a reviewer can see at a glance what a row was. It is a label, not a > gate. ## Tools (16 MCP tools) ### Read / analysis (13) | Tool | Purpose | |------|---------| | `list_audit_sources` | Discovered sibling audit DBs (path, tool, readable, row count) | | `query_audit_events` | Cross-tool event query — filter by tool/skill/status/risk/approved/selector/since/until | | `activity_timeline` | Event counts bucketed by hour or day | | `list_frameworks` | Supported frameworks + control counts | | `coverage_summary` | Per-control covered/weak/uncovered for ONE framework | | `control_evidence` | Evidence rows + population + a reproducible query for ONE control | | `gap_analysis` | Controls with no/weak evidence + honest caveat + remediation | | `approval_report` | High-risk write ops + who approved + rationale (the CC8.1 / PCI 7-8 / HIPAA §312(a) artifact) | | `exceptions_report` | Denied / error / budget_exceeded ops — enforcement + anomaly evidence | | `verify_source_chain` | Chain head + row-id gap detection for one source | | `verify_bundle` | Verify a sealed bundle: chain + seal head + optional signature | | `list_bundles` | Bundles under `~/.compliance-aiops/bundles/` | | `bundle_schedule_hint` | Ready-to-paste cron line + non-interactive command for periodic sealing (writes nothing) | ### Write / artifact (3 — no external mutation) | Tool | Risk | Purpose | |------|:---:|---------| | `generate_evidence_bundle` | low | One call: coverage + approval trail + exceptions + sealed records → a bundle `.json` | | `export_bundle` | low | Render a bundle to markdown / csv / json | | `sign_bundle` | medium | HMAC over the seal using the stored signing key | The CLI exposes a convenience subset; the full 18-tool surface is available over MCP. ## Frameworks & controls | Framework | Sample controls (strength) | |-----------|----------------------------| | **HIPAA** (§164.312) | 164.312(b) Audit controls (strong), 164.312(a)(1) Access control (strong), 164.312(c)(1) Integrity (strong) | | **PCI-DSS v4.0** | 10.2 Audit log content (strong), 10.3 Protect audit logs (strong), 7-8 Least privilege / authn (partial) | | **SOC 2 TSC** | CC6.1 Logical access (strong), CC7.2 Monitoring (strong), CC8.1 Change management (strong) | | **GDPR** | Art.30 Records of processing (partial), Art.32 Security of processing (strong) | | **ISO/IEC 27001:2022** (Annex A) | A.5.15 Access control (strong), A.5.16 Identity mgmt (strong), A.5.18 Access rights (partial), A.8.2 Privileged access (partial), A.8.15 Logging (strong), A.8.16 Monitoring (strong), A.8.32 Change management (strong) | | **等保2.0 (DJCP L3)** (GB/T 22239-2019 三级) | 8.1.5.4 安全审计 (strong), 8.1.4.2 访问控制 (partial), 8.1.5 安全管理中心/集中审计 (strong) | ## Install ```bash uv tool install compliance-aiops # or: pipx install compliance-aiops ``` ## Quick start ```bash compliance-aiops init # discover sibling ~/.*-aiops/audit.db, set org name, optional signing key compliance-aiops doctor # which sibling audit DBs are present/readable compliance-aiops overview # audit sources + per-framework covered/total compliance-aiops report coverage soc2 # per-control SOC 2 coverage compliance-aiops bundle generate soc2 # sealed evidence bundle → ~/.compliance-aiops/bundles/ compliance-aiops bundle verify <path> # re-verify the chain + seal (+ signature) ``` Run as an MCP server (stdio): ```bash export COMPLIANCE_AIOPS_MASTER_PASSWORD=... # only needed to unlock a signing key compliance-aiops mcp # or: compliance-aiops-mcp ``` ## 定期封存 (scheduled sealing) Evidence bundles are most useful when sealed on a **cadence** (e.g. weekly), so each period has a tamper-evident anchor. This tool ships **no daemon** — instead `bundle schedule` prints a ready-to-paste cron line plus the exact non-interactive command, and writes nothing: ```bash compliance-aiops bundle schedule soc2 --cron "0 2 * * 1" --period 7d --sign ``` It returns a `cronLine` you paste into `crontab -e`, for example: ```cron 0 2 * * 1 compliance-aiops bundle generate soc2 --period 7d --sign ``` - `--period` (also available on `bundle generate`) is a convenience relative window — `7d`, `24h`, `2w`, or `last-7-days` — resolved to a since/until pair ending "now", so each scheduled run seals the trailing window. - Export `COMPLIANCE_AIOPS_MASTER_PASSWORD` **in the cron job's environment** so a stored signing key unlocks non-interactively. Do **not** inline the real password in the crontab file — reference it from a protected env file. ## Integrity & honest limits - **Tamper-EVIDENT, not tamper-PROOF.** The hash chain and optional signature let an auditor *detect* alteration; they do not prevent it. The source `audit.db` files remain the system of record — record the `chainHead` out-of-band if you need an independent anchor. - **Operating effectiveness vs. design.** An audit trail strongly evidences that a control *ran* (samples, approvals, denials) but only partially evidences that a control is *designed / configured* correctly (e.g. MFA required, least-privilege roles). Every control carries a `strong` / `partial` label and `gap_analysis` surfaces the caveat rather than overclaiming. ## Supported scope & limitations - **Evidence, not certification.** This produces auditor-ready evidence bundles; it does not issue attestations, opinions, or certifications. - **In scope:** the six frameworks above, over the `audit_log` trails written by governed AIops tools discovered via `~/.*-aiops/audit.db`. - **Not in scope:** it does **not** scan infrastructure, connect to any platform, or replace a GRC platform. For platform operations use the other AIops-tools. - **OSCAL export is v0.2.** v0.1 emits JSON + Markdown + CSV. - **Interfaces may change before v1.0.** - **Verification:** the integrity claims are covered by deterministic offline tests; see [`docs/VERIFICATION.md`](docs/VERIFICATION.md) for the reproducible run. ## Missing a capability? Want another framework, control mapping, export format (OSCAL, CSV shape), or a verification you don't see here? **Open an issue or a PR — contributions welcome.**
Lo que la gente pregunta sobre Compliance-AIops
¿Qué es AIops-tools/Compliance-AIops?
+
AIops-tools/Compliance-AIops es subagents para el ecosistema de Claude AI. Governed compliance evidence from AIops audit trails: HIPAA/PCI-DSS/SOC2/GDPR, hash-chain-sealed, 15 MCP tools (preview) Tiene 0 estrellas en GitHub y se actualizó por última vez yesterday.
¿Cómo se instala Compliance-AIops?
+
Puedes instalar Compliance-AIops clonando el repositorio (https://github.com/AIops-tools/Compliance-AIops) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar AIops-tools/Compliance-AIops?
+
AIops-tools/Compliance-AIops aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.
¿Quién mantiene AIops-tools/Compliance-AIops?
+
AIops-tools/Compliance-AIops es mantenido por AIops-tools. La última actividad registrada en GitHub es de yesterday, con 0 issues abiertos.
¿Hay alternativas a Compliance-AIops?
+
Sí. En ClaudeWave puedes explorar subagents similares en /categories/agents, ordenados por popularidad o actividad reciente.
Despliega Compliance-AIops en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/aiops-tools-compliance-aiops)<a href="https://claudewave.com/repo/aiops-tools-compliance-aiops"><img src="https://claudewave.com/api/badge/aiops-tools-compliance-aiops" alt="Featured on ClaudeWave: AIops-tools/Compliance-AIops" width="320" height="64" /></a>Más Subagents
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
The agent that grows with you
Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
The agent engineering platform.
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.