Compliance AIops

io.github.AIops-tools由 GitHub 帳號 AIops-tools 發布v0.15.0更新於 Oct 30, 2026

Compliance evidence from AIops audit trails: HIPAA/PCI/SOC2/GDPR, OSCAL export, 19 tools.

已驗證STDIO僅桌面安全與監控資料與分析

概覽

AI 產生的概覽

把本機 AIops 稽核軌跡 SQLite 資料庫轉換為依合規框架對應、以雜湊鏈封存的合規證據包,全程離線。

可以做什麼
  • 探索並查詢稽核來源:列出同層稽核資料庫、跨工具查詢事件、依小時或天統計活動時間軸
  • 對應至控制項:列出支援的框架,提供單一框架的控制涵蓋率、證據列與落差分析
  • 產出稽核成品:高風險寫入操作與其核准報告、遭拒絕或失敗操作的例外報告
  • 驗證完整性:偵測來源軌跡的列編號缺口,驗證已封存證據包的雜湊鏈與選用簽章
  • 產生與匯出證據包:將涵蓋率、核准與例外封存為證據包,並匯出為 JSON、Markdown、CSV 或 OSCAL
  • 規劃定期封存:提供可直接貼上的 cron 行與非互動指令
適用情境
當你已在執行會寫入本機稽核軌跡的受治理 AIops 工具,且需要對應到 HIPAA、PCI-DSS、SOC 2、GDPR、ISO 27001 或等保 2.0 控制項、可供稽核使用的證據時適用。它適合離線、可重現的證據產生與定期封存快照,而非掃描基礎設施或取代 GRC 平台。
執行需求
以本機 Python 套件形式透過 stdio 執行(以 uv tool install 或 pipx 安裝),不需網路、外部 API 或平台憑證。它以唯讀方式讀取使用者家目錄下的同層稽核資料庫,並將證據包寫入本機合規目錄。僅在解鎖已存放的簽章金鑰時需要選用的主密碼環境變數。
安裝前請注意
證據包只能讓竄改被偵測到,並非防竄改,來源稽核資料庫仍是記錄系統。此工具會寫入證據包與自身稽核列,簽章依賴由主密碼解鎖的已存放金鑰;在 shell 或 cron 環境中匯出該密碼會暴露給其他程序與指令歷史。它產出的是證據而非認證,OSCAL 匯出仍屬藍圖功能。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Compliance AIops,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Compliance AIops

Audit availability: Real writes require a committed pending audit row and stop before contacting the platform if storage is unavailable. Reads and previews may continue with a warning; new audit rows store outcome summaries rather than full responses.

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)

ToolPurpose
list_audit_sourcesDiscovered sibling audit DBs (path, tool, readable, row count)
query_audit_eventsCross-tool event query — filter by tool/skill/status/risk/approved/selector/since/until
activity_timelineEvent counts bucketed by hour or day
list_frameworksSupported frameworks + control counts
coverage_summaryPer-control covered/weak/uncovered for ONE framework
control_evidenceEvidence rows + population + a reproducible query for ONE control
gap_analysisControls with no/weak evidence + honest caveat + remediation
approval_reportHigh-risk write ops + who approved + rationale (the CC8.1 / PCI 7-8 / HIPAA §312(a) artifact)
exceptions_reportDenied / error / budget_exceeded ops — enforcement + anomaly evidence
verify_source_chainChain head + row-id gap detection for one source
verify_bundleVerify a sealed bundle: chain + seal head + optional signature
list_bundlesBundles under ~/.compliance-aiops/bundles/
oscal_assessment_resultsA sealed bundle as a NIST OSCAL 1.2.3 Assessment Results document, inline, with its limitations named
bundle_schedule_hintReady-to-paste cron line + non-interactive command for periodic sealing (writes nothing)

Write / artifact (3 — no external mutation)

ToolRiskPurpose
generate_evidence_bundlelowOne call: coverage + approval trail + exceptions + sealed records → a bundle .json
export_bundlelowRender a bundle to markdown / csv / json / oscal
sign_bundlemediumHMAC over the seal using the stored signing key

The CLI exposes a convenience subset; the full 19-tool surface is available over MCP.

Frameworks & controls

FrameworkSample 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.010.2 Audit log content (strong), 10.3 Protect audit logs (strong), 7-8 Least privilege / authn (partial)
SOC 2 TSCCC6.1 Logical access (strong), CC7.2 Monitoring (strong), CC8.1 Change management (strong)
GDPRArt.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

As a Claude Code plugin

One install gives an agent both the skill and the MCP server:

/plugin marketplace add AIops-tools/marketplace/plugin install compliance-aiops@aiops-tools

The MCP server is fetched with uv and pinned to the package version this plugin declares, so an audit row can be traced back to the code that wrote it. Credentials are still configured with compliance-aiops init — see below.

As an OpenClaw plugin

The same bundle is published on ClawHub, where one install delivers the skill and its MCP server together:

bash
openclaw plugins install clawhub:@zw008/compliance-aiopsopenclaw skills info compliance-aiops          # expect: Visible to model: yes

Restart the OpenClaw gateway afterwards so it loads the plugin. The MCP server is fetched with uv, pinned to this exact release, so uvx has to be on PATH — without it the skill still installs but reports Visible to model: no. Credentials are configured exactly as below.

As a CLI or standalone MCP server

bash
compliance-aiops init                 # discover sibling ~/.*-aiops/audit.db, set org name, optional signing keycompliance-aiops doctor               # which sibling audit DBs are present/readablecompliance-aiops overview             # audit sources + per-framework covered/totalcompliance-aiops report coverage soc2 # per-control SOC 2 coveragecompliance-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 keycompliance-aiops mcp                          # or: compliance-aiops-mcp

Where that password then lives: an exported variable is readable by every process this shell starts and is recorded by shell history. On a shared or long-lived host, prefer the interactive prompt, or inject it from a secret manager for the life of the one command that needs it.

定期封存 (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 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.

來源:README.md,提交 39a9998

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

4
  1. v0.15.0最新Oct 30, 2026
  2. v0.14.0Oct 15, 2026
  3. v0.12.0Oct 15, 2026
  4. v0.11.3Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分