sshfp
Rules: 4
sshfp/algorithm
An SSHFP record uses DSA or only a SHA-1 digest
sshfp/algorithm/deprecated · hint · score 0.4 · site
DSA keys are no longer approved for signing, and a SHA-1 digest alone is weak, so the record gives clients less assurance. Checked only where SSHFP records exist.
Reported as
an SSHFP record names a DSA key or carries a SHA-1 digest with no SHA-256 one beside it (got the value found)
Fix
Drop DSA records, whose keys FIPS 186-5 no longer approves for signing, and publish a SHA-256 record for every key.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
site.hosts.*.sshfp.deprecated
Expects
{
"maxItems": 0
}
When
{
"site.hosts.*.sshfp.records": {
"type": "array",
"minItems": 1
}
}
sshfp/record
An SSHFP record names a host key the SSH server does not present
sshfp/record/mismatch · error · score 8.8 · site
Clients that trust SSHFP reject the connection or get a warning, because the record is stale after a key rotation or something else answered in the server’s place.
Reported as
an SSHFP record names a host key the SSH server does not present, so the record is stale after a key rotation or the connection was intercepted (got the value found)
Fix
Republish the SSHFP records from the server’s current keys (ssh-keygen -r <host> on it), or find what answered in its place.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
site.hosts.*.sshfp.mismatched
Expects
{
"maxItems": 0
}
When
{
"site.hosts.*.sshfp.mismatched": {
"type": "array"
}
}
The host answers SSH but publishes no SSHFP record
sshfp/record/missing · info · score 2.2 · site
Without SSHFP, a first connection relies on the user to accept an unknown key, so an attacker who intercepts it can pose as the server.
Reported as
the host answers SSH but publishes no SSHFP record, so a first connection is trust on first use
Fix
Publish the output of ssh-keygen -r <host> in a DNSSEC-signed zone.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
site.hosts.*.sshfp.records
Expects
{
"minItems": 1
}
sshfp/zone
SSHFP records are not authenticated by DNSSEC
sshfp/zone/unsigned · warning · score 5.4 · site
An SSH client must not trust SSHFP records that DNSSEC has not authenticated, because an attacker on the path could forge them. Checked only where SSHFP records exist.
Reported as
the SSHFP records were not authenticated by DNSSEC, so an SSH client must not trust them: the zone is unsigned or the resolver does not validate
Fix
Sign the zone with DNSSEC, or audit through a validating resolver.
Runs by default, in the recommended ruleset.
References
For rule authors
Reads
site.hosts.*.sshfp.authenticated
Expects
{
"const": true
}
When
{
"site.hosts.*.sshfp.records": {
"type": "array",
"minItems": 1
}
}