YARA · SEKOIA.IO Community
SEKOIA_Rat_Win_Nighthawk
Detects Nighthawk RAT
- Autor
- Sekoia.io
- Datum
- 2022-11-23
- Geändert
- 2024-12-19
- Score / Qualität
- 75 / 80
Was diese Regel erkennt
Detects Nighthawk RAT
Zugehörige Malware-Familie: Nighthawk.
Ziele: Windows-PE.
Sie definiert 2 Muster (0 Text, 2 Hex, 0 Regex). Verwendete YARA-Module: pe.
YARA-X meldet: warning[non_bool_expr]: non-boolean expression used as boolean
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
Enthält die Imports, die zum eigenständigen Kompilieren nötig sind.
import "pe"
rule SEKOIA_Rat_Win_Nighthawk : FILE
{
meta:
= "Detects Nighthawk RAT"
= "Sekoia.io"
= "91bc3c5b-83fd-47f8-9652-df0f6a70b693"
= "2022-11-23"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_win_nighthawk.yar#L3-L25"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "0551ca07f05c2a8278229c1dc651a2b1273a39914857231b075733753cb2b988"
= "9a57919cc5c194e28acd62719487c563a8f0ef1205b65adbe535386e34e418b8"
= "38881b87826f184cc91559555a3456ecf00128e01986a9df36a72d60fb179ccf"
= "f3bba2bfd4ed48b5426e36eba3b7613973226983a784d24d7a20fcf9df0de74e"
= "b775a8f7629966592cc7727e2081924a7d7cf83edd7447aa60627a2b67d87c94"
= "9a0c72de5b097f74d3c44586b8355c410470992f37d9a09c5f6db36ad6286d70"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$pattern1 = { 48 8d 0d ?? ?? ?? ?? 51 5a 48 81 c1 ?? ?? ?? ?? 48 81 c2 ?? ?? ?? ?? ff e2 }
$pattern2 = { 66 03 D2 66 33 D1 66 C1 E2 02 66 33 D1 66 23 D0 0F B7 C1 }
condition:
uint16( 0 ) == 0x5A4D and filesize < 2MB and ( ( 1 of them ) or ( pe.section_index ( ".profile" ) and pe.section_index ( ".detourc" ) ) )
}
Strings (2 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $pattern1 | Hex | { 48 8d 0d ?? ?? ?? ?? 51 5a 48 81 c1 ?? ?? ?? ?? 48 81 c2 ?? ?? ?? ?? ff e2 } | |
| $pattern2 | Hex | { 66 03 D2 66 33 D1 66 C1 E2 02 66 33 D1 66 23 D0 0F B7 C1 } |
Bedingung
uint16( 0 ) == 0x5A4D and filesize < 2MB and ( ( 1 of them ) or ( pe.section_index ( ".profile" ) and pe.section_index ( ".detourc" ) ) )In Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Die Datei muss kleiner als 2MB sein (eine günstige Grenze, die große Dateien ausschließt).
- Mindestens 1 Muster aus der Regel müssen treffen.
- Nutzt das Modul pe.
- Prüft PE-Sektionen (Namen, Anzahl oder Eigenschaften).
Diese Regel im Browser testen
Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.
Referenzen
Proben-Hashes
Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).
- 0551ca07f05c2a8278229c1dc651a2b1273a39914857231b075733753cb2b988
- 9a57919cc5c194e28acd62719487c563a8f0ef1205b65adbe535386e34e418b8
- 38881b87826f184cc91559555a3456ecf00128e01986a9df36a72d60fb179ccf
- f3bba2bfd4ed48b5426e36eba3b7613973226983a784d24d7a20fcf9df0de74e
- b775a8f7629966592cc7727e2081924a7d7cf83edd7447aa60627a2b67d87c94
Lizenz & Namensnennung
Autor: Sekoia.io
Quell-Repository: SEKOIA.IO Community @ a438a5901a
Lizenz: Detection Rule License 1.1 (Repository-Lizenz)
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: 91bc3c5b-83fd-47f8-9652-df0f6a70b693
Metadaten
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Verwandte Regeln
- HacktoolSignature Base (Florian Roth / Nextron)· Frank Boldewin (@r3c0nst)· 2022-11-22
- HacktoolSignature Base (Florian Roth / Nextron)· Arkbird_SOLG· 2022-11-22
- HacktoolMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- HacktoolCAPE Sandbox (CAPEv2)· Nikhil Ashok Hegde <@ka1do9>· 2022-12-03
- R3C0NST_Nighthawk_RATNur MetadatenHacktoolFrank Boldewin (R3c0nst)· Frank Boldewin (@r3c0nst)· 2022-11-30
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22