Things become complicated with this issue.
I recently posted some warning about the Debian SSH / SSL vulnerability, even before Heise had a clue
People now start to get hyperactive, which leads to a confusing amount of blacklists and guides on the Web.
For our Debian systems, I performed the following steps. Please note that the blacklist packages currently only check 1024bit and 2048bit keys.
- Update your SSH installation on all machines, in order to get “ssh-vulnkey” for free. The SSH server will reject all vulnerable keys from this point, so make sure that you keep some shell open. Use the following command to scan the complete disc for vulnerable SSH keys:
find / \( -name "*_dsa*" -o -name "*_rsa*" \) -type f -exec ssh-vulnkey '{}' \; 2> /dev/null|grep COMPROMISED - Install the Debian OpenSSL blacklist package from the Debian Wiki. You can then check the disc for vulnerable SSL keys with a similar command:
find / -name "*.pem" -type f -exec openssl-vulnkey '{}' \; 2> /dev/null|grep COMPROMISED
This step can get a little bit annoying, since the openssl package asks for the passphrase of encrypted PEM files.
