r/devsecops • u/CheckApprehensive971 • 2h ago
Where do you stop prompt injection in tool responses, at the gateway or in every agent?
We had a near miss where a support agent read a ticket with text written to look like system instructions. it didnt follow them , but only because the model happened to ignore it. i know filters miss things so were also cutting what the agent can call after after it reads a ticket, but i still want a check on what it reads. Now im deciding where the check belongs, a gatway that inspects everythig the agent reads, or a filter inside each agent before tool output goes back into context. Where do you stop prompt injection in tool responses...