Towards Trustworthy and Governable Multi-Agent Systems: Detection and Mitigation of Prompt Injection and Tool-Call Hijacking in Enterprise DevOps Pipelines
This paper evaluates a deterministic mediator in simulated enterprise DevOps pipelines that blocked far more attacks than audit-only monitoring (12 of 132 payloads executed vs 132 of 132), though against per-step authorization with validated approvals the difference in attack families (10 vs 8 of 11) was not statistically significant (p = 0.50) with most gain coming from approval validation, and it came at a substantial cost in blocked benign work.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the modern digital workplace, software systems increasingly rely on intelligent assistants, often called agents, to perform complex tasks. These agents can read documents, check code, and send messages to other services, acting as a bridge between human intent and machine execution. However, a new vulnerability has emerged: an attacker does not need to break the agent's security locks directly. Instead, they can hide instructions inside ordinary-looking data, such as a bug report or a code update, that the agent reads. When the agent processes this hidden instruction, it may be tricked into performing a sequence of actions that, while each one seems harmless on its own, combine to steal secrets or damage systems. This is known as indirect prompt injection. The core problem is that traditional security checks look at each action in isolation. They see a request to read a file and a request to send a message and approve both, failing to notice that the combination creates a dangerous path.
Researchers Krishna Murthy Pradhan and Durga Prasad Mahapatra set out to solve this by building a system that watches the entire journey of an agent, not just its individual steps. They created a digital mediator, a gatekeeper that sits between the agent and the tools it uses. This mediator does not just check if a single tool call is allowed; it looks at the history of what the agent has done so far. If an agent reads a secret file and then, a few steps later, tries to send data to an outside website, the mediator recognizes the pattern. It understands that the sequence itself is the threat, even if the final step has a valid permission slip. To test this, the researchers built a simulated environment mimicking a corporate software development pipeline. They ran hundreds of scenarios, including 132 specific attack attempts designed to steal data or tamper with systems, alongside many normal, safe operations.
The results showed that a system relying only on recording what happened after the fact was completely ineffective; in their tests, every single one of the 132 attack attempts succeeded because the damage was already done by the time the log was written. In contrast, the new mediator blocked 120 of the 132 attack attempts. However, when compared to a system that uses per-step authorization with validated approvals, the difference in blocking attack families (10 out of 11 versus 8 out of 11) was not statistically significant; most of the improvement came from the process of validating approvals. It is important to note that the mediator did not block all attacks; one specific family of attacks involving pipeline tampering was not blocked and instead escalated.
This heightened security came with a substantial cost to legitimate work. The system was very cautious: it incorrectly blocked 2 out of 8 types of normal, safe operations, and 6 out of 8 types required human review. Additionally, 748 out of 1,054 authorized cases were blocked under the broad reading. The researchers found that by keeping a detailed map of how data moved from one tool to another, rather than just remembering that a secret was touched at some point, they could reduce some of these false alarms. This "lineage" approach allowed the system to distinguish between a dangerous data leak and a harmless action that happened to occur after a secret was read.
The study also examined the reliability of the system's own records. The researchers created a digital trail for every action, linking each step to the one before it like a chain. They tested whether this trail could be altered to hide a crime. They found that while the system could easily detect simple changes or accidental errors in the log, a sophisticated attacker who could rewrite the entire history and recalculate the links could create a perfect forgery that the system would accept as true. The only way to prevent this, the researchers concluded, is to anchor the very beginning of the log in a separate, secure location outside the system itself. Without this external anchor, the digital trail is vulnerable to a coherent rewrite.
Ultimately, the work demonstrates that watching the path an agent takes is more effective than watching its individual steps, but it is not a perfect solution. The system successfully blocked many data theft attempts, but it still requires human review for many borderline cases and can be evaded by certain methods, such as an internal relay or an untracked-channel probe. The researchers emphasize that their findings are based on controlled simulations with scripted scenarios using author-built labels and constants, rather than live attacks on real-world LLM agents. They also note that the 10-of-11 success rate assumes a reviewer is present to approve every escalation. The researchers suggest that the most practical next step is to implement validated approvals first—ensuring they are scoped to a destination, expiring, and single-use—and then add path memory only when agents actually transform or hand off retrieved secrets. While the technology offers a significant step forward in making these intelligent assistants more trustworthy, it remains a tool that must be carefully managed, with the understanding that no single layer of defense can guarantee total safety.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.