Skip to content

docs(security): raise the recommended Claude Code version to 2.1.288 — the native rm analyzer missed bash -c under bypassPermissions until then #1346

Closed

Description

@admarble

Problem

README.md:33 and :38 recommend Claude Code ≥ 2.1.208. The stated reason is that "Sequant's pre-tool hooks lean on Claude Code's native dangerous-rm analyzer, which fires even under bypassPermissions". Sequant removed its own rm -rf /|~|$HOME guard (templates/hooks/pre-tool.sh:817) and relies on that analyzer.

Claude Code v2.1.288 fixed a gap in the analyzer: "a dangerous rm (such as one on / or the home directory) inside a bash -c or sh -c script running without a prompt in bypassPermissions mode or under a shell allow rule" (anthropics/claude-code#96300). Phase agents run under bypassPermissions (src/lib/workflow/drivers/claude-code.ts:138). On any version before 2.1.288, bash -c "rm -rf ~" from a phase agent had no guard from either side.

pre-tool.sh:828 already lists bash -c "sudo ..." as an accepted gap for the sudo guard. The rm case was covered only by the native analyzer, and that coverage arrived in 2.1.288.

Source: v2.1.288 assessment, #1334.

Acceptance Criteria

  • AC-1: Every place that states the recommended Claude Code version says 2.1.288 and gives the bash -c / sh -c reason next to the existing command-substitution one. Evidence: grep -rn "2\.1\.208" README.md docs plugin templates src returns no recommendation sites, and grep -rn "2\.1\.288" shows each one.
  • AC-2: If sequant doctor or the pre-tool version warning compares against a recommended version, that constant is 2.1.288. Evidence: the constant's location cited in the PR, or a note that none exists (grep -rn "208" src/commands/doctor.ts templates/hooks).
  • AC-3: docs/reference/permissions.md (or wherever the hook threat model is documented) records that on Claude Code < 2.1.288, bash -c "rm -rf ~" under bypassPermissions is unguarded. Evidence: the doc diff.

Activity

  1. added
    upstream
    on Oct 6, 2026
  2. added a commit that references this issue on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions