name: rust-security-checklist description: Use before merging security-relevant Rust changes. Catches common local-service security regressions.
rust-security-checklist Skill
Use this skill before merging security-relevant Rust changes.
Goal
Catch common local-service security regressions early.
Checklist
- Input and size limits
- Are request/response/body sizes bounded?
- Are parsing paths resistant to oversized input?
- Network trust boundaries
- Are remote response sources validated (address/port where required)?
- Are timeouts and retry limits explicit?
- Resource exhaustion
- Is task/thread concurrency bounded?
- Are unbounded queues/spawns avoided?
- File and key safety
- Are private keys/certs written with restrictive permissions where supported?
- Are secret file paths stable and predictable under
sudo?
- Command execution safety
- Avoid
sh -cwith interpolated strings. - Prefer direct
CommandAPIs and explicit args.
- Logging hygiene
- No secrets in logs.
- Errors are specific but not sensitive.
Required Validation
cargo run -p xtask -- fmt-check
cargo test -q
cargo check --workspace
Reporting Template
- Threat addressed:
- Change summary:
- Residual risk:
- Follow-up (if any):