Adoption & procurement · Research feature

Enterprise AI Must Enforce Participant-Aware Access Control

While fine-tuning enhances performance by internalizing domain knowledge, it also introduces a critical security risk: leakage of confidential training data to unauthorized users.

Adapted from research by Shashank Shreedhar Bhatt, Tanmay Rajore, Khushboo Aggarwal and colleagues.

arXiv preprint revision · 2025-09-18 · Attribution & reuse
In this article
Editorial illustration of stacks of coins.

Authors’ overview

Large language models (LLMs) are increasingly deployed in enterprise settings where they interact with multiple users and are trained or fine-tuned on sensitive internal data. While fine-tuning enhances performance by internalizing domain knowledge, it also introduces a critical security risk: leakage of confidential training data to unauthorized users. These risks are exacerbated when LLMs are combined with Retrieval-Augmented Generation (RAG) pipelines that dynamically fetch contextual documents at inference time. We demonstrate data exfiltration attacks on AI assistants where adversaries can exploit current fine-tuning and RAG architectures to leak sensitive information by leveraging the lack of access control enforcement. We show that existing defenses, including prompt sanitization, output filtering, system isolation, and training-level privacy mechanisms, are fundamentally probabilistic and fail to offer robust protection against such attacks. We take the position that only a deterministic and rigorous enforcement of fine-grained access control during both fine-tuning and RAG-based inference can reliably prevent the leakage of sensitive data to unauthorized recipients. We introduce a framework centered on the principle that any content used in training, retrieval, or generation by an LLM is explicitly authorized for all users involved in the interaction. Our approach offers a simple yet powerful paradigm shift for building secure multi-user LLM systems that are grounded in classical access control but adapted to the unique challenges of modern AI workflows. Our solution has been deployed in Microsoft Copilot Tuning, a product offering that enables organizations to fine-tune models using their own enterprise-specific data.

Introduction

Large language models (LLMs) are increasingly being integrated into enterprise workflows to support tasks such as code completion, document generation, and email drafting—e.g. via modern AI productivity tools like Cursor AI, Microsoft Copilot, Google Gemini Advanced, etc. These tools are frequently deployed in enterprise settings with multi-user environments, where data is protected by strict access control mechanisms tied to individual user permissions. To enhance the effectiveness of these AI tools, enterprises often employ models that are trained or fine-tuned on internal data, which varies in sensitivity and is typically siloed across departments or users. While fine-tuning incorporates valuable domain-specific knowledge, it also introduces a critical risk: the potential leakage of confidential information to unauthorized users.

Models fine-tuned on sensitive information—such as HR records, internal policies or high-impact business strategies—may inadvertently reveal this information when users interact with the AI tools and query the models, particularly in environments with heterogeneous access privileges. Worse still, such leakage can occur not only through targeted extraction attacks but also unintentionally during routine interactions, like drafting emails or querying an assistant on personal and shared documents. Feedback from numerous business groups highlights that the risk of data leakage and the absence of robust security controls remain significant barriers to enterprise adoption of AI tools.

These risks are further amplified when fine-tuned models are integrated with Retrieval Augmented Generation (RAG) pipelines. In such systems, user prompts are augmented with documents retrieved based on query context, improving the response quality. However, if the retrieval mechanism fails to strictly enforce access control lists (ACLs) for all users involved in the interaction, it may introduce restricted content into the model’s context, leading to unauthorized disclosures. For instance, consider a scenario where Alice uses a RAG-based tool to draft a reply to Bob’s email. If ACLs for both Alice and Bob are not properly enforced, a malicious Bob can exploit the retrieval process to exfiltrate sensitive data—embedding hidden instructions in his email and then decoding the model’s response via steganographic techniques. Alarmingly, such attacks can succeed even when Bob’s incoming email and assistant’s outputs are subject to human review (§ 4.2).

We take the position that deterministic and provable enforcement of fine-grained access controls is essential for the safe deployment of LLMs in multi-user environments such as enterprises. This stands in direct contrast to probabilistic defenses—such as input sanitization, output filtering, system-level isolation, and training-level techniques—which, while useful, are fundamentally insufficient due to their lack of rigorous end-to-end guarantees. We advocate a simple and robust principle: RAG pipelines and fine-tuned models must enforce access control at every stage of processing, ensuring that any content incorporated into a model’s output is authorized for access by all intended recipients.

