Abstract
Agents controlled by Large Language Models (LLMs) can assist with natural language tasks across domains and applications when given access to confidential data. When such digital assistants interact with their potentially adversarial environment, confidentiality of the data is at stake. We investigated whether an LLM-controlled agent can, in a manner similar to humans, consider confidentiality when responding to natural language requests involving internal data. For evaluation, we created a synthetic dataset consisting of confidentiality-aware planning and deduction tasks in organizational access control. The dataset was developed from human input, LLM-generated content, and existing datasets. It includes various everyday scenarios in which access to confidential or private information is requested. We utilized our dataset to evaluate the ability to infer confidentiality-aware behavior in such scenarios by differentiating between legitimate and illegitimate access requests. We compared a prompting-based and a fine-tuning-based approach, to evaluate the performance of Llama 3 and GPT-4o-mini in this domain. In addition, we conducted a user study to establish a baseline for human evaluation performance in these tasks. We found humans reached an accuracy of up to 79%. Prompting techniques, such as chain-of-thought and few-shot prompting, yielded promising results, but still fell short of real-world applicability and do not surpass human baseline performance. However, we found that fine-tuning significantly improves the agent’s access decisions, reaching up to 98% accuracy, making it promising for future confidentiality-aware applications when data is available.
TL;DR
As LLMs transition from chatbots to autonomous agents with access to sensitive data, their ability to "keep a secret" becomes a critical security concern. This paper introduces a new benchmark for confidentiality-aware agents and demonstrates that while standard prompting often fails to match human intuition, fine-tuning allows models to achieve near-perfect accuracy (98%) in making complex access control decisions.
What Problem Does This Paper Address?
We are increasingly delegating tasks to LLM-controlled agents—digital assistants that can read our emails, manage our calendars, or access corporate databases. However, these agents often interact with potentially adversarial environments. If a marketing manager asks your AI assistant for the CEO’s private schedule to "coordinate a meeting," should the agent provide it?
The challenge is that access control in the real world is rarely a simple "yes/no" list; it involves confidentiality deduction. Humans intuitively understand that an IT security team has a legitimate reason to see breach data, while a marketing team likely does not. This paper investigates whether LLMs can replicate this human-like reasoning to protect data without being explicitly told every single rule for every possible scenario.
Methods
The researchers evaluated two primary LLMs—Llama 3 (8B) and GPT-4o-mini—using three distinct approaches:
- Prompting Strategies: They tested various configurations, including "No Constraints" (relying on the model's internal "common sense"), "Oracle" (providing the exact relevant rule), and "Rulebook" (providing a large set of rules and asking the model to find the right one). They also utilized Few-Shot prompting and Chain-of-Thought reasoning.
- Retrieval-Augmented Logic: To handle large rulebooks, they compared simple BERT-based similarity against Dense Passage Retrieval (DPR) to see if the agent could accurately pull the correct confidentiality constraint from a database before making a decision.
- Fine-Tuning: They used LoRA (Low-Rank Adaptation) to fine-tune Llama 3 on a domain-specific training set to see if the model could "learn" the underlying logic of organizational access control.
- Human Baseline: They conducted a user study with 23 graduate students to establish a performance ceiling, finding that even humans struggle with the ambiguity of natural language requests.
Datasets
Because real-world corporate "leak" data is hard to find, the authors created a novel synthetic benchmark based on the Enron email dataset. They used GPT-4o-mini to perturb these emails, creating 1,864 "single-turn" access requests and 300 "multi-turn" dialogues. Each data point includes a sender, a request for specific data, a governing constraint (the "rule"), and a ground-truth label (Allow/Deny).
Key Results
- Human Performance: Humans reached 79% accuracy when given explicit rules, but dropped to 56% without them, highlighting that "intuitive" privacy is highly subjective.
- Prompting Performance: GPT-4o-mini (Few-Shot) achieved a respectable 90% accuracy in the "Oracle" setting where the rule is provided directly in the prompt. However, standard prompting generally struggled to surpass human baselines in more complex scenarios.
- Fine-Tuning Success: The most striking finding was that fine-tuning transformed Llama 3 into a near-perfect gatekeeper, reaching 98% accuracy and significantly outperforming its vanilla version.
Key Insights and Ideas
- The "Common Knowledge" Gap: Without explicit rules, both humans and LLMs perform poorly. This suggests that organizational privacy requires explicit policy rather than just "common sense."
- Multi-turn Difficulty: Models generally performed worse on multi-turn dialogues than single emails, as the added conversational context made it easier for the agent to lose track of the core confidentiality constraint.
- Retrieval Complexity: Simple keyword matching for rules often failed because it focused on irrelevant details rather than semantic intent. DPR proved much more robust for identifying the correct privacy constraints.
Limitations and Future Work
The study relies on synthetic data, which may be more structured than real-world social engineering. Future research will focus on testing these agents against active social engineering, scaling rulebooks using advanced RAG architectures, and investigating how models handle conflicting privacy policies.
Summary updated