audit-logging-integrity

audit-logging-integrity is a skill for Claude Code, Codex from vaquarkhan/compliance-agent-skills. It costs 104 tokens per session (1,691 once invoked), scanned A, original, MIT.

A guide for designing and checking audit logs that show what agents, MCP servers, and users did. It covers tamper-evident records, central security monitoring, and retention for HIPAA, SOC 2, and PCI requirements.

In plain words
What is it for?
It helps assess agent and tool-call audit trails, connect logs to security monitoring systems, test append-only or hash-chained records, and prepare compliance evidence.
Why use it?
It helps reveal missing or alterable activity records and supports investigations and compliance reviews. It also addresses keeping sensitive health or payment data out of plain-text logs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps assess agent and tool-call audit trails, connect logs to security monitoring systems, test append-only or hash-chained records, and prepare compliance evidence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vaquarkhan/compliance-agent-skills/audit-logging-integrity
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vaquarkhan/compliance-agent-skills --skill audit-logging-integrity
Clone the repo
git clone --depth 1 https://github.com/vaquarkhan/compliance-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for audit-logging-integrity

README.md
[![agentmods](https://agentmods.dev/badge/skills/vaquarkhan/compliance-agent-skills/audit-logging-integrity/github.svg)](https://agentmods.dev/skills/vaquarkhan/compliance-agent-skills/audit-logging-integrity)
Your own site
<a href="https://agentmods.dev/skills/vaquarkhan/compliance-agent-skills/audit-logging-integrity"><img src="https://agentmods.dev/badge/skills/vaquarkhan/compliance-agent-skills/audit-logging-integrity/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for audit-logging-integrity

Your own site · 80×15
<a href="https://agentmods.dev/skills/vaquarkhan/compliance-agent-skills/audit-logging-integrity"><img src="https://agentmods.dev/badge/skills/vaquarkhan/compliance-agent-skills/audit-logging-integrity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,691 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00104 $0.01691
Opus 5 $0.00052 $0.00846
Sonnet 5 $0.00021 $0.00338
Haiku 4.5 $0.00010 $0.00169

Measured 11d ago against content hash 5fadf7fa60a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

audit-logging-integrity scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/audit-logging-integrity/SKILL.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Audit Logging Integrity

Overview

This skill ensures audit logs are generated, protected, retained, and reviewable per:

  • HIPAA §164.312(b): Audit controls—hardware, software, procedural mechanisms to record and examine activity in systems containing ePHI
  • SOC 2 CC7.2/CC7.3: System monitoring, anomaly detection, security event analysis
  • PCI-DSS Req 10: Log and monitor all access to network resources and cardholder data

AI agents and MCP servers must emit structured, tamper-evident audit events without logging raw ePHI/CHD in cleartext.

When to Use

Use this skill when:

  • Designing agent session audit trails (prompt metadata, tool calls, redaction counts)
  • Validating MCP server logging (tool invocations, auth events)
  • Integrating logs with SIEM (Splunk, Elastic, Datadog, Sentinel)
  • Testing log integrity (append-only, WORM, hash chains)
  • Preparing PCI Req 10 or HIPAA audit control evidence
  • Investigating gaps in security event review (daily log review, alerting)

Do not use this skill when:

  • Identity access certification (use access-control-identity-audit)
  • Breach customer notification letters (use breach-incident-response)
  • Initial SOC 2 TSC mapping (use soc2-trust-services-criteria)

Core Process

Execute steps in order.

Step 1: Audit event inventory

  1. List all systems requiring audit logs:
    • Agent runtime, MCP servers, IdP, cloud control plane, CDE/ePHI databases
    • Evidence store, deanonymization tool invocations
  2. Define required events per system:
System Required events
Agent session_start, session_end, skill_loaded, tool_called, redaction_count
MCP oauth_token_issued, tool_invoke, auth_failure, config_change
IdP login_success, login_failure, mfa_challenge, account_lockout
DB query (metadata only), connection, privilege_change
  1. Artifact: audit-event-catalog-{id}.json.

Step 2: Log content standards

  1. Each event must include minimum fields:
    • timestamp_utc, event_id, actor_id, action, resource, result, source_ip, correlation_id
  2. Prohibited in logs (or require field-level encryption):
    • Raw ePHI, PAN, CVV, secrets, full prompts with PHI
  3. Acceptable alternatives:
    • Redacted prompt hash, token counts, resource IDs without patient identifiers
  4. Verify agent logs entity_count from redaction, not original values.

Read the full file on GitHub · 142 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 142 lines · 104 tokens per session scan A 5fadf7fa60a9

Subscribe to this mod's changes

audit-logging-integrity is a skill published in the GitHub repository vaquarkhan/compliance-agent-skills (2 stars, last pushed 17d ago), licensed MIT. It adds 104 tokens to every session and 1,691 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

cmmc-assessment-objectives

Verbatim reference for all 320 NIST 800-171A Rev 2 assessment objectives, plus the Rev 2 → Rev 3 control crosswalk. Use for AO-level lookups (e.g., 3.1.1[c]), evidence planning, and forward-mapping to Rev 3. Pairs with cmmc-expert.

GRCEngClub/claude-grc-engineering · 80 tokens

dora-expert

DORA expert for EU financial entities. Deep knowledge of Digital Operational Resilience Act including 5 pillars, ICT risk management, incident reporting, resilience testing, third-party oversight, and information sharing for financial sector digital resilience.

GRCEngClub/claude-grc-engineering · 49 tokens

cmmc-expert

CMMC v2.0 expert for DoD contractors. Covers NIST 800-171 Rev 2 (14 families, 110 controls), SPRS scoring, POA&M rules, 32 CFR Part 170, DFARS clauses, scoping, ESP/CSP, C3PAO assessment lifecycle, and Rev 2 → Rev 3 transition.

GRCEngClub/claude-grc-engineering · 80 tokens

eu-nis2-expert

EU NIS2 Directive (Directive (EU) 2022/2555) expert. Reference-depth knowledge of essential vs important entity classification, Article 20 governance, the Article 21 ten cybersecurity risk-management measures, the Article 23 24h/72h/1mo incident-reporting timeline, and supervision/enforcement under Articles 32-34.…

GRCEngClub/claude-grc-engineering · 90 tokens

gdpr-expert

GDPR expert for EU privacy compliance. Deep knowledge of General Data Protection Regulation including 99 articles, 7 principles, 6 lawful bases, data subject rights, DPO requirements, DPIA, breach notification, cross-border transfers, and enforcement.

GRCEngClub/claude-grc-engineering · 55 tokens

glba-expert

GLBA expert for financial institutions. Deep knowledge of Gramm-Leach-Bliley Act including Safeguards Rule (16 CFR Part 314), Privacy Rule (16 CFR Part 313), FTC enforcement, information security program requirements, vendor management, and consumer privacy notices.

GRCEngClub/claude-grc-engineering · 58 tokens