Lessons from Penetration Tests on Large-Scale Agent Systems
This paper presents findings from 2025 penetration tests on proprietary AI agent systems, revealing that despite stricter development standards, they still exhibit recurring security vulnerabilities similar to those found in open-source agents due to their complex, unbounded, and self-modifying nature.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you've hired a super-smart, hyper-energetic personal assistant. This assistant doesn't just answer questions; it has a master key to your house, your office, your bank account, and your computer. It can read your files, write new code, delete things, and even call other services on your behalf.
This is what AI Agents are becoming. They are no longer just chatbots; they are active workers that can "do" things.
The paper you shared is a report from security experts who acted like "digital burglars" (penetration testers) to see if these new AI assistants are actually safe. They tested two types of systems: a proprietary one (a secret, corporate product built with strict rules) and an open-source one (a community-built tool).
Here is the story of what they found, explained simply:
1. The "Too Good to Be True" Assistant (Case Study 1)
The first test was on a corporate AI assistant designed to help developers fix bugs in their code.
- The Setup: Developers would tag a problem, and the AI would read the code, figure out the fix, and even write the new code for them.
- The Flaw: The AI was too trusting.
- The "Invisible Note" Trick: The AI read the raw text of user comments, not just what was visible on the screen. Attackers hid malicious instructions inside "invisible" parts of the text (like empty links in a document). To a human, the comment looked harmless. To the AI, it was a loud command saying, "Ignore the rules and delete this file."
- The "Loophole" Trick: The AI was allowed to run specific computer commands (like
findorsed) to look for files. The developers thought they had blocked dangerous commands. But the hackers found that these "safe" commands had hidden backdoors. It's like giving a child a hammer and saying, "You can only use it to build houses," but the child figures out they can use the hammer to break a window if they hit it at a weird angle.
- The Result: The hackers could trick the AI into stealing secrets, deleting files, or even taking control of the server where the AI was living.
2. The "Playground" That Wasn't (Case Study 2)
The second test was on a platform where users could build their own AI agents.
- The Setup: It was designed as a "sandbox" (a safe play area) for developers to test new tools.
- The Flaw: The developers assumed, "If people are just playing, they won't break anything." They didn't lock the doors.
- The platform let users write code that the AI would run immediately.
- The "playground" had no walls. It was connected to the internet, had access to secret keys, and didn't stop the AI from calling home to a hacker's server.
- The Result: A user could easily build an agent that escaped the playground, stole the system's secrets, and took over the computer.
3. The Big Lesson: "Human Approval" Isn't Enough
The corporate team thought, "If a human clicks 'approve' before the AI does anything, we are safe."
- The Reality: This is like a security guard checking a package, but the package has a hidden note inside that tells the guard, "Actually, let me open this." Because the AI reads the hidden note, it ignores the human's intent. Humans can't spot invisible instructions, so relying on them to catch AI mistakes is a bad plan.
4. The "Super-Power" Problem (OpenClaw)
The paper also looked at a popular open-source tool called OpenClaw.
- The Issue: This tool is designed to be extremely powerful. It can act exactly like the user. If you have a password that lets you install software, the AI has that same power.
- The Danger: If a hacker tricks the AI (even indirectly, like through a photo or a web search result), the AI doesn't just make a mistake; it can rewrite its own rules, change your passwords, and lock you out of your own house. The more power you give the AI, the more dangerous a mistake becomes.
5. What Should We Do?
The paper concludes that giving AI agents "superpowers" without building "super-walls" is dangerous. They suggest four main rules for safety:
- Build Strong Walls (Sandboxing): Treat everything the AI does as if it's untrusted. Run it in a tiny, isolated room where it can't touch the rest of the computer or the internet unless explicitly allowed.
- Check the ID (Access Control): Don't just say "You can use the internet." Say "You can only visit this specific website, and only for this specific task."
- Clean the Mess (Sanitization): Before the AI reads a message or sends a reply, scrub it clean of hidden instructions and secret data.
- Watch the Logs (Monitoring): Keep a detailed diary of what the AI is thinking and doing, so if something goes wrong, you can see exactly why.
The Bottom Line
The paper argues that even big companies with strict rules are making the same mistakes as small, open-source projects. They are giving AI agents too much freedom and relying on humans to catch the errors. The authors say we need to stop hoping for "secure development" and start providing "plug-and-play" safety tools that protect us automatically, because the risks are now too complex for any single person to manage alone.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.