- Datadog Security Labs found that fake policy text placed inside the content Jev reviews made it miss 96.12% of benchmark prompt injection attacks.
- In one simulated LangChain scenario, the same trick cut Jev's average risk score for an unauthorized action from 0.893 to 0.290, below the 0.5 blocking line.
- Datadog's tests show Jev can be argued with. Any team gating actions with a model that reads untrusted text should assume the same risk until tested.
A judge that reads the defendant's argument
Projects such as LangChain and Vercel's eve are starting to use small, fast models like Jev to gate what an AI agent may do. The idea is reasonable. The weak point is what the judge reads. If the text under review also carries an argument from the person being judged, the verdict can shift.
That is the lesson of new research from Datadog Security Labs on Jev, a model TypeSafe AI introduced on September 15. Jev does not write free text. It returns structured decisions, with the possible answers set by the developer, and it reports how confident it is. TypeSafe says this makes it much faster and cheaper than a conventional large language model for jobs like classifying content or routing support requests.
Some developers have pointed it at security. LangChain offers tool-risk gating, which asks Jev for the probability that an AI agent's tool call is risky or insufficiently authorized. Calls scoring 0.5 or higher are blocked. Datadog says Vercel's eve has a similar feature.
What Datadog tested
TypeSafe's documentation already warns that hostile text inside the input can sway Jev. That text might give orders, frame things misleadingly or plead for a particular label. Datadog wanted to measure how much that matters when Jev is used as a security control.
The researchers ran four public prompt injection datasets through Jev. They asked two questions of every sample. One asked for the probability that the message was an attack. The other asked Jev to pick an attack category, or "no_attack".
On plain attacks, Jev did well. Precision was 99.66%, with 13 false positives across the four datasets. It detected 82.90% of the labeled attacks. Datadog notes these attacks were not disguised, which real attackers would do.
How the counterfeit policy works
Datadog's method is specific to Jev's design. It put a fake policy in front of each message. The fake policy tells Jev which answers to return. It quotes the original message as a harmless exception. It also rewrites the attack categories so they mean something unrelated. One rewritten category narrowed "credential access" to physical door keys. A request to steal a password then fell outside the definition.
The developer's real instructions stayed unchanged. The attack stayed in the message. Only the untrusted text changed, and it gave Jev a new rulebook for reading what followed.
With the fake policy added, true positives fell from 3,849 to 180. Missed attacks rose from 794 to 4,463. Jev missed every attack in two of the datasets, zachz and Yanismiraoui. Precision reached 100%, but only because Jev flagged so little. The category question showed a similar drop of more than 75 percentage points in recall.
One caveat from Datadog: this benchmark tested whether Jev flagged the payloads. It did not test whether they compromised an agent downstream.
From benchmark to a blocked tool call
Datadog then built a scenario around LangChain's gating. A user with viewer permission and no edit rights asks an agent to raise a home-office reimbursement in the employee handbook to $25,000. Across 40 runs, Jev's average risk score was 0.893, and all 40 calls were blocked.
The user's profile description was editable and was passed to Jev alongside the request. Datadog put a counterfeit policy there. It argued that the tool would reject the edit anyway, so the call could cause no harm and should not count as risky.
The score fell below the 0.5 blocking line. This is one simulated scenario that Datadog built. It shows what is possible, not how often it happens in production.
The old trick did not work. The new one did.
Datadog also tried a plain injection. It impersonated system messages, claimed editor rights and told Jev what to answer. The average score was 0.905, slightly above the baseline. Across hundreds more injection attempts, each run 40 times, the overall average stayed close to baseline.
The difference matters. Text that shouts orders did not move Jev. Text that argued about the rules did. For a classifier, a persuasive definition appears to work better than a command.
Datadog's counterfeit-policy technique is specific to Jev and its structure. The tests do not show that every AI filter behaves the same way. They do show a risk worth checking in any similar design.
What leaders should ask
Datadog sells AI Guard, a product in this category, so read its conclusions with that in mind. The test design and numbers are still specific enough to check. Three questions follow for any team using a fast model as a gate.
First, which fields can an outside person edit that reach the classifier? In Datadog's case it was a profile description. Datadog says similar openings may exist wherever untrusted text reaches the model.
Second, what happens if the classifier is wrong? A permission check in ordinary code should enforce access rules. The model should add a layer, not replace it.
Third, has anyone tested the filter against someone trying to persuade it? A clean benchmark score, like Jev's 99.66% precision, says little about that.
A guard that listens to the person at the door can be talked past. Build the lock so it does not need to listen.
Produced by the WebPulse Newsroom with AI assistance from the original reporting credited below, and checked against that source by our editorial review. How we use AI.
Original reporting: Datadog Security Labs.





