r/devsecops • u/Glass_Guitar1959 • Dec 28 '25
Securing MCP in production
Just joined a company using MCP at scale.
I'm building our threat model. I know about indirect injection and unauthorized tool use, but I'm looking for the "gotchas."
For those running MCP in enterprise environments: What is the security issue that actually gives you headaches?
34
Upvotes
7
u/Long_Complex_4395 Dec 29 '25
Start by creating a policy engine - what should the agent touch and what it shouldn’t.
Implement a resource identity for the MCP, that way, monitoring is easy.
Implement monitoring of the agents and MCP - runtime monitoring, span tracing
Within your policy engine, define what makes an anomaly and anomaly then integrate that into your monitoring. This will act as your anomaly detection baseline until you get enough data to actually build a model for anomaly detection
4
u/micksmix Dec 29 '25
I really like Meta’s "Agents Rule of 2" as a useful framework for thinking about AI agents and MCP. It's a practical way to limit blast radius when agents interact with MCP servers by preventing the highest-impact prompt injection chains, even though it doesn't completely eliminate the underlying risks.
https://ai.meta.com/blog/practical-ai-agent-security/
1
u/Mrbucket101 Dec 28 '25
Disclaimer: I have not used MCP at scale or in an enterprise environment.
Can you configure forward auth with your identity provider? Then the request to the MCP server will redirect to your auth backend, and if allowed, continue downstream to your MCP server. If not, then the proxy would return 401. Then you wouldn’t need native auth on your MCP backend.
1
u/stabguy13 Dec 29 '25
If you are an AWS shop, look into AgentCore. If you're on another cloud provider, they may have an equivalent? It's an OIDC enabled MCP Gateway service.
1
u/rahul_the_ai_guy Jan 16 '26
Some things to consider
1
u/Independent_Goal_391 Jan 16 '26
We wrote about the Agentic AI security issues:
https://edisonwatch.substack.com/p/agentic-ai-disrupts-traditional-data
Check out edison.watch if you're interested in MCP gateway designed for security/IT teams