AirGapAgent: Protecting Privacy-Conscious Conversational Agents
Open accessThe DOI matches its Crossref record; 57 of the 57 references it cites were found in a registry or an index.
Abstract
The growing use of large language model (LLM)-based conversational agents to manage sensitive user data raises significant privacy concerns.While these agents excel at understanding and acting on context, this capability can be exploited by malicious actors.We introduce a novel threat model where adversarial third-party apps manipulate the context of interaction to trick LLM-based agents into revealing private information not relevant to the task at hand.Grounded in the framework of contextual integrity, we introduce AirGapAgent, a privacy-conscious agent designed to prevent unintended data leakage by restricting the agent's access to only the data necessary for a specific task.Extensive experiments using Gemini, GPT, and Mistral models as agents validate our approach's effectiveness in mitigating this form of context hijacking while maintaining core agent functionality.For example, we show that a single-query context hijacking attack on a Gemini Ultra agent reduces its ability to protect user data from 94% to 45%, while an AirGapAgent achieves 97% protection, rendering the same attack ineffective. CCS Concepts• Security and privacy → Information flow control.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“This pattern does not prevent all prompt injections, but acts as a form of 'control flow integrity' protection (Bagdasarian et al., 2024; Abdelnabi et al., 2025b; Balunovic et al., 2024).”
From Design Patterns for Securing LLM Agents against Prompt Injections (2025) · cites this paper as Bagdasarian et al., 2024
Experimental — accuracy not yet measuredThe source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“A core risk is that an agent's goals and values may drift away from original human intent as it evolves. This is exacerbated by the learning uncertainty inherent in self-evolution, especially when operating in ambiguous contexts (Anwar et al., 2024; Bagdasarian et al., 2024).”
From A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligence (2025) · cites this paper as Bagdasarian et al., 2024
Experimental — accuracy not yet measured
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Dwork, C. (2006) · Lecture Notes in Computer Science · doi:10.1007/11787006_1 · Cited by 5,291 · cited 2×
“Other methods that protect data, like local differential privacy (DP) [23, 24, 33, 61], are not context-aware and therefore reduce the agent’s utility by always introducing noise on user data [17, 22, 32].”
Bleu: a method for automatic evaluation of machine translation
Papineni, K. (2024) · doi:10.57702/ljteqmrb · Cited by 3,672
Randomized Response: A Survey Technique for Eliminating Evasive Answer Bias
Warner, S. L. (1965) · Journal of the American Statistical Association · doi:10.1080/01621459.1965.10480775 · Cited by 3,255 · cited 1×
“Other methods that protect data, like local differential privacy (DP) [23, 24, 33, 61], are not context-aware and therefore reduce the agent’s utility by always introducing noise on user data [17, 22, 32].”
Privacy as Contextual IntegrityPreprint
Nissenbaum, H. F. (2004) · SSRN Electronic Journal · Cited by 2,961
Privacy in Context: Technology, Policy, and the Integrity of Social Life
Nissenbaum, H. (2009) · doi:10.1515/9780804772891 · Cited by 2,129 · cited 1×
“The theory of contextual integrity (CI) [38, 39] defines privacy as the appropriate flow of information according to pre-specified privacy norms and expectations specific to the context.”
A Survey on Large Language Model based Autonomous Agents
Wang, L., Ma, C., Feng, X., Zhang, Z., Yang, H., Zhang, J., Chen, Z., Tang, J., Chen, X., Lin, Y., et al. (2023) · arXiv · doi:10.48550/arxiv.2308.11432 · Cited by 1,925
Concrete Problems in AI Safety
Amodei, D., Olah, C., Steinhardt, J., Christiano, P., Schulman, J., & Mané, D. (2016) · arXiv · doi:10.48550/arxiv.1606.06565 · Cited by 1,314 · cited 1×
“Treating it as an alignment problem [5, 8] and fine-tuning the model on an appropriate dataset seems reasonable, but faces the same limitations encountered in adversarial and jail-breaking attacks against LLMs [37, 58, 68].”
Toolformer: Language Models Can Teach Themselves to Use Tools
Schick, T., Dwivedi-Yu, J., Dessì, R., Raileanu, R., Lomeli, M., Zettlemoyer, L., Cancedda, N., & Scialom, T. (2023) · arXiv · doi:10.48550/arxiv.2302.04761 · Cited by 1,150
BLEURT: Learning Robust Metrics for Text Generation
Sellam, T., Das, D., & Parikh, A. (2020) · Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/2020.acl-main.704 · Cited by 1,005
BLEURT: Learning Robust Metrics for Text Generation
Sellam, T., Das, D., & Parikh, A. P. (2020) · arXiv · doi:10.48550/arxiv.2004.04696 · Cited by 1,005
Research works printed but not linked: 18
- Sahar Abdelnabi, Aideen Fay, Giovanni Cherubin, Ahmed Salem, Mario Fritz, and Andrew Paverd. Are you still on track!? Catching LLM task drift with activations. arXiv:2406.00799, 2024. · arXiv
- Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Floren- cia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. GPT-4 technical report. arXiv:2303.08774, 2023. · arXiv
- James P Anderson et al. Computer security technology planning study. Technical report, ESD-TR-73-51, 1972.
- Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv:2204.05862, 2022. · arXiv
- Iason Gabriel, Arianna Manzini, Geoff Keeling, Lisa Anne Hendricks, Verena Rieser, Hasan Iqbal, Nenad Tomašev, et al. The ethics of advanced AI assistants. arXiv:2404.16244, 2024. · arXiv
- Google. Gemini for Google Workspace, 2024.
- Frances S Grodzinsky and Herman T Tavani. Privacy in "the cloud" applying Nissenbaum's theory of contextual integrity. SIGCAS, 2011.
- Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Deven- dra Singh Chaplot, et al. Mistral 7B. arXiv:2310.06825, 2023. · arXiv
- Abhishek Kumar, Tristan Braud, Young D Kwon, and Pan Hui. Aquilis: Using contextual integrity for privacy protection on mobile devices. In IMWUT, 2020.
- OpenAI. ChatGPT plugins -OpenAI, 2023.
- Ethan Perez, Saffron Huang, Francis Song, Trevor Cai, Roman Ring, John Aslanides, Amelia Glaese, Nat McAleese, and Geoffrey Irving. Red teaming language models with language models. arXiv:2202.03286, 2022. · arXiv
- Ravi S Sandhu. Role-based access control. In Advances in computers. Elsevier, 1998.
- Fred B Schneider, Greg Morrisett, and Robert Harper. A language-based approach to security. Informatics: 10 Years Back, 10 Years Ahead, 2001.
- Viriya Taecharungroj. "What can ChatGPT do?" analyzing early reactions to the innovative AI chatbot on Twitter. Big Data and Cognitive Computing, 2023.
- Eric Wallace, Kai Xiao, Reimar Leike, Lilian Weng, Johannes Heidecke, and Alex Beutel. The instruction hierarchy: Training llms to prioritize privileged instructions. arXiv:2404.13208, 2024. · arXiv
- Alexander Wei, Nika Haghtalab, and Jacob Steinhardt. Jailbroken: How does llm safety training fail? In NeurIPS, 2023.
- Andy Zou, Zifan Wang, J Zico Kolter, and Matt Fredrikson. Universal and transferable adversarial attacks on aligned language models. arXiv:2307.15043, 2023. · arXiv
- Egor Zverev, Sahar Abdelnabi, Mario Fritz, and Christoph H Lampert. Can LLMs separate instructions from data? and what do we even mean by that? In SeT LLM Workshop at ICLR, 2024.
Cited by
On protecting the data privacy of Large Language Models (LLMs) and LLM agents: A literature review
Yan, B., Li, K., Xu, M., Dong, Y., Zhang, Y., Ren, Z., & Cheng, X. (2025) · High-Confidence Computing · doi:10.1016/j.hcc.2025.100300 · Cited by 82
The Emerged Security and Privacy of LLM Agent: A Survey with Case Studies
He, F., Zhu, T., Ye, D., Liu, B., Zhou, W., & Yu, P. S. (2024) · arXiv · doi:10.48550/arxiv.2407.19354 · Cited by 60
The Emerged Security and Privacy of LLM Agent: A Survey with Case Studies
He, F., Zhu, T., Ye, D., Liu, B., Zhou, W., & Yu, P. S. (2026) · ACM Computing Surveys · doi:10.1145/3773080 · Cited by 58
“This technique facilitates the customization of privacy-utility trade-offs through a user-specified hyperparameter, effectively regulating the rates at which memorized content is extracted.”
SoK: The Privacy Paradox of Large Language Models: Advancements, Privacy Risks, and Mitigation
Shanmugarasa, Y., Ding, M., Chamikara, M. A. P., & Rakotoarivelo, T. (2025) · ACM Asia Conference on Computer and Communications Security (ASIA CCS) · doi:10.1145/3708821.3733888 · Cited by 62
Defeating Prompt Injections by Design
Debenedetti, E., Shumailov, I., Fan, T., Hayes, J., Carlini, N., Fabian, D., Kern, C., Shi, C., Terzis, A., & Tramèr, F. (2026) · 2026 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML) · doi:10.1109/satml68715.2026.00040 · Cited by 686
Get My Drift? Catching LLM Task Drift with Activation Deltas
Abdelnabi, S., Fay, A., Cherubin, G., Salem, A., Fritz, M., & Paverd, A. (2024) · 2025 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML) · doi:10.1109/satml64287.2025.00011 · Cited by 91
“Numerous system-based defenses (e.g., [23]) mitigate data leakage and exposure, as a result of context hijacking and indirect prompt injection, via task-specific data minimization that allows access to task-specific data only.”
Fully Autonomous AI Agents Should Not be Developed
Mitchell, M., Ghosh, A., Luccioni, A. S., & Pistilli, G. (2025) · arXiv · doi:10.48550/arxiv.2502.02649 · Cited by 11
Leaky Thoughts: Large Reasoning Models Are Not Private Thinkers
Green, T., Gubri, M., Puerto, H., Yun, S., & Oh, S. J. (2025) · Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2025.emnlp-main.1347 · Cited by 10
Self-citationContextual Agent Security: A Policy for Every Purpose
Tsai, L., & Bagdasarian, E. (2025) · Workshop on Hot Topics in Operating Systems · doi:10.1145/3713082.3730378 · Cited by 99
Self-citationDesign Patterns for Securing LLM Agents against Prompt Injections
Beurer-Kellner, L., Buesser, B., Creţu, A.-M., Debenedetti, E., Dobos, D., Fabian, D., Fischer, M., Froelicher, D., Grosse, K., Naeff, D., et al. (2025) · arXiv · doi:10.48550/arxiv.2506.08837 · Cited by 2
“…et al., 2024; Chen et al., 2024; Zverev et al., 2024; Willison, 2023a; Yi et al., 2023; Zou et al., 2024), to principled system-level isolation mechanisms (Bagdasarian et al., 2024; Balunovic et al., 2024; Abdelnabi et al., 2025b; Willison, 2023b; Wu et al., 2025; Debenedetti et al., 2025).”
Gao, H.-A., Geng, J., Hua, W., Hu, M., Juan, X., Liu, H., Liu, S., Qiu, J., Qi, X., Wu, Y., et al. (2025) · arXiv · doi:10.48550/arxiv.2507.21046 · Cited by 407
Progent: Securing AI Agents with Privilege Control
Shi, T., He, J., Wang, Z., Li, H., Wu, L., Guo, W., & Song, D. (2025) · arXiv · doi:10.48550/arxiv.2504.11703 · Cited by 389
Leaky Thoughts: Large Reasoning Models Are Not Private Thinkers
Green, T., Gubri, M., Puerto, H., Yun, S., & Oh, S. J. (2025) · arXiv · doi:10.48550/arxiv.2506.15674 · Cited by 3
Self-citationPrivCollab-Agent: Privacy-Preserving Multi-Agent Collaboration Under Partial Information
Jiang, Y., Xiao, Z., Lin, O., Gu, Z., & Yang, Z. (2026) · International Conference on Artificial Intelligence and Electromechanical Automation (AIEA) · doi:10.1109/aiea70743.2026.11632865 · Cited by 7
“Existing approaches to LLM privacy either focus on single-agent settings, such as AirGapAgent [7], or address training-time concerns like differential privacy [8].”
Characterizing Unintended Consequences of GUI Agents For Web Browsing
Zhang, S., Chen, J., Gao, Z., Gao, J., Yi, X., & Li, H. (2026) · CHI Conference on Human Factors in Computing Systems · doi:10.1145/3772318.3790696 · Cited by 20
“Concurrently, technical efforts have produced specific mitigation strategies, such as constrained environments like AirGapAgent [5], and frameworks for testing tool integration, exemplified by ToolEmu [95].”
Contextual Integrity in Large Language Models: A Review
Hassanpour, A., & Yang, B. (2026) · Journal of Cybersecurity and Privacy · doi:10.3390/jcp6020074 · Cited by 1
“Some systems, such as AirGapAgent [24] and CPPLM [25], define contextual privacy scores that take the task and scenario into account, measuring not just whether sensitive data was revealed, but whether it was necessary to the interaction.”
InfluentialJenkins, A. D. G., Bagchi, P., Curtis, H., Seymour, W., Coté, M., & Such, J. M. (2026) · Designing Interactive Systems Conference · doi:10.1145/3800645.3812975 · Cited by 1
“Current approaches to integrating privacy into LLMs often focus on a delicate balance between utility and privacy [6, 24, 53].”
Choong, T. W., Hsieh, W., & Leu, J. (2026) · Applied Sciences · doi:10.3390/app16157776 · Cited by 1
Privacy Perception and Protection in Continuous Vision-Language Models Interaction (Position Paper)
Xu, A., Arai, H., & Yatani, K. (2025) · doi:10.1145/3733816.3760749
PrivSniffer: Graph-based Contextual Privacy Leakage Detection for User-Generated Texts
Ye, H., Xiang, L., Huang, N., Yu, D., Zhang, L., & Wang, G. (2026) · International World Wide Web Conference (WWW) · doi:10.1145/3774904.3792549
Zhang, S., Yang, J., & Li, A. (2026) · International Journal of Computational Intelligence Systems · doi:10.1007/s44196-026-01431-8
“As these sys - tems scale, issues of reliability, governance, and privacy protection become increasingly important for real-world deployment [56, 67, 68].”
Can Large Language Models Really Recognize Your Name?
Pham, D., Kairouz, P., Mireshghallah, F., Bagdasarian, E., Pham, C. M., & Houmansadr, A. (2026) · ACM Conference on Fairness, Accountability, and Transparency (FAccT) · doi:10.1145/3805689.3806747 · Cited by 8
“In our experiments, when we ask LLMs to detect and classify names in the example into categories such as person, location, organization, etc., most LLMs would determine “Adomite” as a substance, not a person.”
Self-citationSite Isolation is Dead: How Site Isolation is Broken in Agentic Browsers and Extensions
Lee, S., Keum, S., Lee, C. W., Shin, D., Hong, S., Lee, B., & Son, S. (2026) · IEEE Symposium on Security and Privacy (S&P) · doi:10.1109/sp63933.2026.00241 · Cited by 2
“With the rapid increase in attacks targeting LLM agents across various domains [46], there is a growing need to develop robust safeguards for these agents [18], [62], [66].”
Hu, S., Kostadinov, E., Wang, H., & Felder, L. (2026) · doi:10.1145/3786169.3788400
Agentic AI Unleashed: Power, Promise, and Ethical Frontiers
Wang, M., Wang, Y., & Ma, Q. (2026) · Lecture notes in computer science · doi:10.1007/978-981-92-3761-6_3
Emerging Risks of Conversational AI
Kalirai, M., Wei, C., Mildner, T., Zargham, N., Höhn, S., Desai, S., Lee, M., Candello, H. C. D. S. P., & Kuzminykh, A. (2026) · ACM Conference on Conversational User Interfaces (CUI) · doi:10.1145/3816046.3816322
A Comparative Survey of Security Risks in AI Systems: From LLMs to AI Agents and Embodied Agents
Wu, B., Li, Q., Zhou, C., Wang, T., & Ji, S. (2026) · ACM Computing Surveys · doi:10.1145/3837083 · Cited by 4
Kantheti, B., & de Araújo, C. A. P. (2026) · AI · doi:10.3390/ai7090340 · Cited by 1
Duan, Y., Li, J., Goli, N., Ishimura, Y., Li, Y., Tida, U. R., & Jia, Z. (2026) · High-Confidence Computing · doi:10.1016/j.hcc.2026.100428
Alhwikem, F., Khan, A., & Jaskani, F. H. (2026) · Symmetry · doi:10.3390/sym18091572
“AirGapAgent [8] uses a data-minimizer LLM in front of a downstream LLM to limit an agent’s access to user data per task.”
InfluentialBuildingChat: Enabling User Interactions with General-Purpose Sensing Infrastructure for Buildings
Patidar, P., Sitaraman, A., Weinshel, B., Zhou, H., & Agarwal, Y. (2026) · Proceedings of the ACM on Interactive Mobile Wearable and Ubiquitous Technologies · doi:10.1145/3831994 · Cited by 1
Local Models, Global Risk: Assessing Emerging Threats in Local AI APIs in Browsers
Moti, Z., Mehrvarz, M., Vlummens, T., Shaji, G., & Acar, G. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-38702-8_18
Kitahata, T., Seki, K., & Nadamoto, A. (2026) · Lecture notes in computer science · doi:10.1007/978-981-92-5696-9_28
Leak Less by Thinking More: Test-Time Scaling for Contextual Privacy in LLM Reasoning
Wu, Z., Zhang, Q., Lou, J., & Chen, C. (2026) · International Joint Conference on Neural Networks (IJCNN) · doi:10.1109/ijcnn69854.2026.11729472
Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks
Schmotz, D., Beurer-Kellner, L., Abdelnabi, S., & Andriushchenko, M. (2026) · arXiv · doi:10.48550/arxiv.2602.20156
“Recent work has begun operationalizing CI for LLM-based agents (Bagdasarian et al., 2024; Ghalebikesabi et al., 2025; Yi et al., 2025; Gomaa et al., 2025; Shao et al., 2024).”
Metadata
- Authors
- Bagdasarian, E., Yi, R., Ghalebikesabi, S., Kairouz, P., Gruteser, M., Oh, S., Balle, B., & Ramage, D.
- Affiliations
- Google (United States) (US)
- Google DeepMind (United Kingdom) (GB)
- ORCID
- Venue
- Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security
- Publisher
- ACM
- Published
- 2024-12-02
- Pages
- 3868-3882
- ISSN
- 1543-7221 (ISSN-L)
- OpenAlex
- W4405182239
- Semantic Scholar
- 50a78ce0151b551ca7287ce946e44b2cd5b8a684
- Cited by
- 28
- References
- 37
- Citations by year
- 2026: 22 · 2025: 6
- FWCI
- 8.26
- Type
- conference paper
- Language
- en
- Open access
- bronze
- doi.org
- Locations
- ACM SIGSAC Conference on Computer and Communications Security (CCS) (publishedVersion)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Privacy-Preserving Technologies in Data
- Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
- Social Sciences › Sociology and Political Science › Privacy, Security, and Data Protection
- Keywords
- chatbots, large language models, privacy preservation, contextual integrity, information flow control, data loss prevention, access control, threat model, third-party applications
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.