NAACL 2025industry0 citations

QueryShield: A Platform to Mitigate Enterprise Data Leakage in Queries to External LLMs

Nitin Ramrakhiyani, Delton Myalil, Sachin Pawar, Manoj Apte, Rajan M A, Divyesh Saglani, Imtiyazuddin Shaik

Abstract

Unrestricted access to external Large Language Models (LLM) based services like ChatGPT and Gemini can lead to potential data leakages, especially for large enterprises providing products and services to clients that require legal confidentiality guarantees. However, a blanket restriction on such services is not ideal as these LLMs boost employee productivity. Our goal is to build a solution that enables enterprise employees to query such external LLMs, without leaking confidential internal and client information. In this paper, we propose QueryShield - a platform that enterprises can use to interact with external LLMs without leaking data through queries. It detects if a query leaks data, and rephrases it to minimize data leakage while limiting the impact to its semantics. We construct a dataset of 1500 queries and manually annotate them for their sensitivity labels and their low sensitivity rephrased versions. We fine-tune a set of lightweight model candidates using this dataset and evaluate them using multiple metrics including one we propose specific to this problem.

BibTeX
@inproceedings{ramrakhiyani-etal-2025-queryshield,
    title = "{Q}uery{S}hield: A Platform to Mitigate Enterprise Data Leakage in Queries to External {LLM}s",
    author = "Ramrakhiyani, Nitin  and
      Myalil, Delton  and
      Pawar, Sachin  and
      Apte, Manoj  and
      A, Rajan M  and
      Saglani, Divyesh  and
      Shaik, Imtiyazuddin",
    editor = "Chen, Weizhu  and
      Yang, Yi  and
      Kachuee, Mohammad  and
      Fu, Xue-Yong",
    booktitle = "Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 3: Industry Track)",
    month = apr,
    year = "2025",
    address = "Albuquerque, New Mexico",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.naacl-industry.30/",
    pages = "358--369",
    ISBN = "979-8-89176-194-0"
}