Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Loader_Win_Aresloader

Finds AresLoader samples based on characteristic strings

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-05-02
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Finds AresLoader samples based on characteristic strings

Targets: Windows PE.

It defines 13 patterns (13 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

loader-win-aresloader.yarDetection Rule License 1.1
rule SEKOIA_Loader_Win_Aresloader : FILE
{
	meta:
		description = "Finds AresLoader samples based on characteristic strings"
		author = "Sekoia.io"
		id = "bf5070fc-c8ca-4458-8702-cd1830667b7a"
		date = "2023-05-02"
		modified = "2024-12-19"
		reference = "https://blog.cyble.com/2023/04/28/citrix-users-at-risk-aresloader-spreading-through-disguised-gitlab-repo/"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_aresloader.yar#L1-L28"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "2edbb625394506e865580373d5c3454b4fa201183c84d247b4373f24e25f5fd4"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "{\\\"ip\\\": '%s', \\\"UID\\\": '%s', \\\"geo\\\": '%s', \\\"service\\\": '%s', \\\"owner_token\\\": '%s'}" ascii
		$str02 = "AresLdr_v_3" ascii
		$str03 = "https://ipinfo.io/ip" ascii
		$str04 = "C:\\Users\\%s\\AppData\\Roaming\\%s\\%s" ascii
		$str05 = "/manager/payload" ascii
		$str06 = "/manager/loader" ascii
		$str07 = "/manager/legit" ascii
		$str08 = "/manager/hvnc" ascii
		$str09 = "C%p %d V=%0X w=%ld %s" ascii
		$str10 = "rundll32.exe %s,%s" ascii
		$str11 = "%startinfo" ascii
		$str12 = "%managedapp" ascii
		$str13 = "%has_cctor" ascii

	condition:
		uint16( 0 ) == 0x5A4D and 5 of them
}

Strings (13 patterns)

IdentifierTypeValueModifiers
$str01text"{\\\"ip\\\": '%s', \\\"UID\\\": '%s', \\\"geo\\\": '%s', \\\"service\\\": '%s', \\\"owner_token\\\": '%s'}"ascii
$str02text"AresLdr_v_3"ascii
$str03text"https://ipinfo.io/ip"ascii
$str04text"C:\\Users\\%s\\AppData\\Roaming\\%s\\%s"ascii
$str05text"/manager/payload"ascii
$str06text"/manager/loader"ascii
$str07text"/manager/legit"ascii
$str08text"/manager/hvnc"ascii
$str09text"C%p %d V=%0X w=%ld %s"ascii
$str10text"rundll32.exe %s,%s"ascii
$str11text"%startinfo"ascii
$str12text"%managedapp"ascii
$str13text"%has_cctor"ascii

Condition

uint16( 0 ) == 0x5A4D and 5 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 5 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.

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: bf5070fc-c8ca-4458-8702-cd1830667b7a

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE