Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Win_Loader_Astasialoader_Strings

AstasiaLoader strings

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

What this rule detects

AstasiaLoader strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

win-loader-astasialoader-strings.yarDetection Rule License 1.1
rule SEKOIA_Win_Loader_Astasialoader_Strings : FILE
{
	meta:
		description = "AstasiaLoader strings"
		author = "Sekoia.io"
		id = "8dfabf28-4b5a-43db-87e9-5b9080541ec3"
		date = "2023-08-16"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/win_loader_astasialoader_strings.yar#L1-L25"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "44b6f7508a82ff6a4d65defc189303eeee393b5fd498de73d74d0a2c75c87401"
		logic_hash = "02a7bed506865d761ec03b8de4b7fc636b71f48c62e933013f2ffa23deabb62e"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "newuploaders" wide
		$s2 = "\\infected.exe" wide
		$s3 = "AstasiaLoader" wide
		$s4 = "Astasia.pdb" ascii
		$s5 = "ip-api.com/line/?fields=hosting" wide
		$s6 = "https://api.telegram.org/bot" wide
		$s7 = "currentscript.txt" wide
		$s8 = "sessionlog.txt" wide

	condition:
		uint16be( 0 ) == 0x4d5a and filesize > 50KB and filesize < 1MB and 5 of them
}

Strings (8 patterns)

IdentifierTypeValueModifiers
$s1text"newuploaders"wide
$s2text"\\infected.exe"wide
$s3text"AstasiaLoader"wide
$s4text"Astasia.pdb"ascii
$s5text"ip-api.com/line/?fields=hosting"wide
$s6text"https://api.telegram.org/bot"wide
$s7text"currentscript.txt"wide
$s8text"sessionlog.txt"wide

Condition

uint16be( 0 ) == 0x4d5a and filesize > 50KB and filesize < 1MB and 5 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 1MB (a cheap guard that skips large files).
  • The file must be larger than 50KB.
  • 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

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • 44b6f7508a82ff6a4d65defc189303eeee393b5fd498de73d74d0a2c75c87401

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: 8dfabf28-4b5a-43db-87e9-5b9080541ec3

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE