返回 Skill 列表
extension
分类: 开发与工程无需 API Key

detecting-information-disclosure

检测信息泄露漏洞,包括日志中的敏感数据、错误消息暴露和内存泄漏。在分析日志记录实践、错误处理或调查数据泄露问题时使用。

person作者: jakexiaohubgithub

Information Disclosure Detection

Detection Workflow

  1. Identify sensitive data flows: Find where sensitive data is handled, trace data through application, identify all output points
  2. Check logging practices: Analyze log statements, check error messages, review debug output
  3. Assess exposure points: Identify all user-facing output, check external API responses, review file system artifacts
  4. Evaluate impact: What information is disclosed? How sensitive is it? Who can access it?

Key Patterns

  • Sensitive data in logs: passwords, keys, stack traces in production logs
  • Error message disclosure: detailed errors revealing system info, paths, database queries
  • Memory disclosure: uninitialized memory reads, out-of-bounds reads, format string leaks
  • Storage disclosure: plaintext storage, weak encryption, insecure file permissions

Output Format

Report with: id, type, subtype, severity, confidence, location, sensitive data type, disclosure point, vulnerability description, exposure scope, risk, mitigation.

Severity Guidelines

  • CRITICAL: Disclosure of cryptographic keys or passwords
  • HIGH: Disclosure of sensitive user data
  • MEDIUM: Disclosure of system information
  • LOW: Disclosure of minor debug information

See Also

  • patterns.md - Detailed detection patterns and exploitation scenarios
  • examples.md - Example analysis cases and code samples
  • references.md - CWE references and mitigation strategies