ZeroClaw

ZeroClaw tracks Git attribute bypass in command approval classifications

ZeroClaw contributors documented how Git's attr-source flag can mask mutating subcommands from approval engines, bypassing operator gates. Related runtime patches stamp ingress provenance on external channel messages and assign deterministic token weights to image markers to prevent context window overflow.

← Back to homeOriginal source ↗

ZeroClaw security researchers opened issue #10966 on September 19, 2026, disclosing an approval bypass vulnerability in command classification engines handling git operations. The report demonstrates that utilizing git's --attr-source flag allows an agent or prompt injection payload to execute mutating commands that masquerade as read-only inspection commands, bypassing standard operator approval filters. In response, maintainers are redesigning command tokenization to inspect the entire command line AST rather than relying on prefix matching. Complementing this security effort, PR #10907 stamps cryptographic ingress provenance on incoming channel messages to verify message origin across untrusted network hops, while PR #10890 assigns fixed token costs to image markers in conversational history to prevent multi-modal context overflow and memory truncation during lengthy chat sessions.

The facts

- Issue #10966 reveals that git --attr-source flags can conceal mutating operations from regex and prefix-based tool approval filters. - Demonstrates how sophisticated command flags can subvert naive agent sandboxing and command validation logic. - PR #10907 merges external ingress provenance stamping to track the verified source platform of incoming user instructions. - PR #10890 establishes deterministic token accounting for image attachments in agent memory buffers, eliminating token estimation drift. - Prevents runtime context exhaustion caused by multi-turn image conversations failing to account for vision model tile expansions.

Why it matters

Autonomous agent safety systems frequently inspect tool arguments using string matching or shallow argument parsing. Complex command-line utilities like git possess powerful configuration and override flags that can fundamentally alter the execution semantics of seemingly benign subcommands. If an approval system classifies 'git log --attr-source=...' as a read-only query without parsing its secondary effects, malicious or compromised agents can execute arbitrary code with read-level permissions, compromising host integrity.

Current

Inspected on 2026-09-19. The ZeroClaw stable-channel baseline is v0.8.5 published 2026-09-05T07:31:19Z. The primary source was open when captured. Mainline merges, open proposals and packaged releases are distinct availability states; the release baseline does not establish that a proposal has shipped.

Evidence

Primary evidence: zeroclaw-labs/zeroclaw issue #10966 (https://github.com/zeroclaw-labs/zeroclaw/issues/10966). Supporting context: zeroclaw-labs/zeroclaw PR #10907 (https://github.com/zeroclaw-labs/zeroclaw/pull/10907); zeroclaw-labs/zeroclaw PR #10890 (https://github.com/zeroclaw-labs/zeroclaw/pull/10890). The source bodies and linked context were inspected. Test results quoted from contributors remain attributed reports, not independently reproduced experiments.

Operator take

Surface-level argument filtering is insufficient for secure agent tool execution. Command validators must fully evaluate command ASTs and account for flag-level execution overrides in binary tools like Git, Docker, and SSH. Operators should combine strict tool whitelisting with kernel-level container sandboxing rather than relying solely on agent-level approval prompts to protect critical infrastructure, especially when agents have access to local file systems.

Caveat

The Git attribute bypass requires write access to the repository tree to construct malicious attribute files, limiting exploitability in strictly read-only environments. Ingress provenance stamping requires channel adapters to implement shared secret verification, which is not yet universal across legacy chat bridges and third-party webhook relays.

The Git attribute bypass requires write access to the repository tree to construct malicious attribute files, limiting exploitability in strictly read-only environments. Ingress provenance stamping requires channel adapters to implement shared secret verification, which is not yet universal across legacy chat bridges and third-party webhook relays.