Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Avalon

Avalon infostealer payload

MalwareAvalonditekSHen 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

Avalon infostealer payload

Associated malware family: Avalon.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-avalon.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Avalon : FILE
{
	meta:
		description = "Avalon infostealer payload"
		author = "ditekSHen"
		id = "3de01419-9f45-5d82-8391-2e1e41df2b34"
		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#L1330-L1359"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "1aa9dc09ec4c8962dee0455dd367e32139e4c03f1b306f17ac6e82d71aacf713"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "Parsecards" fullword ascii
		$s2 = "Please_Gofuckyouself" fullword ascii
		$s3 = "GetDomainDetect" fullword ascii
		$s4 = "GetTotalCommander" fullword ascii
		$s5 = "KnownFolder" fullword ascii
		$s6 = "set_hidden" fullword ascii
		$s7 = "set_system" fullword ascii
		$l1 = "\\DomainDetect.txt" wide
		$l2 = "\\Grabber_Log.txt" wide
		$l3 = "\\Programs.txt" wide
		$l4 = "\\Passwords_Edge.txt" wide
		$l5 = "\\KL.txt" wide
		$w1 = "dont touch" fullword wide
		$w2 = "Grabber" fullword wide
		$w3 = "Keylogger" fullword wide
		$w4 = "password-check" fullword wide
		$w5 = "H4sIAAAAAAAEA" wide
		$p1 = "^(?!:\\/\\/)([a-zA-Z0-9-_]+\\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\\.[a-zA-Z]{2,11}?$" wide
		$p2 = "^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$" wide

	condition:
		uint16( 0 ) == 0x5a4d and 8 of them
}

Strings (19 patterns)

IdentifierTypeValueModifiers
$s1text"Parsecards"fullword ascii
$s2text"Please_Gofuckyouself"fullword ascii
$s3text"GetDomainDetect"fullword ascii
$s4text"GetTotalCommander"fullword ascii
$s5text"KnownFolder"fullword ascii
$s6text"set_hidden"fullword ascii
$s7text"set_system"fullword ascii
$l1text"\\DomainDetect.txt"wide
$l2text"\\Grabber_Log.txt"wide
$l3text"\\Programs.txt"wide
$l4text"\\Passwords_Edge.txt"wide
$l5text"\\KL.txt"wide
$w1text"dont touch"fullword wide
$w2text"Grabber"fullword wide
$w3text"Keylogger"fullword wide
$w4text"password-check"fullword wide
$w5text"H4sIAAAAAAAEA"wide
$p1text"^(?!:\\/\\/)([a-zA-Z0-9-_]+\\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\\.[a-zA-Z]{2,11}?$"wide
$p2text"^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$"wide

Condition

uint16( 0 ) == 0x5a4d and 8 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 8 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: 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: 3de01419-9f45-5d82-8391-2e1e41df2b34

Tags:FILE