T09 · Insecure Skill Coding Practices
- Location
SKILL.md:20- Finding
Unsafe Privileged Disk-Imaging Command Can Overwrite the Host Disk
- Content
View full analysis
- Remediation
View remediation
/dev/null || true printf 'This will erase all data on %s. Type the full device path to confirm: ' "$TARGET" read -r CONFIRM [ "$CONFIRM" = "$TARGET" ] || exit 1 sudo dd if=rdk_os_image.img of="$TARGET" bs=4M status=progress conv=fsync ``` - Add a prominent statement that substituting the wrong device can irreversibly erase the host computer. ]]>
