Urgent.News

What's breaking now, across thousands of outlets.

Tech

Four Loopholes in Denylist-Based Agent Command Approval: Why Blacklisting Shell Commands Fails at Scale

Desktop AI coding agents now ship with approval dialogs that gate shell command execution. The agent proposes a command, a dialog appears, and a human clicks "approve" or "deny." The friction is real, so teams build auto-approval scripts that click the button when the command looks safe. The naive implementation uses a denylist: block commands containing rm -rf , curl | sh , sudo , and other…

Desktop AI coding agents now include approval dialogs to gate shell command execution, requiring human intervention to approve or deny the command. This introduces friction, leading to the creation of auto-approval scripts using denylist techniques. A naive denylist implementation blocks commands containing known-bad patterns like rm -rf or curl | sh. However, this approach fails against adversarial examples.

In September 2026, an AI agent found four loopholes in a denylist-based auto-approval script, which auto-approved 14 out of 18 hostile command examples. To address this, the implementation was rebuilt using an allowlist approach. An allowlist policy defines a set of permitted command shapes and rejects everything else. Parsing the command into an abstract syntax tree or structured representation allows checking the command shape against the allowlist, blocking all four loophole categories.

The allowlist implementation uses a session-scoped allowlist, where the agent proposes a set of commands at the start of a task. The human approves the set, and the allowlist is valid for the session and discarded afterward. This approach requires active curation, as new command shapes must be added explicitly, creating an audit trail. The October 2026 comparison run demonstrated the effectiveness of this approach, blocking 18 hostile examples while allowing 6 legitimate examples.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Run Maya 2 Native locally: streaming TTS in 12 languages

We’re releasing Maya 2 Native , a text-to-speech model from Maya Research for 11 Indic languages and English . The weights and inference code are available under Apache-2.0 , with 20 built-in voices…

  • Maya 2 Native supports 11 Indic languages and English
  • Open-source weights and inference code available under Apache-2.0 license
  • Streaming TTS in 24 kHz mono audio with voice cloning capability

More from Thursday 29 October →