Transom

Prompt injection detection

Also called: injection classifier, injection scanner

Classifiers or heuristics that examine text entering a model's context and estimate whether it contains an injection attempt.

These range from regexes for "ignore previous instructions" to fine-tuned classifier models scoring every chunk of retrieved content, tool output, or user input. A high score triggers blocking, stripping, quarantine, or a human check. Providers and open-source projects both ship them.

Why it matters

They help — measurably lowering the success rate of known attacks — and they are worth deploying. But detection is an arms race against an attacker with unlimited phrasing, and false positives break legitimate workflows. Detectors are a probabilistic layer; the deterministic controls (privilege, isolation, egress, approval) are what you rely on when the detector is wrong.

Exposure map

Live counts of instances showing this pattern will appear here once the exposure map is collecting data.

Related terms

Added 2026-09-02. Last reviewed 2026-09-02. Definitions in this space are evolving; entries are dated so revisions stay legible.