mirror of
https://github.com/shareAI-lab/analysis_claude_code.git
synced 2026-09-20 12:13:38 +08:00
fix: harden destructive command matching
This commit is contained in:
@@ -198,10 +198,6 @@ complete_task(tests.id) # ✓ Completed
|
||||
|
||||
---
|
||||
|
||||
## 継承する権限ルール
|
||||
|
||||
この章は s04 の permission hook を引き継ぐ。command の先頭または shell separator(`;`、`&&`、`||`、`|`、`&`、括弧、改行)の直後にある完全な `rm`/`del` command word だけを大文字小文字を区別せず検出する。`model`、`delimiter`、`echo del test.txt` は危険な command として扱わない。
|
||||
|
||||
## 試してみる
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user