By reframing data security for LLMs as a problem of principled access control, we introduce a new design paradigm—one that prioritizes auditability and provable security guarantees. We also present a framework that demonstrates how access control can be enforced both during fine-tuning and at inference time within RAG pipelines.

Overview. First, we show that, in the absence of deterministic safeguards on fine-tuning data and fine-tuned model access, fine-tuned models are vulnerable to data extraction attacks—risks that existing defenses fail to mitigate (§2). We then introduce access control-aware fine-tuned models (§3), where the fine-tuning process inherits the permissions and ACLs of the underlying training data. Specifically, we enforce that a user gets access to a fine-tuned model if and only if they have access to all data used during fine-tuning. Naïvely, if all private data within an organization, that is subject to fine-grained access controls, is used for fine-tuning, it may result in no single user (or very few users) being authorized to access the resulting model. To address this, we formulate the joint selection of training data and authorized model users as the problem of finding bicliques in a bipartite graph. Our initial solution has been deployed in Microsoft’s Copilot Tuning, which enables customers to fine-tune models on their sensitive data. Finally, we study information leakage in LLM-assisted systems during inference in the presence of multiple users, and discuss how enforcing deterministic access checks provides a principled solution to eliminate information leakage (§4). Related work on data leakage attacks, existing defenses, and their limitations is discussed inline within the relevant sections and scenarios, rather than in a standalone section.

Data extraction attacks on fine-tuned models

Fine-tuning is the process of taking a pre-trained machine learning model—such as a large language model (LLM)—and continuing its training on a smaller, task-specific dataset. This allows the model to adapt to the nuances and requirements of a particular application or domain, improving its performance in that context. Fine-tuning allows enterprises to leverage their private, often sensitive data to create models tailored to their needs—for example, code completion using internal repositories and document generation following company-specific templates. While techniques like Retrieval-Augmented Generation (RAG) can provide application-specific context at inference time, fine-tuning has been shown to more effectively embed domain knowledge into a model. RAG is better suited as a complementary approach to support fine-tuned models rather than replace them. Additionally, fine-tuning can reduce the context needed during inference, which lowers inference costs.

This form of leakage arises from the very objective of fine-tuning: to enhance model performance by internalizing attributes of the training distribution. While prior work has demonstrated that models can memorize and regurgitate sensitive training data verbatim during inference, we emphasize that data leakage can occur even in the absence of exact memorization. Subtler forms of leakage—such as the paraphrased disclosure of sensitive content—can also arise due to the model’s generalization over restricted training signals. Importantly, the class of sensitive information under consideration extends beyond personally identifiable information (PII). It also encompasses business-critical data—such as internal policies, strategic plans, or confidential departmental communications—that may be selectively accessible within different organizational units. When a model is fine-tuned on data sourced from multiple such units without access control enforcement, it effectively flattens internal data silos, exposing restricted information to users across the enterprise regardless of their authorization level.

Inadequacy of current defense mechanisms. Despite the aforementioned risks, existing defense mechanisms remain inadequate for preventing the leakage of sensitive fine-tuning data—particularly in enterprise settings, where such data often encapsulates complex, structured information beyond memorizable facts or personally identifiable information. Defense strategies can be broadly classified by their intervention stage: (i) data-centric approaches that preprocess fine-tuning data to mitigate leakage risk, (ii) output-level methods that apply post hoc sanitization or filtering to model predictions, and (iii) training-level techniques that modify the learning dynamics or loss function to enhance robustness against leakage.

Data-centric approaches aim to mitigate leakage risks by preprocessing or sanitizing training data prior to fine-tuning. N-gram deduplication reduces memorization by eliminating repeated sequences, while data scrubbing techniques target the removal of personally identifiable information (PII). Obfuscation methods perturb the input distribution by injecting noise. Although such techniques can reduce the likelihood of memorizing specific data points, they do not offer any formal guarantees. Moreover, in enterprise settings—where fine-tuning data often encodes sensitive, structured information—these methods are insufficient and frequently inapplicable.

