← Lab /Security & privacy

Counterfeit policy prepended defeats Jev detection, cutting recall to 3.9% and bypassing gating

Inserting a counterfeit policy into untrusted input can cause Jev to misclassify attacks, reducing recall to 3.9% while maintaining 100% precision and bypassing LangChain's tool-risk gating.

Security & privacy Datadog Security Labs 15 Oct 2026 Attack Prototype evidence

Published as “Jev as a judge: How counterfeit policy steers Jev”

Why it matters

Embedding attacker-controlled policy definitions can render Jev ineffective as a security guard.

Summary

The researchers evaluated Jev on 12,295 prompt-injection samples and found it achieved 99.66% precision and 82.90% recall when used raw. By prepending a counterfeit policy that redefines attack categories, recall fell to 3.88% with zero false positives. They then applied the same technique to a LangChain tool-risk gating scenario, dropping the risk score from 0.893 (blocked) to 0.290 (allowed). Plain prompt-injection attempts did not lower the risk score, confirming the specific effectiveness of the counterfeit policy.

What they found 2

  1. Counterfeit policy prepended reduces true positives from 3,849 to 180 and false negatives from 794 to 4,463.

    “With the counterfeit policy prepended, true positives plummeted from 3,849 to 180 and false negatives increased from 794 to 4,463.”

  2. Recall drops to 3.88% while precision reaches 100% under the counterfeit policy.

    “The 100% precision with the counterfeit policy prepended indicates that Jev predicts attacks so rarely that it creates no false positives while still missing 96.12% of the attacks.”

Caveats 3

  • For plain prompt injection payloads, the average risk probability was 0.905, slightly above the baseline of 0.893.
  • We’d only been testing plain attacks. ... real-world attackers would obfuscate their prompts to avoid detection and improve the likelihood they would succeed in affecting the target model.
  • This benchmark evaluation tested whether Jev flagged the payloads as malicious, not whether those payloads successfully compromised an agent or LLM downstream of the Jev-as-a-judge service.

What’s new here 4

  • Demonstrates that a counterfeit policy can steer Jev to label attacks as benign, dropping recall from 82.90% to 3.88%.
  • Shows bypass of LangChain's tool-risk gating, reducing the risk probability from 0.893 to 0.290.
  • Evaluates across four public prompt-injection datasets totaling 12,295 samples.
  • Finds that standard prompt-injection techniques fail to lower risk scores, highlighting the uniqueness of the attack.