
Bro-Plugin zur Überprüfung, ob Zertifikate von CVE-2017-15361 betroffen sind.
Dieses Plugin implementiert die Erkennung von CVE-2017-15361-Schlüsseln; es ist eine Neuimplementierung der unter https://github.com/crocs-muni/roca verfügbaren Quelle.
Das Plugin stellt zwei neue BIFs zur Verfügung, die öffentliche Schlüssel überprüfen können:
roca_vulnerable_cert prüft, ob ein Zertifikat verwundbar ist.roca_vulnerable_mod prüft, ob ein Modulus verwundbar ist.Dieses Plugin enthält außerdem ein Skript, das automatisch geladen wird und Sie benachrichtigen kann, wenn CVE-2017-15361 im Netzwerkverkehr erkannt werden.
Um dies zu aktivieren, setzen Sie:
redef ROCA::Notify=T;
Danach sollten Sie Einträge in notice.log erhalten, wenn solche Schlüssel erkannt werden. Beispiel:
#separator \x09
#set_separator ,
#empty_field (empty)
#unset_field -
#path notice
#open 2017-10-25-00-59-28
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p fuid file_mime_type file_desc proto note msg sub src dst p n peer_descr actions suppress_for dropped remote_location.country_code remote_location.region remote_location.city remote_location.latitude remote_location.longitude
#types time string addr port addr port string string string enum enum string string addr addr port count string set[enum] interval bool string string string double double
1449265638.475275 CHhAvVGS1DHFjwGM9 192.168.6.74 52122 104.236.167.107 4433 Fvv5qY2DMGQY2MYQ03 application/x-x509-user-cert 104.236.167.107:4433/tcp tcp ROCA::CVE_2017_15361_KEY Certificate uses a key potentially affected by CVE-2017-15361 - 192.168.6.74 104.236.167.107 4433 - bro Notice::ACTION_LOG 86400.000000 F - - - - -
#close 2017-10-25-00-59-28
Dieses Plugin erfordert, dass GMP (The GNU MP Bugnum Library) auf dem System installiert ist. Wenn dies der Fall ist, sollten Sie es mit bro-pkg wie folgt installieren können:
bro-pkg install 0xxon/bro-plugin-roca
Falls Sie den Pfad zu gmp angeben müssen, können Sie das Repository manuell klonen und es wie folgt installieren:
./configure --with-gmp=[Verzeichnis]
make install