# Check API error responses for information disclosure and secret leaks

> Source: LMSpeed (https://lmspeed.net) — https://lmspeed.net/audit/error-leakage. When citing or reusing this content, credit "LMSpeed" and link to https://lmspeed.net/audit/error-leakage.

Audit error responses from OpenAI-compatible relays for AC-2 information disclosure, including leaked upstream URLs, credentials, headers, and stack paths.

Canonical URL: https://lmspeed.net/audit/error-leakage
Last updated: 2026-12-03T18:58:42.592Z (site data revision; page date not supplied)

Reproduction and quotation must name LMSpeed, link to the canonical HTML URL, and retain individual source citations.

Trigger controlled client-side error states safely and inspect raw payloads for leaked upstream hosts, API keys, or filesystem traces.

Response & Stream IntegrityDefault suite@lmspeed/audit v0.3.3 · independent-2026-11-24.1

[Run the All-in-One audit](https://lmspeed.net/audit)[Fingerprint Detection](https://lmspeed.net/audit/model-fingerprint)

## Recent public reports

Redacted audit reports that included this probe.

- [9r***.dpdns.org

osqoof/gpt-6

Audited at · Dec 2Passed](https://lmspeed.net/audit/N40mYlV6Wi7FIZUZ)

- [9r***.dpdns.org

osqoof/gpt-6

Audited at · Dec 2Passed](https://lmspeed.net/audit/ioQ8Fhj5sRl6FSnv)

- [ap***.ai

claude-opus-5-5

Audited at · Dec 2Passed](https://lmspeed.net/audit/UE6_9YowLYxNwcPG)

- [ap***.cc

standard/claude-opus-5.5

Audited at · Dec 2Passed](https://lmspeed.net/audit/tGHasfcva0AHdZFy)

- [fr***.in

deepseek-v4.1-flash-1017

Audited at · Dec 2Passed](https://lmspeed.net/audit/hiSam9nJebv3-v3K)

- [ap***.vip

Claude Opus 5.5

Audited at · Dec 1Passed](https://lmspeed.net/audit/2JpeaBJGrkHe0Mvz)

## Overview & Risk Context

Error leakage auditing induces safe, deterministic invalid requests to uncover AC-2 information disclosure inside raw relay error messages.

### What this check measures

Examines returned HTTP error bodies and headers for upstream domain URLs, bearer tokens, internal filesystem paths, stack traces, and proxy config metadata.

### Why this risk matters

Following AC-2 in arXiv:2604.08407, verbose proxy errors leak real upstream provider keys, internal VPC addresses, and framework versions useful to attackers.

### When to run this check

Run on self-hosted or commercial relays before opening public client access, shared keys, or error telemetry.

Relays often log raw exception objects or serialize full upstream HTTP failures directly back to the caller when an unknown model ID or invalid parameter arrives.

## Detection Methodology, Evidence & Limitations

Triggers non-destructive validation errors via @lmspeed/audit, scanning payloads before sanitizing leaked secrets.

- **1. Probe**

Submit benign malformed or non-existent parameter variants to elicit standard HTTP 4xx error payloads.

- **2. Inspect**

Scan error text and headers with AC-2 leak patterns (URLs, paths, API keys, tracebacks, headers).

- **3. Conclude**

Redact discovered secrets strictly before storing redacted evidence indicators in the audit report.

### How to read the verdict

Clean normalized JSON error envelopes pass; exposed upstream hosts, credentials, or internal stack paths fail immediately.

### Evidence basis & thresholds

Pattern matches on controlled error bodies against AC-2 leakage rules (arXiv:2604.08407), stored exclusively in redacted form.

### Scope limits & abstention conditions

Covers deterministic request-level validation errors only; transient 502/504 upstream crashes under production load may leak additional diagnostics.

### Verification Sources & Baselines

Implemented in @lmspeed/audit v0.3.3 (ruleset independent-2026-11-22.2); supplementary capability/injection design cross-checked against Veridrop, LLMprobe-engine, and meow-llm-detector specs.

- [lmspeed/audit (v0.3.3)](https://github.com/nexmoe/lmspeed-audit)Open-source LMSpeed probe engine, catalog registry, and calibrated fingerprint protocols.

- [Liu et al., "Your Agent Is Mine" (arXiv:2604.08407)](https://arxiv.org/abs/2604.08407)Research basis for AC-1 tool-call hijacking, AC-2 error leakage, and Web3 injection threats.

## Frequently Asked Questions

### What leaks qualify as AC-2 error information disclosure?

Raw upstream base URLs, leaked API keys or auth headers, internal filesystem paths, SQL/code tracebacks, and private network hostnames.

### Will LMSpeed display my leaked upstream API key in public reports?

Never. Secret redaction strips credentials and internal hosts before any public report leaves the engine.

### Does triggering errors harm the relay server?

No. Only standard lightweight invalid-model or malformed-parameter client requests (HTTP 4xx) are used.

### Why check error payloads alongside Infrastructure Fingerprint?

Many gateways (such as NewAPI/OneAPI variants) serialize diagnostic fields in 4xx errors that both reveal stack signatures and expose upstream routes.

## All audit checks by category

Explore every single-check audit tool grouped by risk domain, with Fingerprint Detection pinned first for model-authenticity verification.

### Fingerprint Detection

Pinned · Priority Group3

- [Model distribution fingerprint](https://lmspeed.net/audit/model-fingerprint)

- [Numeric fingerprint screening](https://lmspeed.net/audit/numeric-fingerprint)

- [Tokenizer fingerprint](https://lmspeed.net/audit/tokenizer-fingerprint)

### Prompt & Injection Security

6

- [Token injection](https://lmspeed.net/audit/token-injection)

- [Prompt extraction](https://lmspeed.net/audit/prompt-extraction)

- [Instruction conflict](https://lmspeed.net/audit/instruction-conflict)

- [Jailbreak identity](https://lmspeed.net/audit/jailbreak-identity)

- [Conditional injection](https://lmspeed.net/audit/conditional-injection)

- [Web3 injection](https://lmspeed.net/audit/web3-prompt-injection)

### Response & Stream Integrity

5

- [Stream integrity](https://lmspeed.net/audit/stream-integrity)

- [Stream consistency](https://lmspeed.net/audit/stream-consistency)

- [Tool substitution](https://lmspeed.net/audit/tool-substitution)

- Error leakage

- [Latency variance](https://lmspeed.net/audit/latency-variance)

### Capabilities & Context Limits

7

- [Context window and recall](https://lmspeed.net/audit/context-window)

- [Tool permissions](https://lmspeed.net/audit/tool-calling)

- [Structured JSON output](https://lmspeed.net/audit/structured-output)

- [Image understanding](https://lmspeed.net/audit/image-understanding)

- [PDF understanding](https://lmspeed.net/audit/pdf-understanding)

- [Quality canary](https://lmspeed.net/audit/quality-canary)

- [Quality comparison](https://lmspeed.net/audit/quality-comparison)

### Related LMSpeed benchmarks & methodology

- [Full 25-Check Provider Audit](https://lmspeed.net/audit)

- [3-Stage Fingerprint Pipeline](https://lmspeed.net/audit#fingerprint-detection)

- [LLM API Speed Test](https://lmspeed.net/speed)

- [Provider Directory](https://lmspeed.net/provider)

- [Model Directory & Pricing](https://lmspeed.net/model)

- [Benchmark Methodology](https://lmspeed.net/methodology)

---
Cite as: Check API error responses for information disclosure and secret leaks — LMSpeed, https://lmspeed.net/audit/error-leakage (retrieved 2026-12-04)
