---
id: 3217
lang: en
title: "AI Agents: Handy Assistant or Open Door for Hackers?"
published_at: "2026-02-03 11:07:16"
source_name: "Habr AI"
source_url: "https://habr.com/ru/companies/otus/articles/992174/?utm_campaign=992174&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/3217"
categories: ["llm", "research", "ethics"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# AI Agents: Handy Assistant or Open Door for Hackers?

> **Краткая суть (BLUF):** AI agents are moving into the real world, with access to files and the console. That's where things get interesting. Trail of Bits broke down how seemingly harmless functions turn into RCE (remote code execution).  The core problem is that we trust command allowlists and regex filters, but attackers have learned to use argument injection. Even human-in-the-loop confirmation doesn't save you if the user doesn't understand the context of a hidden command or has simply gotten used to clicking "OK".  This is no longer a theoretical threat but a real attack vector against any system where an LLM has access to tools. Security through prohibitions no longer works.

Let's be honest: we all waited for the moment when AI would stop being just a chatty bot and start *doing* things. Booking tickets, debugging code, managing servers. The era of AI agents has arrived, but it brought a headache that many developers have diligently ignored. Trail of Bits has published an analysis that works like a cold shower: your "safe" agents are a potential security hole the size of the Grand Canyon.

The core of the problem is right on the surface, yet we stubbornly refuse to see it. We give language models access to tools: the file system, the terminal, APIs. To sleep soundly, engineers usually build defenses out of allowlists of permitted commands and put a human in the decision chain. The idea is that if the AI tries something strange, the human will notice and block it. Sounds logical? In practice, it falls apart.

Trail of Bits showed how this breaks through argument injection. This is not classic shell injection, where you simply append malicious code. Here it is subtler. An attacker manipulates the prompt so that the model uses an *allowed* utility, but with arguments that turn it into a weapon. Imagine you let an agent use the `curl` command to check connectivity, and under the influence of a hidden prompt, it downloads a malicious script and runs it. Formally, the command was on the allowlist. In practice, you just handed an attacker RCE (Remote Code Execution).

The hope placed in regex filters looks especially ironic. Trying to filter LLM output with regular expressions is like trying to hold water in a sieve. Models are too variable and context is too complex for rigid regex logic to catch every variant of malicious behavior. It is an architectural antipattern that, for some reason, still lives on in production at many startups.

And what about the human in the loop? That works only in an ideal world. In reality, users suffer from decision fatigue. When an agent asks for confirmation of a harmless action for the tenth time, vigilance dulls. And if an attack is disguised well, even an experienced engineer may miss the trick in a set of command-line flags. We shift responsibility onto the user, who is often the weakest link.

What does this mean for the industry? We are approaching the point where naive AI agent design becomes dangerous. Just bolting LangChain onto a terminal and hoping for the best is no longer an option. What's needed is full isolation of the execution environment (sandboxes), strict permission limits at the OS level rather than the application level, and an end to the illusion that an LLM can moderate itself.

The takeaway: AI agent security cannot be built on trust in the model or the user. If your agent has access to the real world, assume it has already been compromised. Are you ready for your "smart assistant" to delete your production database?

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/companies/otus/articles/992174/?utm_campaign=992174&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/3217
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
