Chaining Abuse
- Category
- Tool Misuse
- Confidence
- 95% confidence
- Finding
Piping echoed content directly into sudo tee -a /etc/fstab creates a one-step privileged persistence change with no validation, review gate, or idempotency. In an agent setting, this pattern is dangerous because any malformed or repeated content can silently corrupt boot-critical configuration and persist across reboots.
- Content
bash # Add to /etc/fstab echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstabVerify the entry:
