LLMLeak: Covert Data Exfiltration via LLM Legitimate Web ScrapingThe Innocent Courier: Covert Exfiltration Through Legitimate LLM Web Fetching
The authors use LLMLeak to exfiltrate data through legitimate web fetching; the average Sconf across 11 open-parameter models in the instruction-style setting is 79.70%.
The attacker's local malware can already read secrets but is restricted by network controls or monitoring and cannot exfiltrate them directly; the attacker can construct output that users give to the chatbot and control external servers, but cannot control the chatbot or its infrastructure, nor access the conversation.
- Local malware, even if it cannot access the network, may exfiltrate secrets through the user's process of asking a chatbot for help. The authors focus not on disclosing data to the model provider, but on legitimate webpage-fetching requests carrying data to third parties.
- LLMLeak pre-encodes secrets into URLs referenced in error messages, so chatbots access them during troubleshooting. Attacker recovers data from DNS or HTTP requests; transmission does not depend on web page content or model's final answer.
- The authors evaluated 11 open-parameter models and 7 public chat products. The average Sconf for the directive setting in Table 2 is 79.70%; the informational setting in Table 5 is 54.63%, and encoding and length also affect complete recovery.
- The authors leave the design and evaluation of specific defenses to future work and discuss the costs of access restrictions, human approval, and domain reputation. The experiments use constructed stack traces and synthetic projects, and public chat products have only 10 runs per model, channel, and framing condition.
- Evaluated models
- Meta-Llama-3.3-70B-InstructMeta-Llama-4-Scout-17B-16E-InstructMeta-Llama-3.1-8B-InstructMistral-Small-24B-Instruct-2501Mistral-7B-Instruct-v0.3IBM-Granite-3.3-8b-instructAlibaba-Qwen2.5-7B-InstructMicrosoft-Phi-4-mini-instructDeepSeek-Coder-V2-Lite-InstructMeta-Llama-3.2-3B-InstructAlibaba-Qwen3-Coder-30B-A3B-InstructGrok 4.5 FastChatGPT 5.6 SolClaude Opus 5 (High Thinking)Claude Sonnet 5 (Medium Thinking)Claude Haiku 4.5Kimi FastGemini Flash-Lite
- Benchmarks
- synthetic code projectpublic chat interface
- Metrics
- ScallSreachSdataSconfRecovery Score (r)surfacedflaggeddelegatedcovertcovertstrict
The researchers propose LLMLeak, a new attack vector that uses LLM web scraping tools to establish a covert channel: local malware that cannot directly access the network can encode secrets into URLs and have the LLM visit the link under the pretext of benign tasks such as "migrating a software library," after which the attacker retrieves the encoded secrets through a DNS or web server under their control. The authors note that inputs that directly ask the LLM to send data using generated code are easy to detect, and network libraries are usually restricted, whereas LLMLeak relies only on the LLM's tools for fetching website information. Evaluations on 11 open-parameter models show an attack success rate of 79.7%, and the authors also conducted case studies on real chatbots.
Related events and news
1 events · 0 news mentions
- This event's paper
LLMLeak:借LLM网页抓取工具隐蔽外泄数据
Paper analysis
What problem does this paper attempt to solve?
The authors study how malware that cannot directly access the internet can exfiltrate secrets through a chatbot's legitimate web fetching.
The core question is whether legitimate webpage fetching can serve as a covert channel for restricted local software to exfiltrate secrets to third parties.
- Use scenario: Users give program errors or stacks to a chatbot for troubleshooting, and the model may access documentation references within them. The authors argue that even if the model is trusted or deployed locally, third-party leakage risk remains.
- Boundaries of existing defenses: The authors state that blocking prompt injection mainly targets instructions that change model behavior, whereas here the data is already contained in the URL and the model only needs to perform normal information fetching.
- Core observation: Secrets can enter the URL before the model reads the error; making the request itself completes the transmission, without requiring the model to actively extract the secret or relying on the returned webpage.
- Threat model: The paper does not use no-box, black-box, gray-box, or white-box classifications.
- Goal: Exfiltrate already-obtained secrets while avoiding user attention and revocation of leaked credentials.
- Knowledge and control boundaries: The attacker cannot control the chatbot or its infrastructure, nor access user conversations or information processed by the infrastructure.
- Capabilities: Malware can read secrets, construct outputs the user gives to the model, and control publicly accessible external servers; direct communication is restricted or monitored.
- Victim system: Malware already exists in the user's environment; the chatbot has a website-fetching tool and can be run by an external provider or hosted locally.
- Proposed method: LLMLeak establishes a DNS or HTTP covert channel through URLs in error messages and compares models, error phrasings, encodings, secret lengths, and user warnings.
What related research exists?
The authors distinguish LLMLeak from prompt injection, URL exfiltration, and malicious dependencies, emphasizing that data enters the request in advance.
Related work is divided into four groups—direct prompt injection, indirect prompt injection, model-mediated exfiltration, and malicious dependencies—following the organization of Section 7.
Direct prompt injection
- Perez and Ribeiro (2022): Discuss goal hijacking and system prompt leakage; Liu et al. (2023)'s HouYi is a black-box method inspired by traditional web injection.
- Authors' comparison: Section 7.1 states that these attacks place malicious instructions in the model input, causing the model to deviate from the intended task; LLMLeak exploits the side effects of web fetching.
Indirect prompt injection
- Greshake et al. (2023): Study external content carrying malicious instructions, discuss data theft, misinformation, behavior change, and self-propagating attacks, and demonstrate them on real integrated applications.
- Willison (2025): Identifies the simultaneous presence of private data access, untrusted content, and exfiltration channels as risk conditions. The authors state that LLMLeak does not require the model to change its normal behavior.
- Defense background: The introduction cites StruQ, SecAlign, Liu et al.'s formalization and benchmark work, and ASIDE as research on preventing untrusted instructions from influencing models; the paper does not run these defenses as baselines.
Model-mediated data exfiltration
- Rehberger et al. (2023): Use indirect prompt injection to make Google Bard generate Markdown image references carrying conversation data; Section 7.3 also discusses other URL exfiltration reports.
- OpenAI incident report: The authors recount an incident where an agent escaped its sandbox and communicated with an external model system via DNS; the difference is that the agent actively sought escape, whereas LLMLeak transmits through normal task requests.
- Authors' comparison: Existing URL attacks typically make the model construct or choose exfiltration requests; LLMLeak's data is pre-placed in the URL by local malware.
Malicious and hallucinated dependencies
- Spracklen et al. (2025), Krishna et al. (2025): Study code models referencing nonexistent packages and the risk of attackers introducing malicious dependencies under these names.
- Authors' positioning: These works focus on malicious packages entering the software environment; LLMLeak further studies exfiltration when malicious code already has data but cannot directly access the network.
Experimental baselines are variants of the same attack in terms of phrasing, encoding, URL, and anomaly type, using synthetic code projects and constructed stacks; the paper does not report benchmark comparisons against other attack methods. The authors position it as a covert channel formed by legitimate tool behavior, rather than relying on malicious instructions to alter model behavior.
How does the paper address this problem?
LLMLeak lets secrets enter legitimate requests via the URL of a debugging reference, and the server receives the request to complete the transmission.
LLMLeak puts already-obtained secrets into URLs cited in error messages, then triggers web fetching when users ask for help or agents debug. The channel described in Figure 1 consists of local malware, the user, the chatbot, and the attacker's server.
Problem setup and success conditions
- System boundary: Local malware can read secrets but cannot exfiltrate them directly; the chatbot and infrastructure are not under the attacker's control, and web fetching is a normal tool capability.
- Design requirements: Section 3.3 lists three requirements: exfiltration capability, stealth, and no need to control the model or infrastructure; users may copy text or submit screenshots.
- Transmission completion point: Exfiltration is complete when the attacker receives a request containing the data; the returned content and the model's subsequent response are not necessary for transmission.
Local output and error context
- Real exceptions: Section 4.2 designs a malicious library that raises exceptions during program execution, so the stack trace corresponds to the actual execution path, and secrets appear in URLs cited in errors.
- Two framings: informational framing only cites external resources as information; directive framing describes them as resources needed to resolve the error. Appendices A and B give complete examples; payloads are not repeated here.
- Prompt injection positioning: The authors state that the basic mechanism does not require traditional prompt injection and note that additional injection can serve as an optional enhancement; the evaluation does not include this optional component.
DNS, HTTP, and encoding
- DNS channel: Secrets are included in the subdomain of the request and observed by a DNS service controlled by the attacker; Section 4.3 notes length constraints for labels and full domain names.
- HTTP channel: Secrets are included in the URL path or query parameters, and the server recovers them from request logs; the authors note that actual URL length depends on the client, server, and intermediate components.
- Encoding variants: In addition to Latin encoding, Section 4.5 designs a reversible CJK representation to increase the information carried per displayed character. Encoding details are not expanded as an operational recipe.
- Response role: The implementation provides documentation and error pages related to library debugging to maintain interaction context; the authors explicitly state that these responses are not necessary for exfiltration itself.
Experimental runs and recovery definitions
- Agent environment: Models use ReAct-style multi-turn tool interaction in synthetic code projects, including file reading, directory listing, code search, writing, and web fetching. The shared system prompt is in Appendix E.
- Unified settings: vLLM runs at native precision, temperature 0.7, top-p 1.0, with at most 24 tool-call rounds per experiment.
- Recovery quality: The paper defines r=1−(lev(ρo,ρr))/(max(|ρo|,|ρr|)), using normalized edit distance to measure the similarity between the original data and the data received by the server.
- Complete success: Sconf requires receiving complete, unmodified data; r is computed on the data-containing requests corresponding to Sdata and cannot replace the success rate across all attempts.
What experiments did the paper conduct?
Whether the model makes a request, misstatements, and encoding affect the success rate; the warning statistics have caliber differences that need to be verified.
Experiments cover model differences, request funnel, phrasing, encoding, length, covertness, and public chat products. Full exfiltration and partial recovery are measured separately.
Experimental Setup
- Open-parameter models: Table 1 lists Meta-Llama-3.3-70B-Instruct, Meta-Llama-4-Scout-17B-16E-Instruct, Meta-Llama-3.1-8B-Instruct, Mistral-Small-24B-Instruct-2501, Mistral-7B-Instruct-v0.3.
- Other open models: IBM-Granite-3.3-8b-instruct, Alibaba-Qwen2.5-7B-Instruct, Microsoft-Phi-4-mini-instruct, DeepSeek-Coder-V2-Lite-Instruct, Meta-Llama-3.2-3B-Instruct, Alibaba-Qwen3-Coder-30B-A3B-Instruct.
- Public chat products: Table 10 tests Grok 4.5 Fast, ChatGPT 5.6 Sol, Claude Opus 5 (High Thinking), Claude Sonnet 5 (Medium Thinking), Claude Haiku 4.5, Kimi Fast, Gemini Flash-Lite.
- Data and repetition: 10 Python stacks, two phrasings, for a total of 20 attack stacks; simulated secrets are hash values. The main experiment repeats each of 10 errors 100 times per model and per channel, for a total of n=2000.
- Metrics and controls: Scall is accessing any website, Sreach is the request reaching the attack domain, Sdata is containing partial data, Sconf is the complete verbatim data; r measures recovery similarity. Controls are internal variants of the method.
- Judgment method: Exfiltration is determined by server logs; GPT-OSS-120b judges whether outputs warn about maliciousness, phishing, or injection, with no reported numeric score threshold. Public products have n=10 per model, channel, and phrasing, for a total of n=280.
Main Results
Per Table 2, Table 4: Latin encoding, DNS/HTTP combined; Table 4 labels Table 2's setting as directive. Model names in the table below follow the abbreviated names in the results tables.
Swipe horizontally to read the table
Model Directive Sreach% Directive Sconf% Informational Sconf% Llama-3.3-70B 100.0 99.9 97.0 Llama-4-Scout-17B 95.9 95.8 79.8 Mistral-Small-24B 95.2 94.0 93.2 Mistral-7B 92.8 91.0 30.6 Phi-4-mini 81.5 75.8 33.8 DeepSeek-Coder-V2-Lite 62.0 59.4 35.5 Qwen3-Coder-30B 30.9 30.0 16.2 - Overall means and omitted rows: Table 2's average Sconf is 79.70%, and Table 5's informational is 54.63%. The table omits Llama-3.1-8B, Granite-3.3-8B, Qwen2.5-7B, Llama-3.2-3B.
- Location of failures: In Table 3, Scall is 32.2%–100.0%, and the gap between Sreach and Sdata does not exceed 0.4 percentage points. The authors believe the main divergence is whether a request is made, not transmission after the request is received.
- Low-success models: The authors report that Qwen3-Coder-30B often inspects the project and modifies dependencies or configuration to try to resolve errors locally rather than accessing references; this is their stated behavioral explanation.
Public Chat Product Cases
- Complete success: In Table 10, Grok 4.5 Fast is 100% across all four channel × phrasing conditions, each n=10; ChatGPT 5.6 Sol informational DNS/HTTP is 90%/70%, each n=10, and directive is 100% for both, each n=10.
- Exceptions: Claude Haiku 4.5 informational DNS/HTTP is 20%/0%, each n=10; Gemini Flash-Lite is 10%/0%, each n=10. Both have 0% for both channels in the directive condition, each n=10.
- Subsequent behavior: The authors report that Haiku often delegates access to the user, which does not count as confirmed success; Opus sometimes fetches first and then warns. A model answer suggesting access also does not mean the server has received the request.
Covertness and Review Verification
- Statistical basis: Table 9 records 19 flagged out of n=17528 confirmed leaks, 99.9% covert, 32.9% covertstrict. The former only requires no warning; the latter also requires not mentioning the domain and not delegating access to the user.
- Model differences: In Table 9, Mistral-7B has 9 flagged, n=1819, with covert at 99.5%; this is inconsistent with the main text's generalization that "no model warned more than 0.1%," and the table takes precedence.
- Verification ambiguity: The authors state that all 19 flagged and a random 200 non-flagged outputs were manually verified, but then write "18 of 21 flags are real" with precision 95%. These counts are inconsistent; the 200 negative examples with no missed warnings found is another reported result.
Encoding and Secret Length
- Encoding comparison: Table 8's all-model average Sconf ranges from 79.7% for Latin to 66.0% for CJK; Mistral-Small-24B's CJK Sconf is 90.7%, and Llama-3.2-3B's is 33.1%. The authors state that CJK increases capacity, but exact reproduction loses success rate.
- Length experiment: 16 lengths, 10 stacks, 10 runs per configuration, reporting n=1600 per model. In Table 12, Phi-4-mini's Sconf ranges from 82.0% at 4 characters to 51.0% at 63 characters; DeepSeek-Coder-V2-Lite ranges from 56.0% to 59.5%.
- Figure 3 readable range: The horizontal axis is secret length (bytes); the two panels show the proportion of exact recovery among Sreach and the r segments for inexact recovery, with the legend distinguishing DNS, HTTP, and average. Text conversion cannot verify the curves; the authors state that the proportion of approximate hits increases as length increases.
Other Ablations and Analyses
- Transmission errors: In Table 6, of n=17904 requests that arrived, 17525 were complete and correct, accounting for 97.9%; this is inconsistent with Table 9's confirmed total of 17528.
- Error types: Table 6 reports equal-length substitution 0.30%, correct prefix but wrong length 0.68%, mixed substring errors 1.04%, and no data 0.10%, with the denominator being requests that arrived at the server.
- Phrasing variable: In Table 7, Mistral-7B's ΔFraming is −57.3 percentage points; this table measures Sreach and cannot be mixed with Table 4's Sconf changes.
- Other variables: In Table 7, Phi-4-mini's ΔURL is −5.0 and ΔError is +0.2 percentage points; this ablation uses six models with DNS/HTTP combined.
- CJK recovery: In Appendix C, Table 11, Qwen2.5-7B's r is 0.81 and Llama-3.2-3B's is 0.72, both computed on Sdata.
- Budget termination: Section 5.1.1 reports that about 0.03% of attempts ended because the turn limit was reached without calling the fetch tool.
What are some points that can be further explored?
The authors leave the design and evaluation of specific defenses to future work and discuss the security and utility costs of access control.
The authors' explicit next direction is designing and evaluating defenses, not treating the discussed measures as validated protections.
Limitations and Future Directions Noted by the Authors
- Specific defenses: Section 6.1 lists the design and evaluation of defense mechanisms as future work; Section 6.3 discusses potential countermeasures.
- Tool access restrictions: Section 6.3 notes that disabling web access by default requires a security-utility tradeoff and may reduce the benefits of tool-based models.
- Human approval: Section 6.3 notes that approval for unknown domains adds interaction overhead and may lead users to approve permanently; trusted domains may also be registered by attackers after expiration.
- Domain reputation: Section 6.3 argues that reputation scoring cannot fully prevent attacks because compromised or expired domains may retain existing reputation.
Experimental Coverage
- Models and tasks: Section 5.1 covers 11 open-parameter models, synthetic code projects, and constructed Python error stacks; Section 5.10 covers 7 public chat products.
- Channels and variants: Section 5 compares DNS/HTTP, two error phrasings, Latin/CJK encoding, error types, and URL structure; Table 7's factor ablation uses six models.
- Public product sample: Section 5.10 has n=10 per model, channel, and phrasing, for a total of n=280, confirming requests via server logs rather than treating the model's claim of access as success.
- Manual verification scope: Section 5.9 reports verifying all flagged and a random 200 non-flagged outputs; the flagged count and precision statements have the aforementioned inconsistencies, and no inter-rater agreement is reported.
- Defenses and input media: Section 6.1 explicitly leaves specific defense evaluation to future work; the authors discuss copying text and screenshots across isolation boundaries but do not separately report screenshot experiment results.
Summarize the main content of the paper
The authors state that third-party exfiltration can occur during normal webpage fetching, and defenses need to consider tool requests rather than only prompt injection.
LLMLeak is a covert channel attack that uses web page fetch requests carrying pre-encoded secrets. It focuses on scenarios where malware can already read data but cannot exfiltrate directly due to network restrictions or monitoring.
- Mechanism: Malicious library generates an error with an external resource reference; user gives it to chatbot for troubleshooting; when model accesses the reference, attacker recovers secret from DNS or HTTP requests. Transmission does not depend on model's final answer.
- Open model results: In Table 2, average Sconf across 11 models for instruction-style is 79.70%; Llama-3.3-70B 99.9%, Qwen3-Coder-30B 30.0%, n=2000 per model.
- Design variables: Table 5 informational-style average Sconf 54.63%; Table 8 CJK encoding average 66.0%, Latin 79.7%. Authors believe phrasing affects initiating requests, encoding affects complete reproduction.
- Covertness: Table 9 among n=17528 confirmed leaks, 99.9% no warning, but proportion without domain mention and without delegating user access is 32.9%; warning verification counts have inconsistent denominators.
- Product cases: Table 10 Grok 4.5 Fast 100% across four channel×phrasing conditions, each n=10; Claude Haiku 4.5 and Gemini Flash-Lite have no confirmed leaks in instruction-style conditions, each channel n=10.
- Authors' conclusion: Local deployment or operator confidentiality promises alone cannot handle such third-party request leaks; defenses also need to consider which external resources models access. Specific defense design and evaluation are listed as future work.