Skip to main content

implement-audit-logging

Implement trustworthy audit logging for consequential actions, security decisions, and administrative changes. Use when an organization must reconstruct who did what, where, when, and with what result.

来源信息

仓库
protosphinx/sphinxstack
最近来源活动
2026年7月29日 13:55
检测到的 SKILL.md 语言
英语
星标
3
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
implement-audit-logging
category
code
description
Implement trustworthy audit logging for consequential actions, security decisions, and administrative changes. Use when an organization must reconstruct who did what, where, when, and with what result.
# implement-audit-logging Capture decision evidence that is complete enough to investigate while remaining safe enough to retain. ## Procedure 1. Inventory consequential user, administrator, system, data, permission, authentication, and configuration events. 2. Define an event schema with event ID, time, actor, subject, action, target, source, result, reason, and correlation. 3. Record bounded before-and-after fields or change references without copying whole sensitive records. 4. Emit from the authoritative server-side decision or transaction boundary. 5. Protect append, transport, storage, time, access, retention, and deletion against unauthorized alteration. 6. Define behavior when the audit sink is slow or unavailable according to event criticality. 7. Provide indexed queries and an export path for approved investigators. 8. Alert on missing streams, schema failures, sequence gaps, and high-risk event patterns. 9. Test impersonation, bulk actions, failures, retries, time skew, redaction, and sink outage. 10. Reconcile audit events with source transactions and access reviews on a schedule. ## Guardrails - Never record passwords, session secrets, access tokens, recovery codes, or full sensitive payloads. - Application debug logs are not automatically an audit trail. - Restrict audit readers because metadata can itself reveal sensitive behavior. ## Done - A versioned event catalog, schema, retention plan, and access policy are approved - Critical actions and sink-failure behavior are tested - Audit events reconcile with sampled source transactions and alerts
在 GitHub 查看