Most downstream consequences of prompt injections in agentic systems are caused by confused deputy problems, where an AI model treats untrusted input as authoritative instructions. Since there's no solution for prompt injection (yet), AI agents are now entering deterministic, provenance-based trust models using integrity labels to defend against untrusted (potentially malicious) actors influencing actions. But every label-based security system lives or dies on one question: when something claims to be trusted, who's actually vouching for it? Get that part right and you have SPF, DKIM, TLS, decades of infrastructure that just works. Get it wrong and you have spoofed email, forged certs, and a rather unpleasant afternoon.
Agent frameworks with provenance labels are now speed-running this exact question, and a lot of them don't have an answer. In this piece, we'll walk through one of our findings in Microsoft's Agent Framework, the FIDES middleware, because it's a clean instance of a mistake the whole ecosystem could make at scale (Case 126767).
What Microsoft FIDES actually does
FIDES (Flow Integrity Deterministic Enforcement System)[1] is Microsoft's deterministic answer to prompt injection, based on research by Costa and Köpf[2] (arXiv 2505.23643) and shipped as experimental middleware in agent-framework-core.
Every piece of content moving through an agent carries two labels: an integrity axis (trusted vs. untrusted) and a confidentiality axis (public / private / user_identity). Policy is enforced on those labels deterministically, outside the model, so a prompt injection can talk the model into anything it wants, but it can't talk the policy engine out of a rule. Untrusted content would not be able to authorize what the agent does in such a model. When labels combine, most-restrictive wins: one untrusted input taints the whole context. And under the shipped default (auto_hide_untrusted=True), untrusted tool results get quarantined into a hidden variable reference and the model sees [var_a1b2c3], never the raw payload.
It's a well-designed information-flow-control system, and IMO it's one of the better attempts at a deterministic control for prompt injection. Its implementation, however, rested on the assumption that a label describes the trust level of the data it's attached to, and that the data cannot describe itself.
As I was working on the report, it really reminded me of mass assignment[3]. The classic one would be User.update(params) binding something like is_admin=true straight off a request body. This is the same underlying move, where attacker-controlled data is bound directly onto an authority-carrying field (integrity) with no whitelist between the two. And mass assignment (CWE-915)[4] is understood as a real defect whether or not a given instance chains all the way to admin: the unfiltered bind is the vulnerability. Same situation in different fonts.
Forgery, bypass, or both? MSRC's reasoning
A more generalizable version of the vulnerability class we found is that an attacker can forge an authoritative trust label out of data they control.
Where I did push back is on MSRC's reasoning where they said FIDES is opt-in defense-in-depth, so defeating it just drops you to the pre-FIDES risk you'd already accepted. Declining source_integrity on transformation tools is the documented pattern for exactly the tool category this forgery targets. A mitigation whose own recommended configuration reintroduces the gap it exists to close is not risk-equivalent to never shipping the mitigation. A developer who followed the docs believes they're protected and isn't. More accurately, this could be put as "you're back where you started while being told you're not."
Our exchange included a code-level review with the original FIDES author, and they corrected one of their own stated premises when I pushed on it. My disagreement is with some of their reasoning, but I deeply appreciate the rigor behind it and their efforts.
The fix, and the broader finding we should all care about
A lot of classic API vulnerabilities are now making a comeback in agentic applications. The pot of gold at the end of this particular disclosure rainbow is that we know how to fix this, because we've fixed it before.
Email did it: SPF, DKIM, and DMARC exist precisely because the From: header is a string the sender types, and trusting it is how you get spoofed into oblivion. The fix was to verify the sender against a signature the sending domain controls and the recipient checks independently. TLS did it too: a certificate's claim about who it is means nothing; the signature chain rooted in a CA the site operator can't forge is what means something for security.
Web frameworks did it too. The answer to mass assignment (same as our finding, just one layer down) was the strong-parameters whitelist, an explicit declaration of which fields a request is allowed to bind, so is_admin simply cannot be set from the outside no matter what the body contains. Same shape of fix, one layer down.
If you're building agents, your information-flow control (IFC) implementation needs some form of that security invariant structurally. Every framework racing to ship autonomous tool-calling runs into untrusted content in, autonomous actions out, a trust label in the middle deciding which is which. One label gets flipped, the whole thing comes crashing down. As we all know, permission slips don't stop anyone who knows how to hold a pen. ;)
Want to see if your application's defences hold up against vulnerabilities like mass assignment that are making a comeback in agentic systems? See if your app can actually be exploited using apisec.
Responsible disclosure note: The tool-argument label-scan finding described here was reported to MSRC (Case 126767), initially triaged as Moderate, then closed as Defense-in-Depth; no CVE was issued. Related instances of the same provenance gap at other boundaries are being handled through coordinated disclosure and are intentionally not detailed here. Findings confirmed against agent-framework-core 1.11.0 through 1.15.0.
