T09 · Insecure Skill Coding Practices
- Location
SKILL.md:53- Finding
SSH Host Verification Is Disabled in Credentialed and Operational Examples
- Content
View full analysis
- Remediation
View remediation
/tmp/server_host_key ssh-keygen -lf /tmp/server_host_key # Compare the displayed fingerprint with a trusted value before installation. cat /tmp/server_host_key >> ~/.ssh/known_hosts rm -f /tmp/server_host_key chmod 600 ~/.ssh/known_hosts ssh root@SERVER_IP "hostname" ``` 4. Keep any bypass example in a clearly isolated, test-only section and do not combine it with real credentials, key enrollment, or privileged accounts. 5. Prefer `StrictHostKeyChecking=yes` for automation after provisioning the expected host key. 6. Avoid using `root` directly where a restricted account with controlled `sudo` permissions is sufficient. ]]>
