YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Sweetystealer
Detects SweetyStealer
- 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:
= "Detects SweetyStealer"
= "ditekSHen"
= "21dd1706-2cb5-5b27-ad3a-c3de8e6fb333"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7590-L7608"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "ecf22240b47af077055260faba0406721f1b4cc5ed04180285df0de86c4e1241"
= 75
= 75
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "SWEETY STEALER" | wide |
| $s2 | text | "\\SWEETYLOG.zip" | fullword wide |
| $s3 | text | "\\SWEETY STEALER\\SWEETY\\" | ascii |
| $s4 | text | "\\Sweety" | fullword wide |
| $s5 | text | "SWEETYSTEALER." | ascii |
| $s6 | text | "in Virtual Environment, so we prevented stealing" | wide |
| $s7 | text | ":purple_square:" | wide |
| $f1 | text | "<GetDomainDetect>b__" | ascii |
| $f2 | text | "<GetAllProfiles>b__" | ascii |
| $f3 | text | "<ProcessExtraFieldZip64>b__" | ascii |
| $f4 | text | "<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.
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).
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
Related rules
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06