Skip to main content

Attack Policy Bias Skews AI Monitor Evaluation Results

Architecture analysis of AI monitor evaluation bias, showing how attack policy selection changes false negative rates from 0.5% to 23.0% and how to harden

AI SECURITY Deep Dive
Field Note · The Short Version 6 min read

AI monitor false negative rates vary from 0.5% to 23.0% depending on attack policy selection, so evaluations must use multiple optimized attack policies and isolation controls rather than single-method proxy transcripts.

Key Numbers & Verified Specs

7 metrics
Metric / Spec Verified Finding Source
False negative rate range across RL optimization levels 0.5% to 20.8% arxiv.org
False negative rate range across attack methods at best optimization 6.4% to 23.0% arxiv.org
Target monitor evaluated in case study held-out GPT-5.4 arxiv.org
OWASP LLM Top 10 category for prompt injection LLM01: Prompt Injection owasp.org
OWASP LLM Top 10 category for excessive agency LLM08: Excessive Agency owasp.org
NIST AI RMF function for evaluation governance Measure and Govern nist.gov
Guardrail sidecar latency budget < 50 ms p99 per agent turn (internal engineering SLO, not a paper result) arxiv.org
Jump to section (6) +

AI monitors are classifiers that flag dangerous behavior by AI agents. Security teams often evaluate them against transcripts generated by attack policies that act as proxies for dangerous behavior in deployment. Recent research shows this practice is fragile. Measured false negative rates are highly sensitive to both the method used to generate attack policies and the level of optimization applied within that method. In a case study using an ex-production OpenAI monitor, the false negative rate ranged from 0.5% to 20.8% across optimization levels of a single reinforcement learning method, and from 6.4% to 23.0% across methods at their best observed optimization level. Every attack policy was developed against proxy monitors only, and all reported results show attacks transferring to the held-out GPT-5.4 target monitor.

This means an evaluation using only basic attack methods can give false confidence that a monitor is strong. The choice of proxy can change an evaluation's conclusion. Reading results as evidence about deployment performance requires a separate legitimacy argument for why the proxies are informative, including justification of conservativeness. That argument remains an open problem.

Threat Model & Attack Surface Matrix

Attack SurfaceBlast RadiusConcrete Control
Monitor evaluation transcriptsFalse confidence in safety; undetected agent evasion in productionEvaluate against multiple attack policies with documented optimization levels; require conservativeness justification
Indirect prompt injection via fetched web or tool outputsData exfiltration, unauthorized tool calls, privilege escalationSandbox tool execution, egress allow-lists, output schema validation, taint tracking on tool outputs
Multi-turn guardrail driftGuardrails weaken over conversation length; unsafe actions slip throughPer-turn guardrail re-evaluation, conversation state snapshots, drift alerts at turn 5 and turn 10
Unauthenticated MCP serversUnauthorized tool invocation, lateral movementMutual TLS, scoped OAuth tokens, per-tool capability allow-lists, audit logging
Data exfiltration channelsSensitive data leaked via agent outputs or tool resultsEgress proxy with DLP rules, allow-listed domains, output size limits, content inspection
Privilege escalation in autonomous agentsAgent exceeds intended authority, modifies production systemsLeast-privilege tool scoping, human-in-the-loop for write actions, separate evaluation and production credentials

Why Naive Prompt Filters Fail

Naive prompt filters assume attack traffic looks consistent across evaluations. The research shows attack policies introduce visible artefacts, such as reasoning about a side task absent from the instructions shown to the monitor. These artefacts affect monitor judgements. A filter tuned to block obvious injection strings misses optimized attack transcripts that look benign to the monitor but carry dangerous behavior.

Monitor evasion evaluations can mislead because the proxy transcripts are not the same as deployment behavior. If your red team uses only optimized prompting, you may measure a 6.4% false negative rate. If they switch to transcript editing, the same monitor may show 23.0%. The monitor did not change. The attack policy did. Security teams that report a single number to leadership are reporting an artifact of their evaluation design, not a property of the monitor.

This maps directly to OWASP LLM01 (Prompt Injection), where indirect injection arrives through fetched tool outputs, and OWASP LLM08 (Excessive Agency), where an agent acts beyond its intended authority. NIST AI RMF Measure and Govern functions require that evaluation results be traceable to documented attack policies before they are used as deployment evidence.

Defense-in-Depth & Sandbox Isolation Architecture

Split the system into a control plane and a data plane. The control plane manages policies, guardrails, and monitor configuration. The data plane executes agent turns, tool calls, and monitor scoring. Never let the data plane write to control plane configuration.

Use a sandbox for every tool call. The sandbox should enforce a read-only filesystem by default, network egress only to allow-listed domains, and no outbound DNS resolution outside the allow-list. Tool outputs are treated as untrusted input. They pass through a content inspection layer before reaching the agent context window.

Monitor scoring runs in a sidecar process. The sidecar receives the agent turn and tool results, returns a risk score, and logs the full transcript. If the sidecar is unavailable, the agent defaults to a safe action or requests human review. This fail-closed design prevents monitor outages from becoming automatic approval paths.

Multi-turn guardrail drift is detected by hashing the guardrail policy version at conversation start and re-evaluating every N turns. If the hash changes or the risk score trends upward across three consecutive turns, the conversation is escalated to a human reviewer.

Runnable Guardrail Policy / Verification Code

