YARA · SEKOIA.IO Community
SEKOIA_Win_Malware_Agnianestealer
Detect the Agniane stealer using strings
- Author
- Sekoia.io
- Date
- 2023-08-10
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detect the Agniane stealer using strings
Associated malware family: Agnianestealer.
Targets: Windows PE.
It defines 2 patterns (2 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
win-malware-agnianestealer.yarDetection Rule License 1.1
rule SEKOIA_Win_Malware_Agnianestealer : FILE
{
meta:
= "Detect the Agniane stealer using strings"
= "Sekoia.io"
= "704c85b7-8b82-4160-ae1b-fd1054cae8e2"
= "2023-08-10"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/win_malware_agnianestealer.yar#L1-L18"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "0aa40fcb713ab40711108290e8274d783c1336a2c4c03eba2fcc4a44f2ebe39f"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$s1 = "Agniane.pdb" ascii
$s2 = "Agniane.exe" wide ascii
condition:
( uint16be( 0 ) == 0x4d5a ) and filesize > 100KB and filesize < 3MB and 2 of them
}
Strings (2 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "Agniane.pdb" | ascii |
| $s2 | text | "Agniane.exe" | wide ascii |
Condition
( uint16be( 0 ) == 0x4d5a ) and filesize > 100KB and filesize < 3MB and 2 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 3MB (a cheap guard that skips large files).
- The file must be larger than 100KB.
- At least 2 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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
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: 704c85b7-8b82-4160-ae1b-fd1054cae8e2
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20