Output-level methods focus on post-processing or controlling model outputs at inference time to mitigate the risk of sensitive information disclosure. Techniques such as confidence masking introduce noise into model outputs to obscure potential memorized content, but often degrade utility without providing robust guarantees against leakage. Data Loss Prevention (DLP) tools aim to detect and prevent the exposure of sensitive content—such as PII, protected health information (PHI), or financial data—through pattern matching or rule-based classification. However, DLP methods are fundamentally limited: they cannot determine whether a model’s response to a particular user (e.g., Bob) is derived from training data that is inaccessible to that user. Crucially, they lack the ability to track fine-grained information flow from training data to specific model outputs.

Summary. Providing model access in a multi-user setting—where the model has been fine-tuned on sensitive data governed by fine-grained access controls—inevitably carries the risk of unintended data exposure. Existing defense mechanisms, whether applied at the input, output, or fine-tuning stages, lack end-to-end guarantees and fail to provide reliable protection against data leakage. This fundamental security gap remains a key barrier to the widespread adoption of fine-tuned LLMs in enterprise settings.

Access control aware fine-tuned models

In §3.1, we describe our security principle that provably prevents data leakage from fine-tuned models. Next, in §3.2, we discuss how access control lists (ACLs) can be used to realize this principle followed by a graphical representation of the problem that we need to solve. We then present several example solutions as proofs of concept (PoCs) that illustrate our approach to building useful fine-tuned models in multi-user environments (§3.3). One of these has been deployed in the AI assistant of a large enterprise solution provider for real-world customers.

The security principle

Enforcing our security principle when building fine-tuned models clearly requires careful examination of who has access to the underlying training data. To this end, we examine the access control lists (ACLs) associated with data in commonly used file systems, such as SharePoint sites, Google Workspace, and similar platforms. Next, we review a few definitions and provide a graphical representation of our problem.

Our approach to building useful fine-tuned models for multi-user environments

Real-world adoption. Building on the ideas outlined above for a maximal biclique, our initial solution (described in Appendix A) is publicly offered as part of Microsoft’s Copilot Tuning. This product enables large enterprise customers to train fine-tuned models on their proprietary data.

Eliminating information leakage in multi-user RAG systems

AI assistants are commonly enhanced with Retrieval-Augmented Generation (RAG), which supplements the LLM’s prompt with relevant context. We consider settings in which multiple users interact with AI assistants—providing inputs, receiving outputs, and often influencing shared system state. While the descriptions in this section primarily assume public LLMs for inference after the retrieval by the RAG, we also touch upon the implications of using fine-tuned models along with RAG in §4.4. Securing fine-tuned models in conjunction with RAG-based retrieval in multi-user settings is a highly complex challenge that demands rigorous, carefully designed, and deterministically enforced access control mechanisms to prevent unintended data exposure. Hence for ease of exposition, we use public LLMs for our discussion on multi-user RAG-based AI assistants (till we get to the end of §4.4).

We consider two representative scenarios: (a) an email assistant that helps a user draft replies to emails received from various senders, and (b) collaborative writing tools where multiple users co-author content using an LLM assistant. We start by focusing on the email assistant scenario, and later briefly outline how similar vulnerabilities manifest in collaborative writing tools.

Email Assistant with RAG + LLM

Consider an LLM-powered email assistant designed to help users draft, edit, and summarize emails. Retrieval-Augmented Generation (RAG) enriches the LLM’s prompt with documents from the user’s mailbox or Google Drive as in Google Gemini Advanced. We begin by describing two common modes in email assistants and how RAG operates in each mode.

In the agentic mode, the assistant acts as a drafting partner. When Alice invokes the system - for example, by saying “Help me draft a reply to Bob” — the assistant generates a candidate message for her review. Alice retains final control: she can edit, discard, or approve the draft. This review step provides a clear checkpoint, ensuring that no content is sent without Alice’s explicit consent22 2 As we will see later, even when Alice retains final control, an adversarial sender Bob can exfiltrate sensitive information from Alice’s inbox..

