
Brute Ratel C4 バジャーをデコードするためのツールとルールのコレクション
Brute Ratel C4 バッジャーをデコードするためのツールとルールのコレクション
すべてのツールとルールは、PaloAlto のレポート https://unit42.paloaltonetworks.com/brute-ratel-c4-tool/ で特定されたサンプルに基づいています。
この Yara ルールは、Unit42 レポートに含まれるサンプルと、このルールによって識別された追加サンプルに対してテストされています。
❯ yara rule.yar
BruteRatel ./hacker.exe
BruteRatel ./badger_x64.exe
BruteRatel ./trustwave.exe
BruteRatel ./adi_badger_x64_2.exe
BruteRatel ./npser.exe
BruteRatel ./twitter.exe
BruteRatel ./X64 Brute Ratel C4 Windows Kernel Module.bin
BruteRatel ./sample2.exe
BruteRatel ./HorionInjector.exe
BruteRatel ./http_badger_x64.exe
BruteRatel ./sample1.exe
この Config デコーダーは、Unit42 レポートで識別されたサンプルと、上記の Yara ルールを使用して見つかった追加サンプルに対してテストされています。
これまでのところ、サンプルでは単一の静的キーのみが観察されています。
❯ python3 decoder.py sample1.exe
[+] Brute Ratel C4 Config Extractor by Immersive Labs
[+] Reading contents of file "sample1.exe"
[-] Config Pattern Detected
[-] May be encrypted testing key b'bYXJm/3#M?:XyMBF'
[+] Printing config to screen
||0|1|192.168.2.9|443|Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36|12345|P@ssw0rd|/admin||