Indirect Prompt Injection › What the marker gets wrong

Michael BrenndoerferDecember 2, 20264 min read
Language AI HandbookAll chapters
Part 61 of 67Agentic AI and Protocol Security
Chapter 466Indirect Prompt Injection › What the marker gets wrong
Reading section 9 of 14 · What the marker gets wrong · 4 minSection 9 of 14 · 4 min

Section 9 of 14 · 4 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

The visitor guide shows a false positive. Its reference judgment is clear but its mark is instruction-like. The reviewed record shows a false negative. Its reference judgment expects a mark but its supplied mark is clear. Compare those mismatches before reading the policy results. That keeps a bad content judgment distinct from the question of which fields an authorized view contains.

PythonIn [17]
CollapseExpand
false_positives = [
    item.evidence.source_id
    for item in fixtures
    if item.evidence.mark is ContentMark.INSTRUCTION_LIKE
    and not item.review_expects_mark
]
false_negatives = [
    item.evidence.source_id
    for item in fixtures
    if item.evidence.mark is ContentMark.CLEAR and item.review_expects_mark
]
assert false_positives == ["visitor-guide"]
assert false_negatives == ["review-fixture"]

For these assignments the false-positive rate is one divided by two. It divides false positives by the number of reference-negative rows. The false-negative rate is also one divided by two. It divides false negatives by the number of reference-positive rows. Both denominators are nonzero in this exercise. They must be checked before computing rates on a different set. These rates describe four fixtures chosen for teaching, so they provide no detector performance estimate.

PythonIn [18]
CollapseExpand
reference_negatives = sum(not item.review_expects_mark for item in fixtures)
reference_positives = sum(item.review_expects_mark for item in fixtures)
assert (reference_negatives, reference_positives) == (2, 2)
print(
    f"Fixture false-positive rate: {len(false_positives) / reference_negatives:.0%}"
)
print(
    f"Fixture false-negative rate: {len(false_negatives) / reference_positives:.0%}"
)
ConsoleOut [18]
CollapseExpand
Fixture false-positive rate: 50%
Fixture false-negative rate: 50%

Review errors in context

A false positive in a screening report can have different consequences depending on what the application does next. In the example, a marked benign row can still deliver its room in the restricted view. If another feature needs the title, the same restriction can remove needed evidence. Rejection removes both. To interpret a reported error, read the Mark field alongside the decision and the expected answer requirements. A high-level rejection count by itself will not tell you how many authorized tasks were blocked.

False negatives are also conditional on downstream use. A missed screen does not automatically mean the application took a disallowed action. In this example access is checked independently and the only extra field compared with minimum context is a display title among authorized rows. In a different application, a miss could matter if unconstrained model output drives downstream behavior. Testing the policy boundary requires checking what capabilities exist, what the model can influence, and where policy is enforced. A count can flag an area for investigation without proving a downstream outcome.

If you maintain a real policy, collect benign examples from the collections users retrieve. For the purposes of a controlled test, annotate whether the record is relevant to the task, whether the known mark should be emitted, and what evidence should survive the policy under each access scenario. The first two judgments can disagree. An instruction-like visitor guide can be especially relevant to a question about visitor procedure. A harmless but irrelevant record can remain irrelevant no matter what the marker says.

Include coverage across source groups used in the product. Many libraries provide guides in several languages, even in the same department. If markers are evaluated only on records from one collection, the observed error rates characterize that sample. Adding another collection may require new calibration evidence, not copying the old rates. Track what input population was reviewed in controlled tests and distinguish coverage statistics from events confirmed in the app.

In applications where manual review is feasible, give the reviewer source provenance and reason for restriction without granting new authority through the review UI. They can decide whether one item is legitimate evidence for the designated task and send uncertain cases to an authorized owner. Write down what future policy behavior changes after a reviewed case. A one-off decision may be specific to one resource. A change to a global content rule can affect other readers and document types, so it needs a broader review.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy