By Vero SecurityBuilt and funded by Vero Security, the AI Security Engineering platform.Read the charter

Detection classifiers and spotlighting

Probabilistic defenses try to flag or neutralize injected instructions before the model acts on them. Spotlighting marks or encodes untrusted text so the model can tell it apart, and small classifiers such as Prompt Guard scan inputs for injection attempts. Use them to raise attacker cost, never as the only control.

Read in this order

  1. ArticleHow Microsoft defends against indirect prompt injection attacks (MSRC)Start here: how a large vendor layers spotlighting with detection.
  2. PaperDefending Against Indirect Prompt Injection Attacks With SpotlightingThe spotlighting paper, with the marking techniques and their results.
  3. OfficialLlama Prompt Guard 2 model card (Meta)A small open classifier you can try on your own inputs.

Save your progress

We email you a sign-in link. No password.

By signing in you agree to the terms. The privacy policy explains how we use your details.

Join the AI security engineering community

Free. Roadmap updates, chapters near you, and first word when credentials open.

We’ll email you community updates. Unsubscribe anytime. By sending this you agree to the terms. The privacy policy explains how we use your details.