r/devsecops • • 2h ago

Where do you stop prompt injection in tool responses, at the gateway or in every agent?

1 Upvotes

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...


r/devsecops • • 20h ago

A remote MCP server can change its tool descriptions without a version bump. How do you know what your scan actually looked at?

0 Upvotes

Something I keep running into when comparing MCP security findings.

A finding against a remote MCP server describes that server's tool descriptions at one moment. They can change without a version bump or a new release. So a result from last week may no longer apply, and nothing in the report tells you.

Most scan output records the tool version and the rules used. Very little of it records what the scan actually read. That's a problem as soon as you try to match findings against an inventory of agents, servers and skills: you can't tell if a finding is still true.

The fix I've been thinking about is small: store a SHA-256 of the document the scan read (tools list or server card) plus the scan time, so anyone can re-fetch, compare, and treat a mismatch as "rescan needed" rather than "fixed" or "still vulnerable".

Two things I'm unsure about:
- hash the whole document, or each tool separately?
- JSON ordering and whitespace changes shouldn't change the digest, but how far do you go with canonicalization?

What do you do today? Do you pin descriptions, diff them on a schedule, or just rescan and hope?

Disclosure: I maintain an open catalog of agentic AI vulnerabilities and build a scanner that uses it. Not selling anything here. I'm after how people handle this.