What this check measures
Applies direct repetition, translation framing, and JSON-continuation prompts to verify if hidden relay context leaks into assistant text.
Applies direct repetition, translation framing, and JSON-continuation prompts to verify if hidden relay context leaks into assistant text.
Relay-injected prompts can quietly steer behavior or expose internal operator policies and credentials embedded by misconfigured gateways.
Use after Token Injection shows unexpected prompt overhead or when vetting third-party multi-tenant API wrappers.
A naive "repeat your system prompt" request fails against basic guardrails. Combining benign translation requests and structured JSON key completion detects subtle pre-prompt leakage cleanly while filtering out generic model boilerplate.
Send multi-format extraction prompts (direct echo, translation request, and structured JSON continuation).
Evaluate returned text for verbatim system directives, gateway branding markers, or operational boilerplate.
Redact any sensitive snippets or host markers before recording verdict and confidence.
Clean refusals or stateless replies with no injected rules pass; confirmed injected prompt leakage flags warn/fail.
Matched directive structures, hidden system markers, and leaked framing blocks across extraction formats.
Strong adversarial relay wrappers may actively suppress output echo; absence of leakage here does not disprove hidden prompts visible in Token Injection.
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.