In contrast, the fully agentic mode removes the manual checkpoint entirely. When Alice issues a high-level directive, the assistant drafts and sends emails directly on her behalf. This maximizes convenience and speed, but places full trust in the assistant to avoid errors or unintended disclosures—even in sensitive contexts.

At the core of both modes is a RAG pipeline. The assistant first indexes Alice’s mailbox—subject lines, message bodies, and attachments—by embedding each item into a semantic vector space. When Alice issues a prompt, the system embeds this as well, and performs a semantic search over the index, retrieving the top-k most relevant items. These retrieved snippets are then prepended to the LLM prompt, grounding the model in specific details from past conversations, dates, or figures that enhance response quality.

While RAG can substantially improve assistant performance, it also broadens the attack surface: any document in Alice’s mailbox may be pulled into the LLM’s context if the retrieval mechanism is not carefully constrained. This vulnerability becomes particularly serious when an adversarial sender—say, Bob—injects a malicious prompt into an email, aiming to influence what the system retrieves and how it responds.

Information leakage in collaborative writing

Similar vulnerabilities arise in collaborative writing environments where multiple users co-author documents with the help of an LLM assistant. Here, a malicious Bob may embed a hidden prompt within the shared document—for instance, using invisible formatting or misleading markup. When Alice subsequently invokes the assistant to revise or improve the text, the system may draw on documents accessible only to Alice (e.g., via a RAG pipeline) to improve the quality of the output incorporating sensitive information into the revised content. If this information is embedded steganographically—e.g., disguised as part of a plausible sentence—Alice may not recognize the leak. When Bob later reads the co-authored document, he learns private details from Alice’s data.

Preventing cross-user information leakage via access control

This design ensures a system that provably protects confidentiality and avoids inadvertent information leakage. In multi-recipient settings—e.g., when Bob emails Alice and copies Charlie—permissions for all recipients (Alice, Bob, and Charlie) must be verified before retrieved content is incorporated into generation. Similarly, in collaborative writing tools, the permissions of all users with read access to the document must be validated prior to invoking the LLM on any supporting content. By enforcing such access control checks, the system guarantees that no user inadvertently learns information they are not authorized to access.

Access control for RAG-integrated fine-tuned models. When using access control for fine-tuning in tandem with RAG, the cornerstone principle of this combined system remains consistent: all information utilized in an interaction must be accessible to all active participants33 3 An active participant is any user involved in the interaction with the system.. Consider a scenario with multiple active participants. The system should only use a model that was fine-tuned solely on documents that all the active participants are commonly authorized to access. If a participant’s query triggers the RAG component, only those documents for which every active participant has access will be retrieved and added to the supplementary context. A practical challenge is that a fine-tuned model accessible to all active participants may not always exist. For example, in the email scenario from §4.1, Bob could be external to the organization. In such cases, the system must fall back to using a general-purpose public model. By adhering to the foundational principle of access control, the system inherently functions as a sandboxed environment, preventing any information leakage—whether through the fine-tuned model or RAG-provided data—to participants not explicitly authorized to access it.

Conclusion and future work

This work began with a central question: How can we safeguard confidentiality in modern AI workflows operating in multi-user environments such as enterprises—both during fine-tuning and at inference time through mechanisms like RAG? Our analysis reveals that existing defenses fall short, lacking the deterministic guarantees needed to prevent unauthorized data exposure. In response, we advocate for a principled approach rooted in fine-grained access control lists (ACLs), enforced deterministically across all stages of the AI pipeline. This framework provides strong end-to-end security guarantees and lays the groundwork for the safe, large-scale deployment of AI systems in enterprises handling sensitive information. We hope this paper makes a compelling case for deterministic enforcement of access-control of all active participants.

Several extensions are possible. When fine-tuning, some users or documents can have higher importance, which can be encoded as weights on the nodes of the bipartite graphs. When querying multiple models, the ACLs must be checked for each model. The ACLs can change over time: new users can get added and existing users can lose access. Security must be maintained even with such dynamic ACLs. The ACLs themselves can be incorrect: such misconfigurations must be detected and rectified.