FlowSeal: Blocking Privacy Leakage in LLM Agents with Information Flow ControlConfuse the Model, Control the Flow: Understanding and Mitigating Privacy Leakage from LLM Agents with Information Flow Control
The authors propose the FLOWSEAL defense against agent privacy leakage, reducing the item leakage rate of the CWL attack from 52.2% to 0.5% on the SPR benchmark.
The data recipient is a malicious attacker attempting to induce the agent through multi-turn natural language interaction to disclose the data subject's sensitive information; the attacker cannot directly access sensitive data, the agent's system prompts, or memory, and cannot modify the agent or environment; the agent and called tools are trusted; compromised tool implementations, tool metadata poisoning, and PIA are out of scope.
- Existing defenses for LLM agents let the backend model make privacy judgments within an adversary-controlled conversation context, making the defense mechanism coincide with the attack surface and vulnerable to strategies such as task restructuring.
- FLOWSEAL moves privacy enforcement to a tool interceptor outside the model context, enforces an information flow control lattice policy based on data provenance, and performs content checks with an isolated judgment module.
- On the SPR benchmark, FLOWSEAL reduces entry leakage rates for CWL and SOA attacks to 0.5% and 2.3% respectively, with 72.4% benign task utility; in real MCP tests, leakage rate is 0%.
- The content checker tends to miss rewritten expressions and over-block referenced names; unregistered sensitive data cannot be tracked; the tendency to initiate consent requests in authorized scenarios is low.
- Evaluated models
- DeepSeek-V3.2GPT-4.1-miniGemini-Flash-2.5
- Benchmarks
- SPRPrivacyLensConVersePrivacyLens-Live
- Metrics
- LRILRBLVUtilityADRIADRBNconsentNturns
The paper points out that existing privacy defenses for personal AI agents rely on the backend LLM to decide within the same attacker-controlled conversation context whether to disclose sensitive information, making the defense mechanism overlap with the attack surface. The authors propose three attacks that require no prompt injection and can be carried out through ordinary interaction alone: wrapping information extraction as a collaborative task (Collaborative Workspace Lure), inducing disclosure through omission rather than content written by the agent (Semantic Obfuscation Attack), and splitting extraction requests and disclosures across mutually independent channels (Channel Decoupling Attack); all three have significantly higher leakage rates than the attacks these defenses were originally designed against. Accordingly, the authors propose FLOWSEAL, which enforces confidentiality in an interceptor at the tool layer outside the LLM context, based on data provenance and an information flow control lattice with controlled declassification. Across three benchmarks, five prompt-based baselines, and eight attacks (including agents performing real tool calls via MCP), FLOWSEAL reduces leakage rates to near zero (e.g., Collaborative Workspace Lure from 52.2% to 0.5%), while maintaining task utility and without relying on the underlying LLM.
Why it was selectedThe paper presents three interactive attacks that bypass existing privacy defenses without prompt injection, and includes leakage rate comparisons under each defense to facilitate evaluating the actual boundary of agent privacy protection.
Paper analysis
What problem does this paper attempt to solve?
Addresses the problem that existing prompt defenses make privacy judgments in attacker-controlled contexts, causing the mechanism and attack surface to overlap.
In large-model agents handling external interactions, privacy defense mechanisms and the attack surface overlap in the natural language context, leading to privacy leakage.
- Application scenario and importance: The authors state that personal AI agents are granted access to private data such as user emails, calendars, and documents; determining whether specific information should be disclosed to a specific recipient during dynamic interaction constitutes an ongoing privacy risk.
- Shortcomings of existing methods: The authors state that existing defenses mainly rely on enhanced prompts, fine-tuning, or state machines to let the LLM make privacy decisions itself, but the judgment depends on context controllable by the attacker; once the attacker restructures the request so the model does not recognize it as information solicitation, the checking mechanism is bypassed.
- Core observation: When privacy enforcement depends on the model's subjective judgment of attacker-controlled context, the enforcement mechanism and the attack surface coincide; security-critical execution must be decoupled from the model's natural language reasoning.
- Paper's work: The authors propose three new attacks that do not require prompt injection (CWL, SOA, CDA) and design the defense system FLOWSEAL, which performs information flow control outside the model context through tool-level interceptors.
- Threat model:
- Attack goal: The data recipient acts as the attacker, attempting to obtain the data subject's sensitive information without authorization.
- Attacker knowledge and capabilities: The attacker cannot directly access sensitive data, system prompts, or memory, and cannot modify the agent or environment; can conduct multi-turn adaptive interactions, manipulating the agent's judgment through queries or requests.
- Victim system: The victim agent itself is trusted and will not deliberately leak; called tools are trusted and correctly implement their intended functions.
- Scope limits: Compromised tool implementations, tool metadata poisoning, traffic fingerprint analysis, and prompt injection attacks are outside the defense scope of this paper.
What related research exists?
Reviews agent privacy benchmarks, model-based privacy defenses, and information flow control, noting that this paper moves enforcement outside the context.
Research related to agent privacy evaluation, prompt defense mechanisms, and information flow control.
- Agent privacy benchmarks and attack research:
- Over-sharing evaluation in routine tasks: PrivacyLens (Shao et al., 2024), AgentDAM (Zharmagambetov et al., 2025), and CIMemories (Mireshghallah et al., 2025) evaluate unintended privacy leakage during task execution; SPILLAGE (Roh et al., 2026) reveals indirect information disclosure through actions such as clicking and scrolling.
- Adversarial and multi-agent extraction: SPR (Zhang and Yang, 2026), ConVerse (Gomaa et al., 2026), and MAGPIE (Juneja et al., 2025) evaluate privacy extraction in multi-turn conversations; TRAP (Moon et al., 2026) measures the model's ability to use private fields in authorized tool calls while refusing to disclose them in natural language.
- Environmental prompt injection attacks: EIA (Liao et al., 2025) and VORTEX PIA (Cui et al., 2026) study web-based indirect injection forcing agents to steal secrets; the authors state such attacks break instruction following and are not the non-injection interactions this paper focuses on.
- Agent privacy defense mechanisms:
- Model-internal reasoning enhancement: PrivAct (Cheng et al., 2026) enhances privacy reasoning through preference training and other methods, but the authors note its execution remains probabilistic and relies on the model autonomously identifying risky contexts.
- Boundary mediation and runtime monitoring: AirGapAgent (Bagdasarian et al., 2024) reduces external exposure through sanitization; PrivacyChecker (Wang et al., 2025) uses an LLM at runtime to judge contextual integrity but only provides advisory blocking; FAN (Abdelnabi et al., 2025) uses input-output firewalls for filtering, which the authors state lacks fine-grained checks and does not track data provenance and usage relationships.
- Information flow control (IFC) in agents:
- Architectural isolation and execution integrity: f-Secure (Wu et al., 2024), ACE (Li et al., 2026), and PFI (Kim et al., 2025) use IFC to prevent untrusted data from tampering with planning to defend against prompt injection; the authors note their policies do not target data theft that does not tamper with execution integrity.
- Dynamic taint tracking and label propagation: Siddiqui et al. (2024) propose permissive IFC to derive context labels but do not enforce checks; FIDES (Costa et al., 2025) provides dynamic taint tracking against indirect prompt injection, but policy enforcement still relies on the LLM backend, which the authors state is vulnerable to the semantic obfuscation attacks in this paper.
- Comparison baselines and benchmarks: Defense comparison baselines include SPR-D1, SPR-D2, SPR-D3, PrivacyLens-Defense, and FAN-LCF; evaluation benchmarks use SPR, PrivacyLens, ConVerse, and the real-world PrivacyLens-Live.
- Positioning of this paper: The authors state that, unlike existing work that leaves privacy judgment entirely to the LLM or only protects execution integrity, FLOWSEAL establishes external deterministic interception at the tool call boundary based on data provenance, completely separating security-critical execution from probabilistic semantic reasoning.
- Agent privacy benchmarks and attack research:
How does the paper address this problem?
FLOWSEAL sets up code interceptors at tool boundaries, combining data provenance, a three-level lattice policy, and independent content checks to achieve information flow control.
FLOWSEAL achieves mandatory access control over sensitive data by moving security-critical execution logic to a code layer outside the agent context, combined with data source labels, an information flow control lattice, and an independent content declassification checker.
Formalization of the information flow security lattice
- Security level definition: Defines a three-level bounded security lattice L = {⊥, agent, ⊤}, whose partial order satisfies
$\bot \sqsubseteq \text{agent} \sqsubseteq \top$, where ⊤ represents the data subject's sensitive records, agent represents the agent's working memory after reading sensitive data, and ⊥ represents external unauthorized endpoints. - Subject classification: Partitions the subject set into trusted subjects PT (initially containing only the data subject), untrusted subjects PU (blacklist), and unknown subjects P?; writes to PU are directly blocked unconditionally.
- Taint propagation mechanism: When the agent reads a labeled object, the context security level is updated according to the least upper bound; derived content inherits the least upper bound of all source object labels.
- Release boundary check: Writing content c to destination d must satisfy
$\ell(c) \sqsubseteq \ell(d) \lor \text{declassify}(c, d) = \text{SAFE}$, indicating that release is allowed only when the content security level is not higher than the destination level or passes semantic declassification verification, thereby formally satisfying a Bell-LaPadula-like no-write-down property.
Two-layer defense architecture design
- Collaboration layer (prompts and APIs): Deploys system prompts and four dedicated privacy tool APIs on the agent side, guiding the agent to discover protected records through metadata in the first round and proactively initiate authorization when sharing is needed, avoiding blind retries due to agent deception.
- Enforcement layer (tool call interceptor): Deploys an independent code interceptor at the tool call boundary, mediating all write and share operations independently of the agent's main loop; even if the agent is adversarially induced or fails to call privacy APIs, the interceptor still performs mandatory checks.
Core component implementation
- Private data store: Sensitive records register source labels (data owner, category, original text, and authorized subjects) before the workflow starts, and are injected into working memory via metadata in the agent's first round rather than system prompts, preventing prompt extraction attacks.
- Taint tracker: At initialization, marks all private records as tainted; after intercepting read functions (e.g., GetEmail, GetDocument), scans responses, dynamically updates the session taint set, and records composite labels of derived objects.
- Release boundary and content checker: Intercepts all outbound write operations; if the destination is an unknown subject and tainted records are involved, invokes an independent LLM content checker with all relevant tainted records and the proposed output, returning only a binary SAFE or BLOCKED result without any explanation to prevent leakage.
Collaborative privacy APIs and recovery mechanism
- Four dedicated privacy APIs: Provides RequestAccess (requests authorization from the data owner and elevates destination permissions after approval), ListRecords (enumerates record IDs and categories without exposing original content), CheckDataOwners (checks whether output is compliant before writing), and Declassify (submits content for checking by an isolated LLM and can return a sanitized version).
- Failure guidance and recovery: When an outbound write is blocked by the interceptor, the interceptor includes actionable guidance in the returned error, directing the agent to call the appropriate privacy API (e.g., RequestAccess) rather than retrying in place.
- Security level definition: Defines a three-level bounded security lattice L = {⊥, agent, ⊤}, whose partial order satisfies
What experiments did the paper conduct?
Across three benchmarks, multiple models, and real MCP tests, FLOWSEAL reduces the leakage rate of novel attacks to below 2.3% while maintaining a 72.4% utility rate.
Experimental setup
- Models under test: The agent's default backend is DeepSeek-V3.2, with ablation tests including GPT-4.1-mini and Gemini-Flash-2.5; the evaluation judge defaults to DeepSeek-R1, with ablation tests comparing GPT-4.1-mini and Gemini-Flash-2.5.
- Evaluation benchmarks and scale: The SPR benchmark contains 105 attack seed scenarios (supporting 10 FastAPI simulated applications), with 3 runs per seed; adapted PrivacyLens contains 378 attack seeds, with 1 run per seed; adapted ConVerse contains 571 attack seeds, with 1 run per seed; additionally, 105 benign SPR seeds are constructed, with 3 runs per seed; real-world testing uses PrivacyLens-Live connected to real Gmail and Notion.
- Attack strategies: Baseline attacks include A1, A2, A3 generated by SPR; the three newly proposed attacks are collaborative workspace induction (CWL), semantic obfuscation attack (SOA), and channel decoupling attack (CDA).
- Comparison defense baselines: Includes SPR-D1, SPR-D2, SPR-D3 generated by SPR iterative search, PrivacyLens-Defense based on contextual integrity prompts, and the output-side firewall FAN-LCF; real-world testing compares PrivacyChecker.
- Evaluation metrics: Item-level leakage rate (LRI), binary-level leakage rate (LRB), leakage velocity (LV), benign task utility (Utility), and in authorized scenarios, authorized disclosure rates (ADRI, ADRB), number of consent requests (Nconsent), and number of completion turns (Nturns).
- Judgment method: Uses an LLM judge model to judge multi-turn interactions or output content; SPR and PrivacyLens are scored by the judge, ConVerse uses its original judge; in real-world testing, leakage is determined if sensitive facts appear verbatim in real Notion write operations.
Main results
According to Table II, Table III, and Table IV, on the SPR benchmark (DeepSeek-V3.2 backend), the item-level leakage rates (LRI) and benign task utility of different defenses against the three new attacks are as follows:
Swipe horizontally to read the table
Defense method CWL LRI (%) SOA LRI (%) CDA LRI (%) Benign task utility (%) SPR-D1 31.8 54.7 13.3 75.9 SPR-D2 52.2 75.6 43.8 44.7 SPR-D3 51.8 69.7 39.7 60.7 PrivacyLens-Defense 89.9 67.7 43.8 56.8 FAN-LCF 62.2 54.2 63.9 25.1 FLOWSEAL 0.5 2.3 2.2 72.4 - Prompt defenses fail under new attacks: The authors state that although SPR improves defense against known attacks through iterative adversarial training, under CWL, SOA, and CDA attacks, SPR-D2's LRI rises to 52.2%, 75.6%, and 43.8%, respectively, indicating that state machine preconditions are susceptible to semantic obfuscation bypass.
- SOA has the highest leakage rate among baseline defenses: SOA achieves covert exfiltration by deleting incorrect entries and retaining correct entries, reaching 75.6% LRI on SPR-D2, because it does not directly write sensitive content, so defenses that only check output text cannot trigger.
- FLOWSEAL balances low leakage and high utility: FLOWSEAL reduces the LRI of the three new attacks to 0.5%, 2.3%, and 2.2%, respectively, while maintaining a 72.4% utility rate on benign tasks, close to SPR-D1's 75.9%; the authors state this shows that system-level defense effectively balances privacy and utility.
Tool generalization and defense component ablation
- Collaborative tool generalization test: According to Figure 8, in tests replacing Notion with Google Slides and Slack tools, CWL's LRI under SPR-D2 remains 34.7% (Slides), FAN's LRI rises to 73.0% on Slides, while FLOWSEAL's LRI stays between 0.0%–1.3% across all three tools; the authors state this proves CWL exploits the collaboration framework itself rather than specific tools.
- Interceptor and checker contributions: According to Table V, disabling the interceptor raises CWL's LRI from 0.5% to 28.4%; if the checker adopts a fail-closed policy, LRI is 1.3% but utility drops to 0.0%; if it adopts a fail-open policy, utility is 79.4% but LRI rises to 24.9%.
- Prompt layer effect: According to Table V, removing the collaborative system prompt raises LRI from 0.5% to 8.8% and adjusts utility from 72.4% to 74.4%; the authors state the system prompt helps the agent recognize privacy rules and call APIs.
Model replacement and overhead evaluation
- Agent backend impact: According to Figure 9, when the agent LLM is replaced with GPT-4.1-mini and Gemini-Flash-2.5, SPR-D2's LRI under CWL is 59.2% and 61.9%, respectively, while FLOWSEAL's LRI is 1.9% and 0.6%; the authors state that backend model replacement has limited impact on attacks and defenses.
- Runtime overhead and latency: According to Table VII, in CWL testing, FLOWSEAL costs $0.109 per turn, an increase of $0.017 over the no-defense cost of $0.092; average time per turn is 7.45 seconds, a 37% increase over the no-defense 5.44 seconds, with an average of 57.1 LLM calls; the authors state the extra calls mainly come from agent retries after write operations are blocked.
Real-world MCP deployment validation
- Test environment construction: On the PrivacyLens-Live benchmark using real Gmail and Notion accounts via MCP, attacks are pre-written into real emails and pages; leakage is determined if sensitive facts appear in real Notion write operations.
- Performance against PrivacyChecker: According to Section VIII, against SOA attacks, PrivacyChecker's LRI is 34.7%, LRB is 48.0%, and LV is 34.7%; the authors state it is misled by attacker-forged HIPAA medical collaboration labels on pages and approves release.
- FLOWSEAL interception effect: Under the same SOA attack, FLOWSEAL deployed at the MCP distribution hook reduces LRI, LRB, and LV all to 0.0%, with a per-turn cost of $0.052 (compared to PrivacyChecker's $0.042).
Other ablations and analyses
- Judge model ablation: When the judge model is replaced with GPT-4.1-mini and Gemini-Flash-2.5, SPR-D2's LRI under CWL changes from 52.2% to 50.5% and 50.7%, and FLOWSEAL's from 0.5% to 1.0% and 0.8% (Section VII).
- Authorized scenario disclosure measurement: According to Table VI, in benign scenarios where the data subject authorizes consent, FLOWSEAL's ADRI is 32.7%, lower than SPR-D1 (63.2%) and SPR-D2 (66.6%), with Nconsent of 0.71 (baselines 0.92–1.01); the authors attribute this to the agent's more conservative tendency to initiate requests.
- Other benchmark transfer results: According to Table III, FLOWSEAL's LRI is 0.5% on PrivacyLens seeds, 3.3% on ConVerse seeds, 0.0% under SPR baseline attacks A1/A2, and 0.3% under A3.
What are some points that can be further explored?
The authors note that the checker has limitations of missed detection through rewriting and false rejection, and blind spots for unregistered data; future work could explore multi-layer system-level defenses.
Limitations and future directions noted by the authors
- Checker rewrite misses and over-blocking: The content checker's main failure mode is rewriting; sensitive values that are restated or embedded in compound sentences may evade detection; benign writes that merely mention protected record names without disclosing content may be over-blocked (Section IX).
- Unregistered records cannot be tracked: If sensitive facts are not registered with source labels in the private data store (e.g., unregistered hypertension information in the ConVerse case), the taint tracking mechanism cannot mark them, and the content checker will release them as safe information (Section VI-C, Appendix H-B).
- Hybrid declassification fast-path design: The authors propose that future work could build a hybrid declassification fast path using lightweight PII pattern matchers before calling the LLM, to reduce check latency and classification errors in direct use cases (Section IX).
- Split-and-aggregate attack threat: The authors note that attackers may split a single protected fact across multiple independent harmless write operations, each passing checks individually; this attack surface is not yet exhausted and further defense mechanisms need exploration (Section IX).
- Cross-system multi-layer defense integration: The authors propose that the current defense sits at the tool call boundary; future work could explore combining it with OS kernel layers (e.g., Linux security modules, eBPF probes) and mobile permission isolation to build a cross-layer defense stack (Section IX).
- Conservative request tendency in authorized scenarios: In authorized disclosure evaluation, FLOWSEAL's low tendency to initiate consent requests leads to lower authorized disclosure rates than baseline defenses, requiring further balancing of authorization usability and interaction overhead (Section VII, Table VI).
Experimental coverage
- Model coverage: The agent models under test are DeepSeek-V3.2, GPT-4.1-mini, and Gemini-Flash-2.5, totaling 3 models; the evaluation judge models are DeepSeek-R1, GPT-4.1-mini, and Gemini-Flash-2.5 (Section VI-A3, Section VII).
- Benchmark and tool coverage: Simulated experiments cover 3 benchmarks: SPR, PrivacyLens, and ConVerse; collaborative tool tests cover Notion, Google Slides, and Slack (Section VI-A1, Section VII).
- Real-world scope: Real-world testing on PrivacyLens-Live targets two MCP endpoints, Gmail and Notion, and only evaluates the SOA attack (Section VIII).
- Uncovered attack threats: The paper does not test defense performance against prompt injection attacks (PIA), compromised tool implementations, or tool metadata poisoning, and states these threats are beyond the paper's scope (Section III).
- Scale and protocol limitations: The paper does not conduct large-scale end-to-end testing in real MCP environments; the authors state this is limited by the need for manual data cleanup on real endpoints (Section VIII).
Summarize the main content of the paper
The authors analyze the overlap between privacy checking and attack surface in large-model agents, propose the external interception defense FLOWSEAL, and validate its effectiveness.
- Research positioning: This study addresses privacy protection in collaborative interactions of personal LLM agents, reveals the structural vulnerability of defenses that rely on prompt-based internal reasoning, and proposes a system-level defense based on information flow control.
- Core problem: Existing defenses delegate privacy judgment to the agent within an attacker-controlled conversation context, making the defense execution point coincide with the attack surface; attackers can bypass checks through task restructuring (CWL), omission-based disclosure (SOA), and cross-channel decoupling (CDA).
- Defense mechanism: FLOWSEAL tags sensitive records based on data provenance, deploys independent code interceptors at tool invocation boundaries to enforce a three-level lattice policy, and uses an isolated LLM content checker for semantic declassification, supplemented by a collaboration API that guides the agent toward normal interaction.
- Key experimental results: On the SPR benchmark (DeepSeek-V3.2), FLOWSEAL reduces the item leakage rate of CWL from 52.2% in SPR-D2 to 0.5%, SOA from 75.6% to 2.3%, and CDA from 43.8% to 2.2%; the benign task utility rate remains at 72.4%; in real Gmail and Notion MCP tests, SOA leakage is reduced to 0.0%.
- Ablation and overhead: The tool interceptor is the core of the defense (disabling it raises the CWL leakage rate back to 28.4%); compared with the no-defense setting, FLOWSEAL adds only $0.017 in cost per round and 37% latency.
- Authors' conclusion and implications: The authors argue that by moving security enforcement to an external layer that adversarial restructuring cannot reach, agents can obtain more stable privacy protection, and future work should promote multi-layer defense in depth across the operating system, tool layer, and model alignment.
Related papers
- Firewalls to Secure Dynamic LLM Agentic NetworksDefensesarXiv