Abstract
Large Language Models (LLMs) are rapidly becoming commodity components of larger software systems. This poses natural security and privacy problems: poisoned data retrieved from one component can change the model's behavior and compromise the entire system, including coercing the model to spread confidential data to untrusted components. Assuming each piece of information comes with an additional meta-label (such as low/high integrity labels), one promising approach is to tackle this problem at the system level via dynamic information flow (aka taint) tracking. Unfortunately, this approach of propagating the most restrictive input label to the output is too conservative for applications where LLMs operate on inputs retrieved from diverse sources. In this paper, we propose a novel, more permissive approach to propagate information flow labels through LLM queries. The key idea is to propagate only the input labels that were influential in generating the model output and to eliminate the labels of unnecessary inputs.
Introduction: The Challenge of Label Creep
In the rapidly evolving landscape of AI integration, LLMs act as the central processors of complex software systems, pulling data from emails, web searches, and internal databases. This "open-border" policy creates a significant security challenge. Standard computer security uses Information-Flow Analysis to track data labels (e.g., "Trusted" vs. "Untrusted"). However, traditional methods suffer from "label creep": if a function takes multiple inputs, the output is automatically assigned the most restrictive label.
In an LLM context, if a model summarizes a project based on ten internal documents and one random web search result, a naive system labels the entire summary as "untrusted." This makes the output unusable for further automated processing in secure environments. The core challenge is proving that the model ignored untrusted data and relied solely on high-quality sources, allowing for a more "permissive" label.
Methodology: Influence-Based Label Propagation
The proposed influence-based label propagator (LP) shifts focus from what the model could have read to what it actually used.
Utility as Influence
The system defines "influence" using model utility, specifically negative perplexity. A set of labels is considered sufficient if removing all documents that do not match those labels does not drop the model's utility beyond a small threshold ($\lambda$). If the model remains confident in its answer without a specific document, that document likely did not influence the result.
Lattice Search and Safety Guarantees
Security labels are treated as a lattice—a mathematical structure of partial orders. The system performs a search through this lattice to find the most permissive label that still allows the model to generate high-quality output.
To ensure safety, the system uses a "wrapper" approach: once a permissive label is identified, the LLM is rerun using only the documents matching that label. If the new output is consistent with the original, it is released with the more permissive label. This provides a hard guarantee that the output was not influenced by excluded data.
Experimental Evaluation
The approach was evaluated on three benchmarks: a synthetic key-value dataset with over 16,000 label combinations, a news article dataset comparing high and low integrity sources, and a realistic LLM agent dataset mimicking tool-calling (email, calendar, search).
Key Results
- Permissiveness: In the LLM agent setting, the system assigned a more permissive label than the naive baseline in over 85% of cases.
- Accuracy: On the synthetic dataset, the prompt-based propagator identified the exact minimal label set in 85.94% of cases.
- Output Consistency: Regenerated outputs maintained high alignment with originals (ROUGE-L > 0.85), confirming that permissive labeling does not sacrifice quality.
- Model Scaling: Interestingly, a 7B parameter model was nearly as effective as a 70B model for label propagation, suggesting that security "guard" models do not need to be excessively large.
Discussion and Future Work
While effective, the approach introduces computational overhead due to multiple LLM calls for perplexity calculation. Furthermore, the search heuristic assumes monotonicity—that more information is always better—which may not hold if an LLM is distracted by irrelevant data. Future work will focus on optimizing these costs and addressing adversarial "distraction" where an attacker provides untrusted data designed to mimic trusted sources.
This research represents a significant step toward making LLM agents practical for enterprise environments requiring strict data silos and varying trust levels.
Summary updated