AIToday
Large Language ModelsHacker NewsPublished: Apr 29, 2026, 22:00 JST1 min read

Diplomat-agent static scanner reveals 76% of tool calls in 16 open-source AI agent repos lack security guards

Diplomat-agent static scanner reveals 76% of tool calls in 16 open-source AI agent repos lack security guards

3 Key Points

  1. A Python tool called diplomat-agent scans codebases for unguarded AI agent tool calls—functions that write to databases, send emails, charge cards, or delete data. A scan of 16 open-source agent repositories found 76% of tool calls had zero checks (input validation, rate limiting, auth checks, confirmation steps, idempotency keys, or retry bounds).

  2. The scanner runs in ~2 seconds on a 1,000-file repo using only Python's standard library AST module. It detects 40+ patterns across 8 categories (database writes/deletes, HTTP writes, payments, email/messaging, agent invocations, destructive commands, and publish/upload operations) and outputs results in Terminal, JSON, SARIF 2.1.0, CSAF 2.0, or Markdown formats.

  3. The tool integrates into CI pipelines (to block unguarded PRs), IDEs (Copilot Chat, Claude Code, Cursor), pre-commit hooks, and GitHub Code Scanning. It also generates a toolcalls.yaml behavioral SBOM that documents what an agent can do, comparable to a requirements.txt file.

Ask the AI about this article →

Get the latest Large Language Models news every morning

For example, today's edition would include:

  • Anthropic resets Claude usage limits with Fable 5.1 launchITmedia AI+ · 57m ago
  • Salesforce and Anthropic unveil Claudeforce, integrating CRM into ClaudePublickey · 57m ago
  • Anthropic releases Claude Fable 5.1 and Mythos 5.1ITmedia AI+ · 3h ago

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleEka's robot achieves fluid dexterity by training in simulation, moving beyond prior systems that struggled with real-world object manipulation.