# Probe hidden relay instructions for system prompt leak exposure

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

Check whether hidden system instructions injected by an OpenAI-compatible API relay can be extracted via verbatim, translation, and JSON-continuation probes.

Canonical URL: https://lmspeed.net/audit/prompt-extraction
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.

Run multi-angle verbatim, translation, and structural continuation extraction attempts with strict secret redaction on findings.

Prompt & Injection SecurityDefault 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 2Needs review](https://lmspeed.net/audit/N40mYlV6Wi7FIZUZ)

- [9r***.dpdns.org

osqoof/gpt-6

Audited at · Dec 2Needs review](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

Prompt extraction auditing tests whether an LLM relay has prepended confidential or unrequested system instructions that surface when probed systematically.

### What this check measures

Applies direct repetition, translation framing, and JSON-continuation prompts to verify if hidden relay context leaks into assistant text.

### Why this risk matters

Relay-injected prompts can quietly steer behavior or expose internal operator policies and credentials embedded by misconfigured gateways.

### When to run this check

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.

## Detection Methodology, Evidence & Limitations

Executes calibrated benign and multi-turn extraction patterns inside @lmspeed/audit with automated sanitization before public logging.

- **1. Probe**

Send multi-format extraction prompts (direct echo, translation request, and structured JSON continuation).

- **2. Inspect**

Evaluate returned text for verbatim system directives, gateway branding markers, or operational boilerplate.

- **3. Conclude**

Redact any sensitive snippets or host markers before recording verdict and confidence.

### How to read the verdict

Clean refusals or stateless replies with no injected rules pass; confirmed injected prompt leakage flags warn/fail.

### Evidence basis & thresholds

Matched directive structures, hidden system markers, and leaked framing blocks across extraction formats.

### Scope limits & abstention conditions

Strong adversarial relay wrappers may actively suppress output echo; absence of leakage here does not disprove hidden prompts visible in Token Injection.

### 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 makes a System Prompt Leak check warn or fail?

Returning recognizable injected relay instructions, proxy disclaimers, or operational directives not present in LMSpeed’s clean request.

### Does LMSpeed publish the full extracted prompt publicly?

No. Any secrets, URLs, or sensitive passages detected during extraction are redacted prior to public report persistence.

### Can a model leak nothing even when a hidden prompt exists?

Yes. Well-hardened system prompts may resist extraction, which is why Token Injection and Instruction Conflict complement this probe.

### Does LMSpeed’s own request send a production system prompt here?

No. Probes run in clean isolation against the endpoint’s default environment so relay-side injections stand out immediately.

## 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

- [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](https://lmspeed.net/audit/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: Probe hidden relay instructions for system prompt leak exposure — LMSpeed, https://lmspeed.net/audit/prompt-extraction (retrieved 2026-12-04)
