audit-logging
/audit-logging
Record security-relevant events in a tamper-evident, append-only log that answers who did what and when. Use when building or reviewing logging for authentication, authorization, privilege changes, or access to sensitive data.
- Author
- Amey-Thakur ↗
- Repository
- AI-SKILLS ↗
- Licence
- MIT
- Last repository change
- 05.09.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 05.09.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Record security-relevant events in a tamper-evident, append-only log that answers who did what and when. Use when building or reviewing logging for authentication, authorization, privilege changes, or access to sensitive data.
Original author description
Record security-relevant events in a tamper-evident, append-only log that answers who did what and when. Use when building or reviewing logging for authentication, authorization, privilege changes, or access to sensitive data.
How it works
- Method
- Checks
- Boundaries
SKILL.md preview
--- name: audit-logging description: Record security-relevant events in a tamper-evident, append-only log that answers who did what and when. Use when building or reviewing logging for authentication, authorization, privilege changes, or access to sensitive data. --- # Audit logging An audit log is the record you reach for after the fact: a breach, a dispute, an auditor asking who touched an account. It fails two ways, by never capturing the event or by letting the attacker edit it on the way out. A method has to close both, so the log is complete and any change to it announces itself. ## Method 1. **Capture the full sentence per event:** actor (user id plus how they authenticated), action, target resource, timestamp in UTC ISO 8601, source (IP and request id), and outcome. On a denial, add the reason. A record missing the actor or the outcome cannot answer the question you will ask. 2. **Split the audit stream from application logs.** Send it to a dedicated append-only sink: an S3 bucket with Object Lock (WORM), AWS CloudTrail, or a write-only topic. Operational logs rotate and get pruned for cost, and audit records must never share that fate. 3. **Chain entries by hash so edits show.** Each record stores the SHA-256 of the previous record concatenated with its own payload, so deleting or altering one entry breaks every link after it. Re-verify the chain on a schedule and alert the instant a link fails to match. 4. **Give the writer INSERT and nothing else.** The account that appends audit rows holds no UPDATE or DELETE grant. Retention and expiry run as a separate job under separate credentials, so the path that writes cannot also rewrite. 5. **Log the events that carry weight:** authentication success and failure, authorization denials, role and privilege changes, secret access, configuration changes, and data export. Leave out high-volume routine reads unless the resource read is itself sensitive. 6. **Keep the secret out of the record.** Log that a password changed, not the new password; that a token was read, not its bytes. Mask personal data down to what an investigator genuinely needs to see. 7. **Make timestamps trustworthy.** Run NTP on every host, store UTC, and record both event time and ingest time so a backdated or delayed entry stands apart instead of blending in. ## Checks - Can you answer "who deleted this record, and when" from the audit log alone, with no help from the application database? - Does altering a single past entry get caught within one verification cycle? - Is the sink genuinely append-only, writable but not deletable by the runtime role the application actually uses? ## Boundaries Audit logging proves what happened; it neither prevents the action nor serves as your general operational log, which structured-logging covers. Retention periods and mandated formats (SOX, HIPAA, PCI DSS) come from compliance and legal, not from this skill.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · Amey-Thakur/AI-SKILLS | 90 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| FrancoStino/opencode-skills-collection | 100 | MIT |
| claude-dev-suite/claude-dev-suite | 100 | MIT |
| eyesecurity/skills | 100 | GPL-3.0 |
| BagelHole/DevOps-Security-Agent-Skills | 100 | MIT |
Database snapshot: 13.11.2026 · package version 8884fd0a8fc6 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100auditing-security-logging-completeness
Audit whether an application actually records the security events an investigation would need, and whether the logs themselves leak or lie: a security decision (authentication, an authorization denial or sensitive grant, a credential or privilege change, access to sensitive… - 100security-sensitive-path-instrumenter
Instruments authentication, authorization, and input-handling code paths to monitor security-relevant events and states at runtime. Use this skill when developers need to add security monitoring and logging to their code, including tracking authentication attempts… - 90logging-failures
Detects missing security event logs, logged secrets, and log injection through user input. Use when writing logging code, audit trails, error handlers that log, authentication event recording, or any code that writes security- relevant events. Also invoke when logging user… - 100configuring-audit-logging
Configures SQL audit logging on CockroachDB clusters to capture security-relevant events including authentication, privilege changes, and sensitive data access. Use when enabling audit logging for compliance, setting up role-based audit policies, or verifying audit configuration. - 100logging
Review whether security-relevant logging is enabled, complete, shipped off-host, and tamper-resistant across Kubernetes and the cloud control plane. Use when user says 'review my audit logging', 'is audit logging on', 'check my k8s audit policy', 'are we logging API-server… - 90logging-monitoring
Reviews logging and monitoring for security visibility, sensitive-data leakage, and audit coverage. Use when auditing observability and security logging.