Detection with Censys: The following queries can be leveraged to identify all Censys-visible public-facing OpenSSH instances.
Censys Search query: services: (software.product: openssh and software.version: [8.5 to 9.8} and not ssh.endpoint_id.comment: {“Ubuntu-3ubuntu0.10”, “Ubuntu-1ubuntu3.6”, “Ubuntu-3ubuntu13.3”, “Debian-5+deb11u3”, “Debian-2+deb12u3”, “FreeBSD-20240701”})
Censys ASM query: host.services.software: (product: “openssh” and version: [8.5 to 9.8})
Censys ASM Risk query: risks.name=”Vulnerable OpenSSH [CVE-2024-6387]”