logging-security
仓库创建 2026年7月1日最近提交 21 天前SkillHot 收录 21 天前
▸ 精选理由
为研发与运维提供可执行的日志脱敏与审计规范,易于落地。
这个 Skill 做什么
规范日志格式、脱敏与审计以防止机密与个人信息泄露。
把日志做成可结构化、可审计且不会泄密的产物:用 JSON 或 logfmt、统一字段(如 trace_id、span_id)、先脱敏再落盘,防止 log-injection 和丢失审计链。在设计或审查日志方案时用,既要能排查问题又不能泄露密码、token 或 PII。重点是规范字段、统一脱敏与保留合规的留存策略。
▸ 展开 SKILL.md 英文原文
Prevent secret/PII leaks in logs, log-injection attacks, missing audit trails, weak retention
2
Stars
0
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ShieldNet-360/secure-vibe/main/skills/logging-security/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ShieldNet-360/secure-vibe/main/skills/logging-security/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Logging Security ## Rules (for AI agents) ### ALWAYS - Log in a **structured format** (JSON or logfmt) with stable field names. Include `timestamp`, `service`, `version`, `level`, `trace_id`, `span_id`, `user_id` (when authenticated), `request_id`, `event`. - Run every log message through a **redactor** before it reaches the log sink: passwords, tokens, API keys, cookies, full URLs containing `?token=`, common PII patterns (SSN-like, credit-card-like, email optionally). - Sanitize newlines / control characters from any user-controlled string before logging it (CWE-117): replace `\n`, `\r`, `\t` so an attacker can't inject fake log lines. - Log security-relevant events as **
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有