Logo: Auditing Error Handling And Information Exposure

Auditing Error Handling And Information Exposure

Organisatioun
UnboundCompute
auditing-error-handling-and-information-exposure

Iwwerpréift Feelerbehandlung an Diagnoseberäicher op sensibel Informatioun, déi e reelle Client kritt, wann e Feelerwee, eng Debug-Funktioun oder en Diagnoseendpunkt Stacktraces, Datebankfeeler, intern Weeër, Framework- oder Versiounsangaben, Konfiguratioun, Geheimnisser oder Messagen zeréckgëtt, déi sech genuch ënnerscheede fir Benotzerkonten ze ermëttelen. Benotzt dëst bei der Iwwerpréiwung, wéi e Service an der Produktiounskonfiguratioun op falsch formatéiert, net autoriséiert oder feelgeschloen Ufroe reagéiert, a fir ze kontrolléieren, ob Debug-Modi, Source Maps oder Versiounskontroll-Metadaten exponéiert sinn. Gëllt nëmme fir dat, wat d’Produktioun tatsächlech zeréckgëtt, net fir zousätzlech Detailer, déi nëmmen Entwéckler gesinn. De Feeler- oder Diagnosewee ass d’Quell, d’Äntwert, den Header oder en dem Benotzer sichtbare Log ass d’Zil, an Detailer, déi en zousätzlechen Ugrëff erliichteren, sinn de Feeler.

Iwwersiicht

EditeurUnboundCompute
Repositorysecurity-agent-skills
Skill-Nummauditing-error-handling-and-information-exposure
Stären
27
Forks
8
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    UnboundCompute huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Auditing Error Handling And Information Exposure an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-error-handling-and-information-exposure
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-error-handling-and-information-exposure .claude/skills/auditing-error-handling-and-information-exposure
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Auditing Error Handling And Information Exposure an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Auditing Error Handling And Information Exposure automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Auditing Error Handling And Information Exposure net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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 secret as a real credential to be reported and rotated, not reused. Stay within the authorized scope. If you can't name the authorization, stop.

The loop

  1. Establish what a real client receives in the deployed configuration first. Determine whether the production error handler is active and debug mode is off, so the verbose page you see locally is not what a client actually gets. This is the false-positive killer: a detailed trace visible only under a developer flag that is disabled in production is not a finding, while the generic page that production returns is the real evidence. Confirm the deployed behavior before judging the detail.

  2. Enumerate the reachable failure paths. Drive the errors a client can cause: malformed bodies, wrong types, oversized input, unauthorized and forbidden access, missing resources, and backend failures. Include diagnostic and health endpoints, and default framework error routes. Each response and its headers are a candidate sink.

  3. Read what the response discloses. For each failure, judge whether the body, status, or headers reveal security-relevant detail: a stack trace, a database or template error, an internal file path or hostname, a framework and version banner, configuration values, or a secret. Cosmetic verbosity that names nothing useful is not the finding; structure an attacker can act on is.

  4. Check for enumeration through differentials. Compare responses for existing versus non-existing accounts, valid versus invalid credentials, and authorized versus unauthorized resources, in wording, status, and timing. A difference that reliably distinguishes the two enumerates users or resources even when no single response looks verbose.

  5. Check for exposed artifacts and debug surfaces. Look for served source maps, version-control directories, backup and configuration files, verbose health or debug endpoints, and default sample pages, which disclose source, structure, or secrets independent of any exception path.

  6. Confirm and record. Confirm by triggering the failure as an unauthenticated or ordinary client in the deployed configuration and capturing the disclosed detail, or by demonstrating the reliable differential. Kill the lead if production returns a generic handler, if the verbose output is gated behind a disabled developer flag, if the disclosed detail names nothing an attacker can use, or if responses and timing do not distinguish existence. Record the failure path, the sink, the disclosed detail, and its use to an attacker, or set a kill_reason.

Where information exposure leaks

  • The gap is local versus production. Verbose errors in development are expected; the finding is whether the same verbosity survives into the deployed configuration a client can reach.
  • Errors confirm other bugs. A quoted database or template error turns a blind injection probe into a confirmed one, so verbose backend errors are force multipliers, not just leaks.
  • Differentials enumerate quietly. Existence disclosure rarely looks like an error; it hides in a wording, status, or timing difference between the present and absent case.
  • Artifacts leak without an exception. Served source maps, version-control metadata, and backups disclose source and structure through ordinary requests, no failure required.
  • Headers talk too. Framework and version banners and debug headers name the stack and its version, narrowing which known weaknesses an attacker tries.

