Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Loader_Win_Erbium

Detect the Erbium loader based on specific user-agent and URI

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
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:
		description = "Detect the Erbium loader based on specific user-agent and URI"
		author = "Sekoia.io"
		id = "d1e5be62-5677-4ef4-9f10-65baf36ab619"
		date = "2022-09-30"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_erbium.yar#L1-L19"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "e93e9dbf0e5412afa4640b4cf5d94374c4df38f8044d44c375e86508c0d4190a"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$str01text"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36"wide
$str02text"cloud/getHost.php?method=getstub&bid="wide
$str03text"api.php?method=getstub&bid="wide
$apitext"WinHttp"ascii

Condition

uint16( 0 ) == 0x5A4D and 2 of ( $str* ) and #api > 6

In 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.

Open in editor

References

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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

version1.0
classificationTLP:CLEAR

Tags:FILE