Does a smaller local model make a useful prompt injection detector?

Plastic_Secret1303 · reddit · 2026-10-20

A developer proposes putting a small local model in front of tool responses and retrieved documents to screen for prompt injection attacks targeting an agent. The core difficulty is context: legitimate content like security articles also quotes phrases such as "ignore previous instructions", so blanket blocking gets unusable fast. The post asks the community which failure mode hurts more in practice — missed injections or false alarms — highlighting that the pattern of using a cheap small model as a security filter for larger models still lacks settled design conventions.

Original post →

More from coding & agent

coding & agent channel →