Skip to content
vetkitChecksChangelogDocumentation

vetkit.go.ssh.insecure-ignore-host-key

The SSH client accepts any host key, so the connection can be intercepted (man-in-the-middle).

Last updated:

Suite: Security

go

The SSH client accepts any host key, so the connection can be intercepted (man-in-the-middle).

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Use ssh.FixedHostKey(key) or a known_hosts callback (golang.org/x/crypto/ssh/knownhosts).

References

Source: packages/engine/rules/sast/go.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.