logging
This skill should be used when the user asks to "check for logging issues", "analyze security logging", "find missing audit logs", "check for log injection"…
от florianbuetow★ 22 звезды на GitHub
Установить logging в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Security Logging and Monitoring Failures (A09:2021)
Analyze source code for security logging and monitoring failures including missing audit logging for security events, sensitive data in logs, log injection, absence of alerting on failures, logs only stored locally, and missing tamper protection.
This is the most architectural OWASP category. Scanners provide minimal coverage for logging failures, so Claude's analysis of code patterns, logging configuration, and event coverage is the primary value of this skill.
Supported Flags
Read ../../shared/schemas/flags.md for the full flag specification. This skill
supports all cross-cutting flags. Key flags for this skill:
--scopedetermines which files to analyze (default:changed)--depth standardreads code and checks logging around security-critical operations--depth deeptraces security event flows to verify each produces an audit log entry--severityfilters output (logging gaps are oftenmedium, sensitive data in logs ishigh)
Framework Context
Read ../../shared/frameworks/owasp-top10-2021.md, section A09:2021 - Security
Logging and Monitoring Failures, for the full category description, common
vulnerabilities, and prevention guidance.
Key CWEs in scope:
- CWE-117: Improper Output Neutralization for Logs (log injection)
- CWE-223: Omission of Security-Relevant Information
- CWE-532: Insertion of Sensitive Information into Log File
- CWE-778: Insufficient Logging
- CWE-779: Logging of Excessive Data
Detection Patterns
Read references/detection-patterns.md for the full catalog of code patterns,
search heuristics, language-specific examples, and false positive guidance.
Workflow
1. Determine Scope
Parse flags and resolve the file list per ../../shared/schemas/flags.md.
Filter to files likely to contain logging logic or security-critical operations:
- Authentication modules (
**/auth/**,**/login/**,**/session/**) - Access control and authorization (
**/middleware/**,**/guards/**,**/policies/**) - Logging configuration (
**/logging/**,**/logger/**,**/*log*config*) - Error handlers (
**/errors/**,**/exceptions/**,**/handlers/**) - Route/controller definitions (
**/routes/**,**/controllers/**,**/api/**) - Configuration files (
**/config/**,*.yaml,*.toml,*.ini,*.env*)
2. Check for Available Scanners
Detect scanners per ../../shared/schemas/scanners.md:
semgrep-- can detect some log injection and sensitive data in logsbandit-- Python-specific logging issues (e.g., sensitive data in debug logs)
Record which scanners are available and which are missing. Note: scanner coverage for logging failures is limited. Claude analysis is the primary detection mechanism for this category.
3. Run Scanners (If Available)
If semgrep is available, run with rules targeting logging patterns:
semgrep scan --config auto --json --quiet <target>
Filter results to rules matching log injection, sensitive data exposure in logs, and logging configuration issues. Normalize output to the findings schema.
4. Claude Code Analysis
This is the primary analysis step for logging failures. Perform manual code analysis:
- Authentication event logging: Find login, logout, failed login, password reset, and MFA flows. Verify each produces an audit log entry with user identity, timestamp, IP address, and outcome (success/failure).
- Access control failure logging: Find authorization checks and verify that denied access attempts are logged with sufficient detail for investigation.
- Sensitive data in logs: Grep for log statements and check that passwords, tokens, API keys, credit card numbers, SSNs, and other PII are not logged.
- Log injection: Find log statements that include user-controlled input and verify the input is sanitized or the logging framework handles neutralization.
- Error handling: Find catch/except blocks and verify they log the error rather than swallowing it silently.
- Logging configuration: Check for centralized logging setup, structured log format, log level configuration, and whether logs are sent to a remote destination.
- Tamper protection: For high-value audit trails, check for integrity controls (append-only storage, checksums, write-once destinations).
When --depth deep, additionally trace:
- Complete authentication flow from entry to audit log
- Exception propagation chains to verify no errors are silently dropped
- Logging pipeline from application code to destination (local file, remote service, SIEM)
5. Report Findings
Format output per ../../shared/schemas/findings.md using the LOG prefix
(e.g., LOG-001, LOG-002).
Include for each finding:
- Severity and confidence
- Exact file location with code snippet
- Impact description specific to the logging failure
- Concrete fix with diff when possible
- CWE and OWASP references
What to Look For
T
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/detection-patterns.md
FAQ
Что делает скилл logging?
This skill should be used when the user asks to "check for logging issues", "analyze security logging", "find missing audit logs", "check for log injection", "audit monitoring configuration", or mentions "logging", "audit trail", "log injection", "monitoring", or "alerting" in a security context. Maps to OWASP Top 10 2021 A09: Security Logging and Monitoring Failures.
Как установить скилл logging?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл logging запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…