Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Sweetystealer

Detects SweetyStealer

MalwareSweetystealerditekSHen 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 SweetyStealer

Associated malware family: Sweetystealer.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-sweetystealer.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Sweetystealer : FILE
{
	meta:
		description = "Detects SweetyStealer"
		author = "ditekSHen"
		id = "21dd1706-2cb5-5b27-ad3a-c3de8e6fb333"
		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#L7590-L7608"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "ecf22240b47af077055260faba0406721f1b4cc5ed04180285df0de86c4e1241"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "SWEETY STEALER" wide
		$s2 = "\\SWEETYLOG.zip" fullword wide
		$s3 = "\\SWEETY STEALER\\SWEETY\\" ascii
		$s4 = "\\Sweety" fullword wide
		$s5 = "SWEETYSTEALER." ascii
		$s6 = "in Virtual Environment, so we prevented stealing" wide
		$s7 = ":purple_square:" wide
		$f1 = "<GetDomainDetect>b__" ascii
		$f2 = "<GetAllProfiles>b__" ascii
		$f3 = "<ProcessExtraFieldZip64>b__" ascii
		$f4 = "<PostExtractCommandLine>k__" ascii

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

Strings (11 patterns)

IdentifierTypeValueModifiers
$s1text"SWEETY STEALER"wide
$s2text"\\SWEETYLOG.zip"fullword wide
$s3text"\\SWEETY STEALER\\SWEETY\\"ascii
$s4text"\\Sweety"fullword wide
$s5text"SWEETYSTEALER."ascii
$s6text"in Virtual Environment, so we prevented stealing"wide
$s7text":purple_square:"wide
$f1text"<GetDomainDetect>b__"ascii
$f2text"<GetAllProfiles>b__"ascii
$f3text"<ProcessExtraFieldZip64>b__"ascii
$f4text"<PostExtractCommandLine>k__"ascii

Condition

uint16( 0 ) == 0x5a4d and 3 of ( $s* ) or ( 3 of ( $f* ) and 1 of ( $s* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 3 patterns in ( $s* ) must match.
  • At least 3 patterns in ( $f* ) must match.
  • At least 1 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: 21dd1706-2cb5-5b27-ad3a-c3de8e6fb333

Tags:FILE