YARA · SEKOIA.IO Community
SEKOIA_Loader_Win_Erbium
Detect the Erbium loader based on specific user-agent and URI
- Author
- Sekoia.io
- Date
- 2022-09-30
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detect the Erbium loader based on specific user-agent and URI
Targets: Windows PE.
It defines 4 patterns (4 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
loader-win-erbium.yarDetection Rule License 1.1
rule SEKOIA_Loader_Win_Erbium : FILE
{
meta:
= "Detect the Erbium loader based on specific user-agent and URI"
= "Sekoia.io"
= "d1e5be62-5677-4ef4-9f10-65baf36ab619"
= "2022-09-30"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_erbium.yar#L1-L19"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "e93e9dbf0e5412afa4640b4cf5d94374c4df38f8044d44c375e86508c0d4190a"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$str01 = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36" wide
$str02 = "cloud/getHost.php?method=getstub&bid=" wide
$str03 = "api.php?method=getstub&bid=" wide
$api = "WinHttp" ascii
condition:
uint16( 0 ) == 0x5A4D and 2 of ( $str* ) and #api > 6
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str01 | text | "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36" | wide |
| $str02 | text | "cloud/getHost.php?method=getstub&bid=" | wide |
| $str03 | text | "api.php?method=getstub&bid=" | wide |
| $api | text | "WinHttp" | ascii |
Condition
uint16( 0 ) == 0x5A4D and 2 of ( $str* ) and #api > 6In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 2 patterns in ( $str* ) must match.
- Pattern $api must occur > 6 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.
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: d1e5be62-5677-4ef4-9f10-65baf36ab619
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- 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
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20