auditing-error-handling-and-information-exposurelisted
Install: claude install-skill UnboundCompute/security-agent-skills
# Auditing error handling and information exposure: when a failure tells the attacker how it works
Every application fails, and how it fails is a message to whoever is probing it. A stack trace names the
framework, the file layout, and the line that broke. A database error quotes the query and confirms an
injection point. A verbose not-found versus a verbose forbidden tells an attacker which accounts exist. A
debug endpoint left on in production hands over configuration and sometimes secrets. None of this is a
memory-corruption bug or an injection; it is the system narrating its internals to an unauthenticated
client, turning blind probing into informed attack. The audit is not about suppressing all errors; it is
about deciding, for the deployed configuration, whether what a real client receives on failure reveals
security-relevant structure. You find it by driving the error paths a client can reach and reading exactly
what comes back.
## When to use
- A service returns errors on malformed, unauthorized, or failing requests and you can observe the responses.
- Debug modes, verbose error pages, or diagnostic and health endpoints may be reachable in production.
- Build or deployment artifacts (source maps, version-control metadata, backups) may be served publicly.
## Scope check
Test error and diagnostic surfaces only against systems you own or are authorized to assess, using benign
malformed input rather than live exploitation to trigger failures, and treat any disclosed