← 返回
安全合规 中文

Compliance Audit

Immutable audit trail for autonomous agent operations. Log skill executions, data access, decisions, and budget changes with tamper-evident hashes. Essential...
不可篡改的审计日志,记录自主代理的技能执行、数据访问、决策和预算变更,并采用防篡改哈希确保完整性。至关重要。
trypto1019
安全合规 clawhub v1.0.0 1 版本 99694 Key: 无需
★ 0
Stars
📥 1,303
下载
💾 15
安装
1
版本
#latest

概述

Compliance Audit Trail

Immutable, tamper-evident audit logging for autonomous agents. Every action gets a hash-chained entry that can be verified for integrity.

Why This Exists

Autonomous agents make decisions, execute skills, access data, and spend money without human oversight. When something goes wrong, you need to know exactly what happened. Current agent frameworks have no standard audit trail — this fills that gap.

Commands

Log an action

python3 {baseDir}/scripts/audit.py log --action "skill_executed" --details '{"skill": "scanner", "target": "some-skill", "result": "clean"}'

Log a decision

python3 {baseDir}/scripts/audit.py log --action "decision" --details '{"choice": "deploy v2", "reason": "all tests passed", "alternatives_considered": ["rollback", "hotfix"]}'

Log data access

python3 {baseDir}/scripts/audit.py log --action "data_access" --details '{"resource": "api_key", "purpose": "moltbook_post", "accessor": "ghost_agent"}'

Log a budget change

python3 {baseDir}/scripts/audit.py log --action "budget_change" --details '{"amount": -10.00, "merchant": "namecheap", "reason": "domain purchase", "balance_after": 190.00}'

View recent entries

python3 {baseDir}/scripts/audit.py view --last 20

View entries by action type

python3 {baseDir}/scripts/audit.py view --action skill_executed

View entries in a time range

python3 {baseDir}/scripts/audit.py view --since "2026-02-15T00:00:00" --until "2026-02-16T00:00:00"

Verify audit trail integrity

python3 {baseDir}/scripts/audit.py verify

Export audit trail

python3 {baseDir}/scripts/audit.py export --format json > audit-export.json
python3 {baseDir}/scripts/audit.py export --format csv > audit-export.csv

Generate compliance summary

python3 {baseDir}/scripts/audit.py summary --period day

Entry Format

Each audit entry contains:

  • timestamp — ISO 8601, UTC
  • action — what happened (skill_executed, decision, data_access, budget_change, error, custom)
  • agent — which agent performed the action
  • details — structured JSON with action-specific data
  • hash — SHA-256 hash chaining previous entry's hash + current entry (tamper-evident)
  • sequence — monotonically increasing sequence number

Integrity Verification

The audit trail is hash-chained: each entry includes a SHA-256 hash of the previous entry's hash concatenated with the current entry's data. If any entry is modified or deleted, the chain breaks and verify will report the exact point of tampering.

Storage

Audit logs are stored in ~/.openclaw/audit/ as daily JSON files (audit-YYYY-MM-DD.json). This keeps individual files small while maintaining the full history.

Use Cases

  • Incident response: What happened in the 5 minutes before the error?
  • Budget accountability: Show every dollar spent and why
  • Trust verification: Prove your agent hasn't been compromised
  • Enterprise compliance: Meet audit requirements for autonomous systems
  • Debugging: Trace the decision chain that led to an unexpected outcome

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 04:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,210 📥 266,151
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,586
content-creation

Skill Sandbox

trypto1019
在安装前于隔离环境中测试不受信技能,监控网络访问、文件写入、环境变量读取及子进程调用。
★ 1 📥 1,360