
Plugin de Bro para verificar si los certificados están afectados por CVE-2017-15361
Este plugin implementa la detección de claves CVE-2017-15361; es una reimplementación del código fuente disponible en https://github.com/crocs-muni/roca.
Este plugin proporciona dos nuevas BIFs que pueden verificar claves públicas:
roca_vulnerable_cert verifica si un certificado es vulnerableroca_vulnerable_mod verifica si un módulo es vulnerable.Este plugin también incluye un script que se carga automáticamente y puede notificarle cuando se encuentren claves CVE-2017-15361 en la red.
Para habilitar esto, configure:
redef ROCA::Notify=T;
Después debería obtener entradas en notice.log cuando se encuentren dichas claves. Ejemplo:
#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
Este plugin requiere que GMP (The GNU MP Bignum Library) esté instalado en el sistema. Si es así, debería poder instalarlo usando bro-pkg usando:
bro-pkg install 0xxon/bro-plugin-roca
Si tiene que especificar la ruta a gmp, puede clonar manualmente el repositorio e instalarlo usando:
./configure --with-gmp=[directory]
make install