audit-logging

Create immutable audit logs with append-only storage and hashing.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/hung-phan/system-skills --skill audit-logging-hung-phan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audit-logging
Source: https://github.com/hung-phan/system-skills/tree/main/skills/system-review/references/security/audit-logging
Command: npx skills add https://github.com/hung-phan/system-skills --skill audit-logging-hung-phan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures tamper-evident audit logs for security, compliance, and forensics, addressing the need for immutable trails of security-relevant events.

Core Features & Use Cases

  • Tamper-Evident Logs: Ensures logs cannot be altered or deleted after creation.
  • Compliance: Meets requirements for SOC 2 CC7.2, HIPAA §164.312(b), PCI-DSS Req 10, GDPR Art. 30, SOX §404.
  • Use Case: Ideal for systems handling auth, money, health data, or PII to document every action and access attempt.

Quick Start

To create an audit log, use the command: /system-review create-audit-log <resource_type> <resource_id>

Frequently Asked Questions about audit-logging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create tamper-evident audit logs for compliance and forensics?

To create tamper-evident audit logs, you need a framework that implements append-only storage, hashing, and retention policies. This ensures logs cannot be altered or deleted after creation, providing immutable trails of security-relevant events for forensic analysis and compliance.

What security regulations require immutable audit logging?

Immutable audit logging is required for compliance with SOC 2 CC7.2, HIPAA §164.312(b), PCI-DSS Req 10, GDPR Art. 30, and SOX §404. These regulations mandate tamper-evident records of system access and actions when handling sensitive data like health information or PII.

How do I implement append-only storage and hashing for security audit logs?

Implementing append-only storage and hashing requires a framework that prevents alteration or deletion of log entries after creation. This Skill provides the structural design and scripts needed to enforce data integrity and capture security-relevant events systematically.

Does this audit logging framework work for systems handling PII and financial data?

Yes, this audit logging framework is ideal for systems handling authentication, financial transactions, health data, or PII. It documents every action and access attempt to meet stringent security and privacy regulations across various sensitive data contexts.

When do I need an immutable audit trail for my application?

You need an immutable audit trail when your application processes sensitive data subject to compliance regulations like GDPR or HIPAA. It is essential for documenting security-relevant events, ensuring data integrity, and enabling reliable forensics during incident response.

Can I use audit-logging to document access attempts for HIPAA compliance?

Yes, audit-logging provides a framework to document every action and access attempt. It specifically addresses HIPAA §164.312(b) requirements by ensuring audit logs are tamper-evident and securely retained for systems handling sensitive health data.