
Microsoft Excelのローカル権限昇格エクスプロイトであるCVE-2021-42292を検出するZeekパッケージ。
このパッケージは、Microsoft Excel のローカル権限昇格の脆弱性である CVE-2021-42292 のエクスプロイトを検出し、notice.log に通知を生成します。
https://corelight.com/blog/detecting-cve-2021-42292
このパッケージは、トリガーとなる Excel スプレッドシートが2番目のスプレッドシートをダウンロードしたときに脆弱性を検出します。2番目のスプレッドシートは昇格した特権で実行されます。このスクリプトを使用すると、Microsoft Excel が Microsoft Excel ファイルをダウンロードすることを検出できます。監視している一部の実ネットワークでのテストでは、この組み合わせは非常に稀であり、これまでのところ誤検知は確認されていません。
$ zeek -Cr excelsploit_1.pcap packages
$ cat notice.log
#separator \x09
#set_separator ,
#empty_field (empty)
#unset_field -
#path notice
#open 2021-11-10-10-56-50
#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 email_dest suppress_for 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] set[string] interval string string string double double
1636433584.277654 CeV1DA2EM1pRTfgWkc 127.0.0.1 51543 127.0.0.1 80 - - - tcp CVE_2021_42292::CVE_2021_42292 127.0.0.1 may be compromised by CVE-2021-42292, MS Office Excel download using Office from 127.0.0.1 detected. See sub field for additional triage information host='127.0.0.1', method='HEAD', user_agent='Microsoft Office Excel 2014', CONTENT-TYPE='application/vnd.ms-excel', uri='/replica.xls' 127.0.0.1 127.0.0.1 80 - - Notice::ACTION_LOG (empty) 3600.000000 - - - - -
1636433584.311236 CgKWSM1bhhl7K8B6n8 127.0.0.1 51545 127.0.0.1 80 - - - tcp CVE_2021_42292::CVE_2021_42292 127.0.0.1 may be compromised by CVE-2021-42292, MS Office Excel download using Office from 127.0.0.1 detected. See sub field for additional triage information host='127.0.0.1', method='GET', user_agent='Mozilla/4.0 (compatible; ms-office; MSOffice 16)', CONTENT-TYPE='application/vnd.ms-excel', uri='/replica.xls' 127.0.0.1 127.0.0.1 80 - - Notice::ACTION_LOG (empty) 3600.000000 - - - - -
#close 2021-11-10-10-56-50
Zeek パッケージの検出方法を反映した Suricata ルールも提供されています。