YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_APT_NK_Andariel_Agni
Detects samples of the Agni malware family
- Author
- CISA.gov
- Date
- 2024-07-25
- Modified
- 2026-01-29
- Score / Quality
- 80 / 85
What this rule detects
Detects samples of the Agni malware family
Targets: Windows PE.
It defines 2 patterns (0 text, 2 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
mal-apt-nk-andariel-agni.yarDetection Rule License 1.1
rule SIGNATURE_BASE_MAL_APT_NK_Andariel_Agni : FILE
{
meta:
= "Detects samples of the Agni malware family"
= "CISA.gov"
= "ffe3f427-c10a-5ad4-ab29-c0d9b576c30f"
= "2024-07-25"
= "2026-01-29"
= "https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-207a"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_nk_andariel_jul24.yar#L201-L216"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "302899b65e5a3a6beabbb46e80e3f0ff246c209206cc3a7f871011d68871d0b9"
= 80
= 85
= "FILE"
strings:
$xor = { 34 ?? 88 01 48 8D 49 01 0F B6 01 84 C0 75 F1 }
$stackstrings = { C7 44 24 [5-10] C7 44 24 [5] C7 44 24 [5-10] C7 44 24 [5-10] C7 44 24 }
condition:
uint16( 0 ) == 0x5a4d and #xor > 100 and #stackstrings > 5
}
Strings (2 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $xor | hex | { 34 ?? 88 01 48 8D 49 01 0F B6 01 84 C0 75 F1 } | |
| $stackstrings | hex | { C7 44 24 [5-10] C7 44 24 [5] C7 44 24 [5-10] C7 44 24 [5-10] C7 44 24 } |
Condition
uint16( 0 ) == 0x5a4d and #xor > 100 and #stackstrings > 5In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- Pattern $xor must occur > 100 times.
- Pattern $stackstrings must occur > 5 times.
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
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: ffe3f427-c10a-5ad4-ab29-c0d9b576c30f
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· CISA.gov· 2024-07-25
- MalwareSignature Base (Florian Roth / Nextron)· CISA.gov· 2024-07-25
- MalwareSignature Base (Florian Roth / Nextron)· CISA.gov· 2024-07-25
- MalwareSignature Base (Florian Roth / Nextron)· CISA.gov· 2024-07-25
- MalwareSignature Base (Florian Roth / Nextron)· CISA.gov· 2024-07-25
- MalwareSignature Base (Florian Roth / Nextron)· CISA.gov· 2024-07-25
- MalwareSignature Base (Florian Roth / Nextron)· CISA.gov· 2024-07-25
- MalwareSignature Base (Florian Roth / Nextron)· CISA.gov· 2024-07-25