Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Aliencrypter

Detects AlienCrypter injector/downloader/obfuscator

MalwareAliencrypterditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 75

What this rule detects

Detects AlienCrypter injector/downloader/obfuscator

Associated malware family: Aliencrypter.

Targets: Windows PE.

It defines 7 patterns (5 text, 2 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-aliencrypter.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Aliencrypter : FILE
{
	meta:
		description = "Detects AlienCrypter injector/downloader/obfuscator"
		author = "ditekSHen"
		id = "af9e785a-bdec-5d3e-9a50-56f7f1a0507e"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L2022-L2036"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "28a2a6e6d58fd6efbb5753a7be5b621a3eac546d45f9481b9dd2641cbe70b547"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = ".AlienRunPE." ascii wide
		$s2 = "RunAsNewUser_RunDLL" fullword wide
		$s3 = { 00 50 52 4f 43 45 53 53 5f 53 55 53 50 45 4e 44 5f 52 45 53 55 4d 45 00 64 6e 6c 69 62 2e 50 45 00 }
		$s4 = { 2e 41 6c 69 65 6e 52 75 6e 50 45 00 50 52 4f 43 45 53 53 5f 54 45 52 4d 49 4e 41 54 45 00 }
		$s5 = "@@@http" wide
		$resp1 = "</p><p>@@@77,90," ascii wide
		$resp2 = "</p><p>@@@HH,JA," ascii wide

	condition:
		( uint16( 0 ) == 0x5a4d and 3 of them ) or ( 1 of ( $resp* ) and 2 of ( $s* ) )
}

Strings (7 patterns)

IdentifierTypeValueModifiers
$s1text".AlienRunPE."ascii wide
$s2text"RunAsNewUser_RunDLL"fullword wide
$s3hex{ 00 50 52 4f 43 45 53 53 5f 53 55 53 50 45 4e 44 5f 52 45 53 55 4d 45 00 64 6e 6c 69 62 2e 50 45 00 }
$s4hex{ 2e 41 6c 69 65 6e 52 75 6e 50 45 00 50 52 4f 43 45 53 53 5f 54 45 52 4d 49 4e 41 54 45 00 }
$s5text"@@@http"wide
$resp1text"</p><p>@@@77,90,"ascii wide
$resp2text"</p><p>@@@HH,JA,"ascii wide

Condition

( uint16( 0 ) == 0x5a4d and 3 of them ) or ( 1 of ( $resp* ) and 2 of ( $s* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 3 patterns in the rule must match.
  • At least 1 patterns in ( $resp* ) must match.
  • At least 2 patterns in ( $s* ) 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: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: af9e785a-bdec-5d3e-9a50-56f7f1a0507e

Tags:FILE