lbeurerkellner
How We Evaluate Model Risk
Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks
Snyk Agent Scan: Security scanner for AI agents, MCP servers and agent skills
MCP-Scan: A Security scanner for AI agents, MCP servers and agent skills
Technical Report: Exploring the Emerging Threats of the Agent Skill Ecosystem
I know it is only one more step, but from a privilege perspective, having the user essentially tell the agent to do what the attackers are saying, is less realistic then let’s say a real drive-by attack, where the user has asked for something completely different.
Still, good finding/article of course.
You can get quite far quite quickly. My toy implementation [1] is <600 LOC and even supports MCP.
MCP-Scan: Constrain, log and scan your MCP server for security vulnerabilities
Exposing Novel Prompt Injections, "Toxic Flows" in Agentic Systems
For those interested in some threat modeling exercise, we recently added a feature to mcp-scan that can analyze toolsets for potential lethal trifecta scenarios. See [1] and [2].
[1] toxic flow analysis, https://invariantlabs.ai/blog/toxic-flow-analysis
[2] mcp-scan, https://github.com/invariantlabs-ai/mcp-scan
Hardening AI Agent Security with Toxic Flow Analysis
Mcp-scan: constrain, log and scan your active MCP connections
The minesweeper comment was caused by the issue containing explicit instructions in the version that the agent actually ran on. The issue was mistakenly edited afterwards to remove that part, but you can check the edit history in the test repo here: https://github.com/ukend0464/pacman/issues/1
The agent ran on the unedited issue, with the explicit request to exclude the minesweeper repo (another repo of the same user).
* MCP-Scan, A security scanner for MCP connections: https://github.com/invariantlabs-ai/mcp-scan
* MCP Tool Poisoning Attacks, https://invariantlabs.ai/blog/mcp-security-notification-tool...
* WhatsApp MCP Exploited, https://invariantlabs.ai/blog/whatsapp-mcp-exploited
* Guardrails, a contextual security layer for agents, https://invariantlabs.ai/blog/guardrails
* AgentDojo, Jointly evaluate security and utility of AI agents https://invariantlabs.ai/blog/agentdojo
Also, check out our work on tool poisoning, where a connected server itself turns malicious (https://invariantlabs.ai/blog/mcp-security-notification-tool...).
Your caution is wise, however, in my experience, large parts of the eco-system do not follow such practices. The report is an educational resource, raising awareness that indeed, LLMs can be hijacked to do anything if they have the tokens, and access to untrusted data.
The solution: To dynamically restrict what your agent can and cannot do with that token. That's precisely the approach we've been working on for a while now [1].
It's hilarious, the agent is even tail-wiggling about completing the exploit.
mcp-scan: Constrain, log and scan MCP traffic for security vulnerabilities
MCP Streamable HTTP – Python and TypeScript Examples
Show HN: Guardrails – A Contextual Security Layer for Agentic AI Systems
https://invariantlabs.ai/blog/guardrails
Hey HN, we are a small team from Europe building in agent security and we have just released Invariant Guardrails, our open-source system to enforce contextual security in AI agents and MCP-powered applications.Guardrails acts as a transparent layer between your LLM/MCP server and your agent. It lets you define deterministic rules that block risky behavior: secret leakage, unsafe tool use, PII...
Securing Agents with Rules
* Initial Security Note describing Tool Poisoning, Rug Pulls, Tool Shadowing for the first time with diagrams and detailed experiments: https://invariantlabs.ai/blog/mcp-security-notification-tool...,
* Attack on WhatsApp MCP (both tool poisoning but also take-over via an infected message to your account): https://invariantlabs.ai/blog/whatsapp-mcp-exploited
* BrowserMCP attack, where it suffices for the agent to visit a compromised website (https://access.invariantlabs.ai): https://x.com/lbeurerkellner/status/1912145060763742579
We also recently released a security scanning tool to detect and prevent such attacks, including upcoming support for full proxying and local security scanning of tool calling payload and responses.
Please have a look and provide feedback if you can: https://github.com/invariantlabs-ai/mcp-scan
MCP-scan: A security scanning tool for MCP servers
In my experience, many less-technical folks started using MCP, and that makes security issues all the more relevant. This audience often lacks intuition around security best-practices. So it’s definitely important to raise awareness around this.
AgentDojo: An Environment to Evaluate Prompt Injection Attacks on AI Agents
It suffices to send you an injected message.
See: https://invariantlabs.ai/blog/whatsapp-mcp-exploited#experim...