Firewalls for Protecting Dynamic LLM Agent NetworksFirewalls to Secure Dynamic LLM Agentic Networks
The authors propose a dual-firewall architecture for inter-agent communication and report that on ConVerse, GPT-5's privacy ASR drops from 84.68% to 10.20% and safety ASR from 60.39% to 3.42%.
A user delegates a personal AI assistant to conduct multi-turn natural-language conversations with external provider agents to complete tasks. External agents may be cooperative, self-interested, or adversarial: privacy threats refer to eliciting personal information unnecessary for the task through seemingly legitimate conversation; safety threats refer to manipulating the assistant's behavior through selective framing, artificial urgency, preference override, or capability abuse. The paper assumes the user knowledge base E is vetted and trusted, excluding data poisoning and indirect prompt injection carried by retrieved documents.
- In inter-agent communication, every message crosses a trust boundary: outbound messages may leak user privacy, and inbound messages may carry manipulation. The authors argue that detection-based defenses turn security into an adversarial game the attacker can win by iterating, while static rules struggle to adapt to real tasks.
- Proposes a dual-firewall architecture: the Language Converter Firewall converts inbound natural language into a closed structured protocol and filters it through a deterministic validator; the Data Abstraction Firewall abstracts personal information to task granularity before the assistant sees the data. The rules of both firewalls are learned automatically by an LLM from demonstration conversations.
- Evaluated on 864 attacks in the ConVerse benchmark and four models. The authors report that for GPT-5, the three-domain average privacy ASR dropped from 84.68% to 10.20%, the safety ASR dropped from 60.39% to 3.42%, and task utility was maintained or improved; compared with AirGapAgent-style binary filtering, the overall privacy ASR dropped from 67.3% to 5.5%.
- The authors point out: the threat model excludes knowledge-base poisoning and injection into retrieved documents; adversaries can place false data in legitimate fields; field-by-field abstraction may still be subject to cross-field re-identification; the feasibility of the structured protocol in unstructured domains is unknown; rule learning has no formal completeness guarantee; and the architecture covers only a single assistant–service channel. Experiments were conducted only on three ConVerse domains and four models.
- Evaluated models
- GPT-5Claude Sonnet 4Gemini 2.5 ProGemini 2.5 Flash
- Benchmarks
- ConVerse
- Metrics
- ASRRatingCoverage
The paper proposes a dual-firewall architecture for protecting networks of LLM agents that communicate on behalf of users, and reports a reduction in attack success rate on 864 attacks in the ConVerse benchmark. The language transformation firewall projects external agent messages into a closed, domain-specific structured protocol, eliminating persuasive wording, urgency tactics and embedded instructions through deterministic validation; the data abstraction firewall projects outgoing information to the granularity required by the task, rather than performing binary disclosure or redaction filtering as previous air-gap schemes did. Both firewalls run in a trusted environment isolated from external input, and the rules are learned automatically from demonstrations. In tests across three domains, on GPT-5 the privacy attack success rate dropped from 84% to 10%, and the security attack success rate dropped from 60% to 3%, while task completion quality was maintained or improved.
Paper analysis
What problem does this paper attempt to solve?
Addresses two types of risk in inter-agent communication, privacy leakage and manipulation attacks; the authors advocate replacing detection-based defenses with structural constraints.
Core problem: when an AI agent communicates on a user's behalf with external provider agents over multi-turn natural language, how to simultaneously prevent excessive disclosure of user privacy and prevent the assistant from being manipulated by external messages.
- Problem setting and importance: Agents are shifting from chatbots to delegated actors and collaborate with each other through protocols such as MCP and A2A. Citing incidents on the Moltbook platform, the authors state that inter-agent manipulation, data leakage, and propagation of malicious instructions through normal conversation have been observed in practice.
- Shortcomings of existing methods (as stated in the paper): Detection-based defenses (classifiers, guardrail models, alignment fine-tuning) turn security into an open adversarial game, where an attacker needs only one unforeseen phrasing to win; static rules cannot adapt to task changes; secure-by-design prompt injection defenses (Debenedetti et al., 2026; Costa et al., 2025) assume control flow can be predetermined by a trusted user query, which fails in open inter-agent communication; binary data minimization (Bagdasarian et al., 2024) cannot balance privacy and utility.
- Core observation: Each task defines a context, and the information carried by both communicating parties far exceeds what that context requires; the firewall can act as a dynamic projection onto the task context, allowing only context-appropriate content to cross the boundary.
- Proposed approach: A dual-firewall architecture—the Language Converter Firewall projects inbound messages onto a closed structured protocol, and the Data Abstraction Firewall projects outbound data to a task-appropriate granularity; the rules of both are learned automatically from demonstrations, and the approach is evaluated on the ConVerse benchmark.
- Threat model:
- Attacker goals: Elicit personal information unnecessary for the task through seemingly legitimate conversation (privacy), or manipulate the assistant's behavior through framing, urgency, preference override, or capability abuse (safety).
- Attacker knowledge and capabilities: The external agent is itself an AI and can adaptively probe across multiple turns, escalate requests, and strategically adjust phrasing based on the assistant's responses; attacks resemble normal business communication.
- Victim system: A personal assistant representing the user, with a personal knowledge base (calendar, finances, health, etc.) and tools (sending email, modifying the calendar).
- Exclusions: The paper assumes the user knowledge base is trusted and excludes data poisoning and indirect prompt injection carried by retrieved documents.
What related research exists?
Related work covers contextual integrity, multi-agent privacy, LLM agent safety, and benchmarks; this paper is positioned as a system-level structural defense.
Contextual Integrity
- Nissenbaum (2004) proposed that privacy is information flow conforming to contextual norms; Barth et al. (2006) formalized it; Abdi et al. (2021) confirmed in smart home assistants that users' privacy expectations depend on recipient type and information sensitivity. This paper operationalizes CI principles as data abstraction rules.
Multi-agent privacy and LLM agent safety
- Pre-LLM multi-agent privacy, as surveyed by Such et al. (2014), relies on cryptography and platform-level security and assumes agents faithfully execute programs; the paper points out that LLM agents break this assumption.
- Perez & Ribeiro (2022) early identified prompt injection; Greshake et al. (2023) showed that instructions in external data can override user prompts.
- The system-level defenses of Debenedetti et al. (2026) and Costa et al. (2025) assume the user is trusted and retrieved data is untrusted; the paper points out that no such clean boundary exists in inter-agent communication, where attacks appear as contextually plausible questions and persuasive phrasing.
LLM privacy
- Carlini et al. (2021)'s training data extraction and Shokri et al. (2017)'s membership inference concern the training stage; the paper points out that information leakage by agents while executing tasks is a different type of risk.
- Bagdasarian et al. (2024)'s AirGapAgent uses binary data minimization to restrict agent access; the paper argues that agents need access to private data but should share it only at an appropriate granularity, and provides an empirical comparison in Section 5.7.
- Lan et al. (2025) treat contextual integrity as a reasoning problem, and Yi et al. (2025) study the effect of ambiguity on privacy judgments; the paper states that its system-level defense is orthogonal to these model-level methods and does not rely on the model's own reasoning.
Benchmarks
- Privacy benchmarks: Mireshghallah et al. (2024), Shao et al. (2024), Ghalebikesabi et al. (2025), Mireshghallah et al. (2026) evaluate leakage using the CI framework.
- Safety benchmarks: AgentDojo (Debenedetti et al., 2024), WASP (Evtimov et al., 2025), LLMail-Inject (Abdelnabi et al., 2025b) evaluate prompt injection against tool-using agents, but without multi-turn conversation.
- Baselines and benchmarks: The comparison baseline is the authors' adapted AirGapAgent (Bagdasarian et al., 2024); the evaluation benchmark is ConVerse (Gomaa et al., 2026), with 864 contextualized attacks covering the travel, real estate, and insurance domains.
The authors position this paper as: not hardening the model itself, but constraining the communication channel, providing structural guarantees that do not rely on detection.
How does the paper address this problem?
The dual firewall projects each side of the communication onto the task context: inbound messages are converted to a closed protocol and deterministically validated, and outbound data is abstracted by granularity.
The overall idea is to instantiate the firewall as a projection onto the task context: the Language Converter Firewall handles inbound messages, and the Data Abstraction Firewall handles outbound data; both run in a trusted environment isolated from external input, and their rules are automatically learned from demonstration dialogues.
Problem Formalization
- The user assistant Au has a personal knowledge base E and a toolset, and needs to conduct a multi-turn dialogue D = (m1, ..., mn) with an external provider agent Ae to complete a task τ, where each message is in natural language.
- Privacy threat: Ae obtains, through seemingly legitimate dialogue, information that the task does not require or that the user is unwilling to disclose; safety threat: Ae's messages manipulate Au through framing, urgency, preference override, or capability abuse.
Language Converter Firewall (inbound)
- Structured language: each domain defines L = (K, V, T), where K is a finite set of keys (e.g., destination_name, price_per_night), V is a set of enumerated values or a type, and T is a type constraint; values fall into four categories: enumerated, typed, composite format (e.g., "{datetime} to {datetime}"), and string, with strings used only for proper nouns that cannot be enumerated. The protocol has no arbitrary "message" key.
- Three-stage pipeline: (1) an LLM converts the external message into JSON; (2) a deterministic validator checks field by field—unknown keys are dropped, enumerated values are checked, types and ranges are validated, and composite formats are validated component by component, with no LLM involved throughout; (3) string fields are anonymized via a mapping dictionary (e.g., hotel_1), and DeAnonymize restores them when the assistant's reply is sent out.
- Protocol learning: the LLM learns the protocol only from a corpus of benign dialogues (Algorithm 3); the authors state that using only benign corpora avoids introducing keys not required by legitimate tasks and keeps the vocabulary closed; Appendix B.3 notes that a manual review step is possible.
- Security argument: the authors state that security does not depend on the correctness of the conversion LLM—any error or manipulation that survives Stage 1 is caught by the deterministic validator in Stage 2.
Data Abstraction Firewall (outbound)
- Architectural position: placed on the input side between the knowledge base and the assistant; the firewall sees only the raw data x and the rules R, not the query q or the external messages, which the authors state prevents manipulation from affecting the abstraction process.
- Abstraction process: the firewall LLM converts x into an abstracted x̃ according to rules R (Algorithm 5); the rules specify which information is allowed, abstracted, or blocked (e.g., a specific age is abstracted to "adult", passport details are blocked).
- Rule learning: the LLM generates rules by comparatively analyzing paired corpora of benign dialogues and attack dialogues (Algorithm 4), learned separately per domain. The authors explain the asymmetry with protocol learning here: abstraction rules encode the boundary between appropriate and inappropriate disclosure, which inherently requires comparison; using only benign corpora would produce overly permissive rules, and using only attack corpora would produce overly strict ones.
Key Parameters
- Rule generation used Claude Sonnet 4, with dialogue logs from 2 personas per domain iteratively refined item by item; the benign corpus was all dialogues for each persona (4 runs × 2 personas), and the attack side sampled 21 privacy attacks and 17 safety attacks, forming 38 attack–benign pairs.
- The generated Data Abstraction rules have 54, 109, and 203 lines in the insurance, travel, and real estate domains, respectively; the Language Converter templates contain 112–217 keys and 11–20 in-domain categories.
Success Determination
- Privacy ASR: whether the target information is disclosed; safety ASR: whether the manipulation achieves its goal (preference override, unauthorized action, denial of service); utility is measured by subtask coverage and plan quality rating, both determined by an LLM judge against pre-generated ground-truth annotations.
What experiments did the paper conduct?
Evaluated on 864 attacks in ConVerse across four models, the authors report that the dual firewall reduces each model's safety ASR to below 4% with no drop in utility.
Experimental Setup
- Models tested: GPT-5, Claude Sonnet 4, Gemini 2.5 Pro, Gemini 2.5 Flash; each model simultaneously plays the assistant, the external agent, and the user environment agent.
- Benchmark: ConVerse (Gomaa et al., 2026), 864 contextualized attacks, covering the three domains of travel planning, real estate, and insurance, with 12 user personas; the external agent's service database contains 158–184 options.
- Attack types: privacy attacks cover 7 data categories with a three-level classification (unrelated, related-but-private, related-and-useful); safety attacks include preference manipulation, denial of service, and unauthorized action.
- Metrics and judging: ASR (for privacy, whether the target information is disclosed; for safety, whether the manipulation succeeds), utility measured by subtask Coverage and plan quality Rating; all metrics are determined by GPT-5 as judge against pre-generated ground-truth annotations, and the authors state that ConVerse reported stable results when the judge model was changed.
- Baselines: no firewall; the authors' adapted AirGapAgent binary data minimization.
- Confidence intervals: ASR reports 95% Wilson intervals, continuous utility metrics report t-distribution intervals; the number of repetitions is not explicitly reported in the paper (the rule corpus contains 4 runs per persona).
Main Results
Travel Planning domain privacy attacks (per Table 1, ASR in %):
Swipe horizontally to read the table
Model No firewall Dual firewall Rating none→with Coverage none→with GPT-5 88.51±3.49 7.77±3.70 8.07→8.42 96.58→95.63 Gemini 2.5 Pro 67.16±6.39 9.18±4.08 7.77→7.73 90.50→86.65 Claude Sonnet 4 55.77±6.69 7.25±3.59 8.12→8.45 95.17→98.21 Gemini 2.5 Flash 27.56±5.18 8.08±3.84 7.19→7.93 83.12→96.24 Travel Planning domain safety attacks (per Table 2, ASR in %):
Model No firewall Dual firewall GPT-5 55.32±9.85 3.26±4.02 Gemini 2.5 Pro 32.58±9.56 2.33±3.72 Gemini 2.5 Flash 18.95±7.82 1.15±3.01 Claude Sonnet 4 4.35±4.47 1.10±2.89 - The authors state that the firewall brings all models to a similar level of protection (privacy 7–9% ASR), independent of the baseline's vulnerability.
- Three-domain average (Tables 14, 15, reporting only Claude Sonnet 4, Gemini 2.5 Flash, GPT-5): privacy ASR dropped from 72.89%/37.91%/84.68% to 16.77%/10.18%/10.20%; safety ASR dropped from 10.66%/23.87%/60.39% to 4.19%/1.02%/3.42%.
- The authors suggest that the counterintuitive utility improvement may stem from a cleaner information environment: abstraction reduces noise, and conversion eliminates distracting manipulation.
Component Ablation
- Privacy attacks (Table 3, GPT-5, Travel Planning): Data Abstraction alone reduced ASR from 88.51% to 29.33%, Language Conversion alone to 20.67%, and the two combined to 7.77%; the authors state that the two handle complementary attack vectors.
- Safety attacks (Table 4, GPT-5): Language Conversion alone reduced ASR from 55.32% to 1.09%, Data Abstraction alone to 30.77%; the authors explain the latter by many safety attacks having information extraction as a prelude.
Generalization and Sensitivity
- Cross-persona generalization (Table 5): ASR is close between the personas used for rule generation (1, 4) and held-out personas (2, 3), e.g., GPT-5 at 6.36% vs 9.09%, Claude Sonnet 4 at 6.42% vs 8.16%; the authors state that the rules capture domain-level norms rather than persona details.
- Rule-learning sensitivity (Table 6, 24-attack subset, GPT-5): under the original setting, privacy/safety ASR are both 0.0%, with a single persona (half the data) 8.3%/0.0%, with a quarter of the data 0.0%/8.3%, and the no-firewall baseline 83.3%/50.0%; the authors state that protection degrades gracefully as data decreases.
Comparison with Binary Minimization
- Setup (Table 7): GPT-5, Travel Planning, all attacks for personas 1 and 4; the adapted AirGapAgent pre-judges each environment item's relevance to the task, releasing the full text if relevant and blocking it entirely otherwise.
- Results: overall privacy ASR dropped from 67.3% to 5.5%, safety ASR from 27.3% to 4.5%; the hardest related-and-useful tier dropped from 76.2% to 23.8%.
- Authors' interpretation: binary filtering can only release data genuinely needed for the task at full granularity, whereas abstraction discloses at a resolution appropriate to the task; the authors state this is a qualitatively different defense.
Other Ablations and Analyses
- Residual privacy failures (manual analysis of all residual cases): the main patterns are granularity calibration (the correct type of disclosure but finer than the benchmark reference, concentrated in the related-and-useful tier) and field overlap (allowed coarse-grained fields storing free text underneath); the authors state that no case involved manipulation defeating the validator or the architectural isolation.
- Residual safety failures: about three quarters are preference manipulation in the insurance domain—structurally legitimate, correctly typed upsell items passing through the protocol; the remaining quarter are the assistant executing the attack goal based solely on the user query, unrelated to the inter-agent channel.
- Qualitative examples (Appendix I): show a prescription-detail request stripped because the key is not in the schema, an address abstracted to "London region", and urgency phrasing stripped after which the assistant refuses an over-budget property; the appendix provides full dialogue excerpts.
What are some points that can be further explored?
The authors list several limitations and future directions, including threat-model exclusions, re-identification, unstructured domains, and rule provenance.
Limitations and future directions noted by the authors
- The threat model excludes two types of threats (Section 6): It assumes the knowledge base E is trusted; data poisoning and prompt injection carried by retrieved documents need to be combined with other defenses; adversaries can fill legitimate fields with false data (forged ratings, fabricated prices) that passes the validator, and the authors state that the firewall may even reduce the cues that would make the assistant suspicious.
- Extension points (Section 6): Validating numeric fields against trusted reference APIs and having the assistant flag statistically untrustworthy values are natural extension directions proposed by the authors.
- Cross-field re-identification (Section 6): The firewall generalizes field by field, and the intersection of multiple abstract fields may still allow re-identification; the authors state that the current mechanism does not formally reason about the joint information content of disclosed fields, and the three factors only partially mitigate this.
- Scalability to unstructured domains (Section 6): The structured guarantees are tightest in domains with enumerable vocabularies; in domains such as code generation and open-ended collaboration, more fields must be string-typed, anonymization becomes the main line of defense, and utility may be affected; the boundary of the feasible domain is an open question.
- Rule learning in practice (Section 6): Rule learning has no formal completeness guarantee; the demonstration sources (pilot logs, customer service records) are only noisy proxies for user intent; the authors believe rules should be validated on held-out data and iteratively refined through human review and user feedback, with personalized rules and automated refinement loops left as future work.
- Beyond pairwise channels (Section 6): The architecture protects only a single assistant–service channel; how contextual integrity norms compose in multi-agent topologies is an open challenge; Appendix B.3 also mentions automated protocol maintenance and an extension framework as future work.
Scope of the experiments
- The models tested are GPT-5, Claude Sonnet 4, Gemini 2.5 Pro, and Gemini 2.5 Flash, 4 in total; the three-domain average results tables (Table 14, 15) report only 3 of them.
- Evaluation is conducted only on the travel, real estate, and insurance domains of the ConVerse benchmark, with 864 attacks and 12 personas.
- The defense comparison includes only no firewall, the single-firewall ablation, and the authors' adapted AirGapAgent (Table 7, limited to GPT-5, Travel Planning, personas 1 and 4).
- The rule-learning sensitivity experiment is conducted on a subset of 24 attacks (Table 6); cross-persona generalization uses 2 rule-generating personas against 2 held-out personas (Table 5).
- The paper does not report the number of repetitions per experiment or measured latency or cost figures for the firewall (Section 6 only describes one short-context LLM call per firewall per turn, with the validator sub-millisecond).
Summarize the main content of the paper
The dual firewall constrains inter-agent communication through a structured protocol and granularity abstraction; the authors report a large drop in ASR with no drop in utility.
A system-level defense paper on the security of inter-agent communication. The problem it addresses: when a personal AI assistant holds multi-turn conversations with external provider agents, outbound messages may over-disclose privacy and inbound messages may carry manipulation, and detection-based defenses are, in the authors' view, an adversarial game the attacker can win by iterating.
- Method: the unifying principle is projection onto the task context. The Language Converter Firewall converts inbound natural language into a closed structured protocol (LLM conversion + deterministic validation + string anonymization), so persuasive wording and embedded instructions have no representation in the protocol; the Data Abstraction Firewall performs granularity abstraction according to domain rules before the assistant sees knowledge-base data, and is architecturally isolated from external messages. The rules of both firewalls are learned by an LLM from demonstration dialogues: the protocol uses only benign corpora, and the abstraction rules use benign–attack comparative corpora.
- Main results: on 864 attacks in the ConVerse benchmark and four models, the authors report that in the Travel Planning domain, GPT-5's privacy ASR dropped from 88.51% to 7.77% and safety ASR from 55.32% to 3.26% (Tables 1, 2); the three-domain average for GPT-5 dropped from 84.68% to 10.20% for privacy ASR and from 60.39% to 3.42% for safety ASR (Tables 14, 15), with safety ASR below 4.2% for all models and utility metrics maintained or improved.
- Ablations and comparisons: Language Conversion alone reduces GPT-5's safety ASR to 1.09% (Table 4); compared with AirGapAgent-style binary filtering, overall privacy ASR dropped from 67.3% to 5.5% (Table 7); the rules generalize to unseen personas, and ASR remains no higher than 8.3% when the demonstration data is reduced to a quarter (Table 6).
- Residual failures: on the privacy side, mainly granularity calibration and field overlap, with the authors stating that no case involved manipulation defeating the validator; on the safety side, about three quarters are structurally legitimate upsells passing through the protocol, a preference alignment problem.
- Authors' conclusion: constraining the communication channel rather than hardening the model can provide structural protection at little or no utility cost; the authors also acknowledge that the threat model excludes knowledge-base poisoning, that field-level abstraction may still be subject to cross-field re-identification, and that unstructured domains and multi-agent topologies are left for future exploration, and they have released the implementation and rule sets.