YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_APT_NK_Andariel_Grease2
Detects the Grease2 malware family used by Andariel
- Author
- CISA.gov (modified by Florian Roth, Nextron Systems)
- Date
- 2024-07-25
- Modified
- 2024-07-26
- Score / Quality
- 80 / 85
What this rule detects
Detects the Grease2 malware family used by Andariel
Targets: Windows PE.
It defines 4 patterns (4 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
mal-apt-nk-andariel-grease2.yarDetection Rule License 1.1
rule SIGNATURE_BASE_MAL_APT_NK_Andariel_Grease2 : FILE
{
meta:
= "Detects the Grease2 malware family used by Andariel"
= "CISA.gov (modified by Florian Roth, Nextron Systems)"
= "4defbe08-b3c6-5ab9-9a57-cec57ff42d9a"
= "2024-07-25"
= "2024-07-26"
= "https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-207a"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_nk_andariel_jul24.yar#L330-L351"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "138fc915206e0c2834090ebc0a808913488121d51c17de3dbfadcb4099fbfa2f"
= 80
= 85
= "FILE"
strings:
$str_rdpconf = "emp\\RDPConf.exe"
$str_rdpwinst = "emp\\RDPWInst.exe"
$str_net_user = "net user"
$str_admins_add = "net localgroup administrators"
condition:
uint16( 0 ) == 0x5A4D and all of them
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str_rdpconf | text | "emp\\RDPConf.exe" | |
| $str_rdpwinst | text | "emp\\RDPWInst.exe" | |
| $str_net_user | text | "net user" | |
| $str_admins_add | text | "net localgroup administrators" |
Condition
uint16( 0 ) == 0x5A4D and all of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in the rule must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
Licence & attribution
Author: CISA.gov (modified by Florian Roth, Nextron Systems)
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 4defbe08-b3c6-5ab9-9a57-cec57ff42d9a
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· CISA.gov (modified by Florian Roth, Nextron Systems)· 2024-07-25
- MalwareSignature Base (Florian Roth / Nextron)· CISA.gov (modified by Florian Roth, Nextron Systems)· 2024-07-25
- MalwareSignature Base (Florian Roth / Nextron)· CISA.gov (modified by Florian Roth, Nextron Systems)· 2024-07-25
- MalwareSignature Base (Florian Roth / Nextron)· CISA.gov (modified by Florian Roth, Nextron Systems)· 2024-07-25