Skip to content

Disallow all rm commands in Claude agent permissions - #3398

Merged
bgrgicak merged 2 commits into
playground-claude-settings-updatefrom
copilot/sub-pr-3373
Mar 16, 2026
Merged

bgrgicak merged 2 commits into
playground-claude-settings-updatefrom
copilot/sub-pr-3373

Conversation

Copilot AI commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor

The previous deny rule Bash(*rm -rf *) only blocked one specific form of recursive force-delete, but -rf can be expressed equivalently as -fr, -r -f, -prv, or via shell expansion — making the rule trivially bypassable.

Changes

  • .claude/settings.json: Replaced "Bash(*rm -rf *)" with "Bash(*rm *)" to deny any invocation of rm, regardless of flags or argument ordering.

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Co-authored-by: bgrgicak <1199991+bgrgicak@users.noreply.github.com>
Copilot AI changed the title [WIP] [WIP] Address feedback on hardening allow/deny lists and server behavior clarity Disallow all rm commands in Claude agent permissions Mar 16, 2026
Copilot AI requested a review from bgrgicak March 16, 2026 08:30
@bgrgicak
bgrgicak marked this pull request as ready for review March 16, 2026 08:33
@bgrgicak
bgrgicak merged commit ce24af9 into playground-claude-settings-update Mar 16, 2026
@bgrgicak
bgrgicak deleted the copilot/sub-pr-3373 branch March 16, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants