Skip to main content
The attesta audit subcommands let you inspect and verify the SHA-256 hash-chained audit trail that Attesta produces. Every gated action — approved, denied, timed out, or escalated — is recorded in a JSONL file with cryptographic integrity guarantees.

Shared Options

All attesta audit subcommands accept:

attesta audit verify

Verify the hash-chain integrity of the audit log. Each entry contains a SHA-256 hash of the previous entry, forming a tamper-evident chain. If any entry has been modified, inserted, or deleted, the chain breaks.

Usage

Example Output (Intact)

Example Output (Broken)

A broken audit chain indicates that one or more entries have been tampered with, manually edited, or that the log file was corrupted. Investigate immediately — the broken link indices tell you exactly which entries to examine.
The command exits with code 0 on success and code 1 if the chain is broken, making it suitable for CI pipelines:

attesta audit stats

Print comprehensive approval statistics from the audit log, including totals by verdict, average review time, rubber-stamp rate, and risk level distribution.

Usage

Example Output

Understanding the Output

A rubber-stamp rate above 10% (shown in yellow) or 20% (shown in red) suggests operators may be approving high-risk actions without adequate review. Consider increasing minimum_review_seconds in your attesta.yaml.

attesta audit rubber-stamps

List individual audit entries that were approved suspiciously fast relative to their risk level. These are potential rubber stamps — approvals where the operator likely did not read or understand the action.

Usage

Example Output

Find only critical-risk rubber stamps approved in under 3 seconds:
Find all rubber stamps including medium-risk actions:
When no rubber stamps are found:

CI/CD Integration

You can use audit commands in CI/CD pipelines to enforce audit hygiene:
github-actions.yml
The audit log is append-only by design. Attesta never modifies or deletes existing entries. The hash chain makes any external tampering detectable via attesta audit verify.

Next Steps

attesta trust

Manage agent trust profiles

Audit Trail Concepts

Learn how the hash-chained audit log works