🔧 AI Nachrichten Debian is Voting on Whether to Allow AI-Assisted Contributions(23.08.2026 um 09:34 Uhr)
🔧 AI Nachrichten The Linux Kernel Is Approaching 2,000 CVEs Per Release(29.08.2026 um 20:00 Uhr)
⚠️ Malware / Trojaner / VirenCitrix Adds a Linux-Powered Escape Hatch For Compromised Windows PCs(30.08.2026 um 17:34 Uhr)
🔧 AI Nachrichten Debian is Voting on Whether to Allow AI-Assisted Contributions(23.08.2026 um 09:34 Uhr)
🔧 AI Nachrichten The Linux Kernel Is Approaching 2,000 CVEs Per Release(29.08.2026 um 20:00 Uhr)
⚠️ Malware / Trojaner / VirenCitrix Adds a Linux-Powered Escape Hatch For Compromised Windows PCs(30.08.2026 um 17:34 Uhr)

🔧 Programmierung 🕛 vor 1 Monat 4 Min Lesezeit
0

Is your agent's grep tool a shell command?

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

When you give an LLM a tool, you hand it a real function and let it choose the arguments. Those tools are everything your agent can do to a real system: read a file, write to your database, send an email, run a shell command, delete data. They are your risk surface, and most teams have never looked at it in one place.



So we did. We ran scan across a batch of popular open-source TypeScript AI agents. A few of the things it found, none of them exotic:




  • A coding agent whose grep and glob tools, which sound read-only, actually shell out through execSync. Its bash tool passes a model-chosen string straight to spawn. Arbitrary command execution, behind three innocuous names.

  • A query tool that fires an HTTP DELETE. A "query" that deletes.

  • A calculator that runs eval on whatever the model types, in a widely-used agent framework. Arbitrary code execution behind the friendliest name in the box.

  • A send-email tool that posts to an array of recipients, so the model chooses who gets mailed.

  • The single most common finding, in almost every agent we scanned: a fetch tool aimed at whatever URL the model supplies. That is a door to your internal network (an SSRF surface).



Notice the pattern. The dangerous tools are not named dangerous. They are named grep, query, calculator. A name is a claim. The code is the evidence.






See your own agent's tools



scan reads that evidence. One command, no install, no signup, no code change:




CODE
npx @agentx-core/scan .






It lists every tool the model can call and ranks each one by what it can do, from read-only up to destructive:




CODE
🔍 AGENTX SCAN        (TypeScript · 3 files · 5 tools)
===========================================================================

RISK TOOL GUARD WHY
---- ---- ------ ------------------------
high calculator yes calls `eval`
lib/tools/compute.ts:4
high grep yes calls `execSync`
lib/tools/system.ts:8
med sendEmail yes calls `mailer.send`
lib/tools/io.ts:5
med fetchUrl yes outbound req to agent-controlled host (SSRF)
lib/tools/io.ts:11

2 of 5 tools can take destructive or batch actions.
Nothing here is guarding them: no AgentX in this project's dependencies.






Every ranking carries its evidence, so you can check it instead of trusting it. Scan reads the tool's body, not its name: a tool called tidyUp that deletes files ranks high, and a scary-sounding tool whose code is actually clean goes to "review," not the top. When it cannot tell, it says so. On one agent, all 32 tools came back "nothing here to guard" because they run elsewhere, and scan said exactly that instead of inventing risk.






What it does not do



It does not run your code, and it does not decide whether a tool is exploitable. It sorts an inventory so the dangerous end is the first thing you see. Expect roughly a third of a real codebase to land in "review." That is the honest cost of not guessing.






Guarding what it finds



Scan reports. It does not change your code. To actually guard what it finds, put the AgentX gateway in front of your agent, or wrap your MCP server in one line. Both are language-agnostic, so there is no SDK to adopt.



It covers TypeScript agents built on the Vercel AI SDK today. Python agent? The scanner is TypeScript for now, but the guard it points to, the gateway and the MCP wrapper, is language-agnostic. Run it on yours:




CODE
npx @agentx-core/scan .






This matters more as models get better, not less. A more capable agent does more with an unguarded tool.






Try it





  • Run it on your own agent: npx @agentx-core/scan .


  • Guard what it finds:


  • Watch a catch-and-recover live:

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Bits und so #1021 (Passwort für Laufwerk)
1 Quelle
Bits und so #1022 (Wie Weißbier)
1 Quelle
KI-Agenten entdecken deutsches Wiki als Kommunikationskanal
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Is your agent's grep tool a shell command?

Thematisch verwandte Begriffe: your, agents, grep, tool · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...