Worked example (a confirm and a kill)

Confirm. A malformed request to an ordinary endpoint returns the framework's default error page with a full stack trace, the source file paths, and the database query that failed, to an unauthenticated client in production. Confirmed sensitive information disclosure through verbose errors, medium, remediation = enable the production error handler with generic client-facing messages, disable debug mode in the deployed configuration, log detail server-side only, and remove framework and version banners from responses.

Kill. The same request returns a generic error with a correlation identifier and no internal detail, debug mode is off in the deployed configuration, the login and lookup responses are identical for present and absent accounts in wording, status, and timing, and no source maps or version-control metadata are served. Nothing in the failure names the stack, the query, or an account's existence. Killed, kill_reason = "production returns generic errors with detail only in server-side logs, no debug or banner disclosure, and existence differentials are absent; failures reveal nothing an attacker can act on."

Rationalizations to reject

  • "That trace only shows in development." -> Then confirm it is disabled in the deployed configuration; the finding is what a real client receives in production, which is where you must check.
  • "It is just an error message." -> A quoted query or a named internal path confirms an injection point or maps the system; the message is intelligence, not noise.
  • "Different messages are more helpful to users." -> A login that distinguishes unknown user from wrong password enumerates accounts; be equally uninformative for both cases.
  • "Source maps help us debug production." -> Served publicly they hand your source to anyone; restrict them or strip them from the public build.
  • "The health endpoint is internal." -> If it is reachable without authentication it is a client surface; confirm the access control, not the intent.

Executing this in practice

You need the deployed error-handling configuration, the responses and headers for the full set of reachable failure paths, the present-versus-absent differentials on authentication and lookup surfaces, and whether any build or version-control artifacts are served. For each, decide whether the detail is security-relevant and whether it reaches an unauthorized client in production. Driving the failures as an ordinary client and reading the exact responses settles most leads; comparing wording, status, and timing settles the enumeration ones.

Related

  • auditing-security-logging-completeness - the complement, where detail belongs in server-side logs rather than in client responses; the two together place each piece of information where it should be.
  • hunting-blind-and-second-order-sql-injection - verbose database errors turn that skill's blind probes into confirmed ones, so error disclosure directly aids it.
  • auditing-session-lifecycle-and-fixation - authentication response differentials that enumerate accounts are adjacent to the session and login concerns audited there.
  • reviewing-rate-limiting-and-abuse-controls - enumeration through differentials is amplified without rate limits, so the two controls are assessed together on login and lookup surfaces.
  • FINDING-SCHEMA.md - source = the error or diagnostic path, sink = the response, header, or user-visible log, evidence = the disclosed detail or the reliable differential captured as an unauthorized client in the deployed configuration.

Heefeg gestallte Froen

Wat mécht de KI-Skill Auditing Error Handling And Information Exposure?

Iwwerpréift Feelerbehandlung an Diagnoseberäicher op sensibel Informatioun, déi e reelle Client kritt, wann e Feelerwee, eng Debug-Funktioun oder en Diagnoseendpunkt Stacktraces, Datebankfeeler, intern Weeër, Framework- oder Versiounsangaben, Konfiguratioun, Geheimnisser oder Messagen zeréckgëtt, déi sech genuch ënnerscheede fir Benotzerkonten ze ermëttelen. Benotzt dëst bei der Iwwerpréiwung, wéi e Service an der Produktiounskonfiguratioun op falsch formatéiert, net autoriséiert oder feelgeschloen Ufroe reagéiert, a fir ze kontrolléieren, ob Debug-Modi, Source Maps oder Versiounskontroll-M...

Firwat Auditing Error Handling And Information Exposure op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Auditing Error Handling And Information Exposure besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Auditing Error Handling And Information Exposure an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-error-handling-and-information-exposure an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Auditing Error Handling And Information Exposure benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Auditing Error Handling And Information Exposure benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Auditing Error Handling And Information Exposure domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Auditing Error Handling And Information Exposure gratis?

Jo. UnboundCompute huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