YARA · CAPE Sandbox (CAPEv2)
CAPE_Nighthawk
NightHawk C2
- Autor
- Nikhil Ashok Hegde <@ka1do9>
- Datum
- 2022-12-03
- Geändert
- 2022-12-05
- Score / Qualität
- 75 / 70
Was diese Regel erkennt
NightHawk C2
Zugehörige Malware-Familie: Nighthawk.
Ziele: Windows-PE.
Sie definiert 3 Muster (0 Text, 3 Hex, 0 Regex). Verwendete YARA-Module: pe.
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 CAPE_Nighthawk
{
meta:
= "NightHawk C2"
= "Nikhil Ashok Hegde <@ka1do9>"
= "096b9d13-6aa7-5b6e-aaeb-e25aa7c8c53f"
= "2022-12-03"
= "2022-12-05"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/Nighthawk.yar#L3-L24"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "2d77912678e06503ffef0e8ed84aa4f9ac74357480d57742fbae619acebfb5f2"
= 75
= 70
= ""
= "Nighthawk Payload"
strings:
$keying_methods = { 85 C9 74 43 83 E9 01 74 1C 83 F9 01 0F 85 }
$aes_sbox = { 63 7C 77 7B F2 6B 6F C5 30 }
$aes_inv_sbox = { 52 09 6A D5 30 36 A5 38 BF }
condition:
pe.is_pe and for any s in pe.sections : ( s.name == ".profile" ) and all of them
}
Strings (3 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $keying_methods | Hex | { 85 C9 74 43 83 E9 01 74 1C 83 F9 01 0F 85 } | |
| $aes_sbox | Hex | { 63 7C 77 7B F2 6B 6F C5 30 } | |
| $aes_inv_sbox | Hex | { 52 09 6A D5 30 36 A5 38 BF } |
Bedingung
pe.is_pe and for any s in pe.sections : ( s.name == ".profile" ) and all of themIn Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Alle Muster aus der Regel müssen treffen.
- Eine for-Schleife prüft eine Eigenschaft über mehrere Treffer oder Elemente.
- Nutzt das Modul pe.
- Nutzt das Modul s.
- 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
Lizenz & Namensnennung
Autor: Nikhil Ashok Hegde <@ka1do9>
Quell-Repository: CAPE Sandbox (CAPEv2) @ 6b15e76f28
Lizenz: GNU General Public License v3.0 (Repository-Lizenz)
Copyright-Hinweis: Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: 096b9d13-6aa7-5b6e-aaeb-e25aa7c8c53f
Metadaten
| cape_type | Nighthawk Payload |
|---|
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
- R3C0NST_Nighthawk_RATNur MetadatenHacktoolFrank Boldewin (R3c0nst)· Frank Boldewin (@r3c0nst)· 2022-11-30
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-11-23