Appearance
SEC550 / MCP-AUTOAPPROVE-RM
SEC550 flags MCP configuration when autoApprove includes the exact tool token Bash(rm:*).
Why It Matters
rm is a destructive file-deletion primitive. Auto-approving it weakens the review boundary around irreversible filesystem mutation in MCP clients.
Trigger Shape
- the file is a detected MCP configuration surface
autoApproveis a string array- the array contains the exact item
Bash(rm:*)
Clean Cases
- review-gated destructive shell commands
- narrower non-destructive shell permissions
- configs without
rminautoApprove
Example Trigger
json
{
"mcpServers": {
"demo": {
"command": "node",
"args": ["server.js"],
"autoApprove": ["Bash(rm:*)"]
}
}
}Safer Example
json
{
"mcpServers": {
"demo": {
"command": "node",
"args": ["server.js"],
"autoApprove": ["Read(*)"]
}
}
}How To Fix
Remove rm from autoApprove and keep destructive file deletion under explicit user review.