Case · DiggingBeagle record

CodeWhale misclassified executable search flags as approval-free reads

A command classifier allowed executable options of fd, ripgrep and git grep under read-only automation, bypassing the shell approval expected by an agent operator.

Published by DiggingBeagle:

Public disclosure: Nov 12, 2026

Scope

Affected CodeWhale agent shell approval paths through v0.8.67; no public in-the-wild victim evidence.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade B
Remediation
patch available
AI role
AGAINST AI
Basis and provenance

Reviewed advisory gives executable argument paths and v0.9.0 patch; no confirmed malicious deployments. Impact band is unassigned because the cited material does not establish a calibrated real-world loss or affected-population denominator.

Assessed Nov 20, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    Attacker-influenced text prompts a search command containing an execution-capable flag.

  2. 02

    Read-only classifier auto-approves command before normal shell confirmation.

Timeline

  1. Nov 12, 2026
    Event type unspecified

    Underlying evidence published or disclosed

  2. Nov 12, 2026
    disclosure

    Public disclosure

Claims & evidence

CLM-2026-NOV20-CODEWHALE-EXECThe CodeWhale advisory documents approval-auto classification for fd, rg and git grep even though their options permit execution, affecting codewhale and codewhale-tui through 0.8.67 and fixed in 0.9.0.supported

Basis: reported finding

Link to claim
CLM-2026-NOV20-CODEWHALE-EXEC-ENRICHThe CodeWhale shell classifier allowed fd, ripgrep and git grep to bypass approval after reducing commands to their apparent search-tool names, even though the binaries supported execution-capable flags without shell metacharacters.supported

Basis: reported finding

Link to claim

Implications

Version 0.9.0 changes the affected gate. The broader lesson is that authorization must consider an invocation’s effective behavior, not only the name or the apparent purpose of a utility.

Controls and mitigations

  • Require effect-aware approval for search-tool execution flags and independently validate argument resolution.
  • Upgrade to v0.9.0 or later and apply permission checks to the resolved effect of command options rather than only search-tool names.

Unknowns and contradictions

  • No established deployment count, exfiltration or exploit chain in a real tenant.
  • Other executable flag combinations need independent verification after patching.

Sources and citation

Material revision history

  1. Nov 20, 2026 · Published version · first publication · revision 269