Back to Skills

signed-audit-trails-recipe

Step-by-step cookbook for setting up cryptographically signed audit trails on Claude Code tool calls. Use when explaining, evaluating, or demonstrating the pattern before committing to the protect-mcp runtime hooks. Covers Cedar policy, Ed25519 receipts, offline verification, tamper detection, CI/CD integration, and SLSA composition.

36,532stars3,954forksUpdated 6/9/2026

Security Assessment

High Risk(40/100)

Detected risks:

Destructive Operations([SKILL.md] rm -rf, [SKILL.md] mkfs, [SKILL.md] shred)
Security Score40/100

About signed-audit-trails-recipe

The `signed-audit-trails-recipe` skill provides a step-by-step guide for implementing cryptographically signed audit trails on Claude Code tool calls. It addresses the challenge of proving that each automated tool execution adheres to defined policies and has not been tampered with. By generating verifiable Ed25519 receipts for each tool call, this skill ensures that auditors, regulators, or collaborators can validate the sequence and integrity of actions without relying on external networks or trusting the operator. This approach enhances transparency, accountability, and compliance in environments where trust and evidence are critical.

Key features include pre-execution evaluation of every tool call against a Cedar policy to enforce security and compliance rules, and post-execution signing of tool outputs as tamper-evident receipts. These receipts are hash-chained, JCS-canonical, and can be verified offline using a simple CLI command. The skill also covers the setup of hooks in Claude settings, the creation of safe and restrictive Cedar policies, and guidance for key management. It emphasizes secure handling of private keys and integration into CI/CD pipelines, ensuring that automated processes maintain auditable and policy-compliant behavior.

This skill is particularly useful for regulated industries such as finance, healthcare, and critical infrastructure, where evidence of agent actions must be tamper-evident. It is also suitable for multi-party collaborations, CI/CD pipelines requiring policy enforcement, and compliance contexts like the EU AI Act and SLSA provenance for software built by agents. Target users include developers, security engineers, auditors, and compliance officers who need to demonstrate verifiable adherence to operational and regulatory policies while maintaining the integrity of automated workflows.

FAQ

How do I enable signed audit trails for my Claude Code tool calls?

Install the skill by configuring PreToolUse and PostToolUse hooks in your `.claude/settings.json`. The hooks evaluate each tool call against a Cedar policy and generate Ed25519 receipts for post-execution verification.

Which tools are supported by this skill?

The skill supports all Claude Code tool calls, including Bash, Edit, Write, and WebFetch, provided the hooks are properly configured in the project settings.

Do I need an internet connection to verify the receipts?

No, all receipts are verifiable offline using the provided CLI command. Verification does not require a network call or any third-party trust.

Where should I store my private key and receipts?

The private key and receipts directory should be kept out of version control, for example by adding them to `.gitignore`. Only the public key fingerprint should be committed for verification purposes.

Can I use this skill in CI/CD pipelines?

Yes, the skill is designed to integrate with automated pipelines to enforce policy checks and generate verifiable audit trails for each build or deployment step.

Install signed-audit-trails-recipe

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

wshobson/agents