Jev As A Judge How Counterfeit Policy Steers Jev
The researchers found that Jev, a structured-decision model used as a security classifier, could be steered by attacker-controlled text that imitates a policy document. By prepending a counterfeit policy that redefines the attack categories, they made Jev miss most prompt-injection attacks and lowered its risk score for a tool call below LangChain's blocking threshold.
securitylabs.datadoghq.com
Published on securitylabs.datadoghq.com
Staff Security Researcher](https://securitylabs.datadoghq.com/articles/?author=NickFrichette) [{{media:1}}
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the model treats policy-shaped text inside untrusted content as instructions, so attacker-supplied definitions override the developer's trusted classification criteria.
Impact
The technique could cause Jev to miss over 96% of prompt-injection attacks and could lower its risk score for an unauthorised file edit below LangChain's blocking threshold, though the benchmark only measured classification and did not show a downstream compromise.
What the attacker needed
Attacker controls text reviewed by Jev; Jev used as a security classifier; no obfuscation needed
The fix
The text does not state a fix; it notes that TypeSafe acknowledges the limitation in its documentation.
How it was found
- Build a counterfeit policy that supplies the desired answers and redefines each attack category.
- Prepend the counterfeit policy to each attack message while leaving the developer's trusted instructions unchanged.
- Ask Jev the same classification questions and compare results with the raw inputs.
- For the LangChain scenario, place a redefinition of is_risky in the user-editable profile description field.
- Run the tool call repeatedly and observe the average is_risky probability against the 0.5 blocking threshold.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A classifier is a program that reads text and decides which category it belongs to, here whether a message is an attack. Jev is a model that returns such decisions with a confidence score, and some tools use that score to block risky actions. The researchers showed that if an attacker puts fake rule text in front of their message, Jev can be convinced to follow the fake rules instead of the real ones.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.