trusthub audit

View, verify, and export the tamper-evident audit log. Every SDK action is recorded with a chained hash so you can detect unauthorized modifications.

Commands

CommandDescription
trusthub audit showDisplay recent audit entries in a table
trusthub audit verifyVerify the integrity of the entire audit hash chain
trusthub audit exportExport the audit log to a JSON or CSV file

Usage

# Show last 20 entries (default)
trusthub audit show

# Filter by agent DID and limit
trusthub audit show --did did:trusthub:acme:abc... --last 50

# Verify the full audit chain
trusthub audit verify

# Export to JSON
trusthub audit export --format json --output audit_export.json

# Export to CSV
trusthub audit export --format csv --output audit_export.csv

Options

OptionApplies ToDescription
--didshowFilter entries by agent DID
--lastshowNumber of recent entries to display (default 20)
--formatexportOutput format: json or csv (default json)
--outputexportOutput file path (default audit_export.json)

Verify Output

The verify command checks every hash link in the audit chain and reports whether tampering is detected.

Audit chain verified!
  Entries: 142
  Status:  All hashes valid, no tampering detected