Skip to content
vetkitChecksChangelogDocumentation

vetkit.shell.ssh.host-key-verification-disabled

SSH host key verification is turned off (StrictHostKeyChecking=no or UserKnownHostsFile=/dev/null). The connection can be intercepted by anyone on the network path (man-in-the-middle).

Last updated:

Suite: Security

regex

SSH host key verification is turned off (StrictHostKeyChecking=no or UserKnownHostsFile=/dev/null). The connection can be intercepted by anyone on the network path (man-in-the-middle).

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Pin the host key in a known_hosts file (e.g. from ssh-keyscan verified out of band) or use StrictHostKeyChecking=accept-new for first-contact provisioning.

References

Source: packages/engine/rules/sast/shell.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.