The following Rego policy enforces tool allow-listing and approval requirements for write and delete actions. It is designed for Open Policy Agent, which evaluates Rego against JSON input.

REGO24 lines
package agent.guardrail

default allow = false

deny[msg] {
    not input.action in {"read", "search", "summarize"}
    msg := sprintf("action %v is not in the allow-list", [input.action])
}

deny[msg] {
    input.action in {"write", "delete"}
    not input.approval == "human"
    msg := sprintf("action %v requires human approval", [input.action])
}

deny[msg] {
    not input.sandbox.read_only == true
    msg := "sandbox must enforce read-only filesystem"
}

deny[msg] {
    not input.monitor.fail_closed == true
    msg := "monitor must fail closed when sidecar is unavailable"
}

The verification script below checks that a monitor sidecar responds within the latency budget and returns a valid risk score. It does not generate attack payloads or bypass controls.

Python28 lines
import time
import urllib.request
import json

def verify_sidecar(endpoint: str, timeout_ms: int = 50) -> dict:
    payload = json.dumps({"turn": "safe test turn", "tool_results": []}).encode()
    req = urllib.request.Request(
        endpoint,
        data=payload,
        headers={"Content-Type": "application/json"},
        method="POST",
    )
    start = time.monotonic()
    try:
        with urllib.request.urlopen(req, timeout=timeout_ms / 1000) as resp:
            body = json.loads(resp.read())
    except Exception as exc:
        return {"status": "fail", "reason": str(exc)}
    elapsed_ms = (time.monotonic() - start) * 1000
    if elapsed_ms > timeout_ms:
        return {"status": "fail", "reason": f"latency {elapsed_ms:.1f}ms exceeds budget {timeout_ms}ms"}
    if "risk_score" not in body:
        return {"status": "fail", "reason": "missing risk_score field"}
    return {"status": "pass", "latency_ms": round(elapsed_ms, 1), "risk_score": body["risk_score"]}

if __name__ == "__main__":
    result = verify_sidecar("http://localhost:8080/score")
    print(json.dumps(result, indent=2))

Run this verification against every sidecar deployment. A failure means the sidecar is too slow or malformed, and traffic should be routed to a human reviewer until the issue is fixed.

Operational Tradeoffs & False-Positive Budget

Running multiple attack policies increases evaluation cost. If a single policy evaluation costs $2,000 in token usage, evaluating five policies at three optimization levels costs $30,000. Security teams must budget for this or accept narrower coverage.

False positives from guardrails block legitimate agent actions. Set a false-positive budget of 2% of agent turns. If the monitor blocks more than 2% of turns in a 24-hour window, tune the risk threshold rather than disabling the monitor. Disabling the monitor to reduce false positives removes the detection layer entirely.

Sandbox isolation adds latency. Expect 10 to 30 milliseconds of overhead per tool call for filesystem and network policy enforcement. Sidecar scoring adds another 20 to 50 milliseconds. For high-frequency agents making 100 tool calls per minute, this adds 3 to 8 seconds of latency per minute. Batch independent tool calls where possible to amortize the cost. These latency figures are internal engineering defaults chosen by the authors; the arXiv paper reports false negative rates only and does not provide a latency budget. Measure your own p99 latency under production concurrency before adopting these numbers as SLOs.

When not to use this architecture: If your agent only reads public data and never calls tools with side effects, the sandbox and sidecar overhead may not be justified. If you cannot staff human review for escalated conversations, fail-closed behavior will cause availability incidents. Do not deploy monitor-based guardrails without a documented incident response plan for monitor failures.

The research makes clear that monitor evaluation results are only as honest as the attack policies used to generate them. Security engineers should treat any single false negative rate as suspect until the attack policy selection is justified and multiple optimization levels are tested.

Sources

Reader Q&A

Frequently Asked Questions

Why does attack policy selection change monitor false negative rates?
Attack policies generate proxy transcripts that may contain visible artefacts, such as reasoning about a side task absent from monitor instructions. These artefacts affect monitor judgements, so a weak policy produces benign-looking transcripts while an optimized policy exposes evasion paths the monitor misses.
Can a single attack method prove a monitor is safe for deployment?
No. The paper shows measured false negative rates range from 0.5% to 20.8% across optimization levels of one method and from 6.4% to 23.0% across methods. Deployment safety requires multiple attack policies plus a legitimacy argument that proxies are informative and conservative.
What controls reduce risk when monitor evaluations are biased?
Use defense-in-depth: sandbox tool execution, egress allow-lists, output schema validation, multi-turn guardrail drift detection, and human-in-the-loop review for high-privilege actions. Treat monitor scores as signals, not authoritative safety decisions.

Bibliography & Verification

Primary Sources & References

5 cited sources
  1. [01] arxiv.org list / cs / recent
  2. [02] deeplearn.org arxiv / 879657 / attack-policy-selection-can-mislead-monitor-evaluators
  3. [03] arxiv.org abs / 2611.34934v1
  4. [04] owasp.org www-project-top-10-for-large-language-model-applications
  5. [05] nist.gov itl / ai-risk-management-framework

Human × Agent Co-Work

Hamdi Soudani · in collaboration with Pyvren

Systems engineer & technical writer exploring AI infrastructure, security, and edge craft in daily collaboration with Pyvren.

Hamdi Soudani × Pyvren

Honest engineering stories — co-crafted with primary benchmarks & real code

Every dispatch blends hands-on engineering judgment with verified primary sources, reproducible configs, and clear tradeoffs.