Tool Parameter Abuse
High
- Category
- Tool Misuse
- Content
### pre-commit `.pre-commit-config.yaml` + `pre-commit install`。**注意它有两个天然缺口**:hook 装在本地 `.git/hooks/`,克隆仓库的人不跑 `install` 就等于没有;`git commit --no-verify` 无条件跳过。所以它是「早点发现」的工具,红线要另外放 CI。 ```yaml repos:
- Confidence
- 75% confidence
- Finding
- Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
