YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Cyberstealer
Detects CyberStealer infostealer
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 71
What this rule detects
Detects CyberStealer infostealer
Associated malware family: Cyberstealer.
Targets: Windows PE.
It defines 14 patterns (14 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-cyberstealer.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Cyberstealer : FILE
{
meta:
= "Detects CyberStealer infostealer"
= "ditekSHen"
= "cb02013f-ffb2-5a17-9d6e-1d19b0e98fb8"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9920-L9941"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "72413b68fa1381656202165dcd878761727e7caf0f15ccd65f3f2f842243a1f6"
= 75
= 71
= "FILE"
strings:
$x1 = "\\Cyber Stealer\\" ascii
$s1 = "[Virtualization]" fullword wide
$s2 = "\"encryptedPassword\":\"([^\"]+)\"" fullword wide
$s3 = "CreditCard" fullword ascii
$s4 = "DecryptPassword" fullword ascii
$s5 = "_modTime" fullword ascii
$s6 = "_pathname" fullword ascii
$s7 = "_pathnameInZip" fullword ascii
$s8 = "GetBookmarksDBPath" fullword ascii
$s9 = "GrabberImages" fullword ascii
$r1 = "^1[a-km-zA-HJ-NP-Z1-9]{25,34}$" wide
$r2 = "^3[a-km-zA-HJ-NP-Z1-9]{25,34}$" wide
$r3 = "^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$" wide
$r4 = "^(?!:\\/\\/)([a-zA-Z0-9-_]+\\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\\.[a-zA-Z]{2,11}?$" wide
condition:
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and ( 2 of ( $s* ) or 2 of ( $r* ) ) ) or 7 of ( $s* ) or ( 5 of ( $s* ) and 2 of ( $r* ) ) or ( all of ( $r* ) and 4 of ( $s* ) ) )
}
Strings (14 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "\\Cyber Stealer\\" | ascii |
| $s1 | text | "[Virtualization]" | fullword wide |
| $s2 | text | "\"encryptedPassword\":\"([^\"]+)\"" | fullword wide |
| $s3 | text | "CreditCard" | fullword ascii |
| $s4 | text | "DecryptPassword" | fullword ascii |
| $s5 | text | "_modTime" | fullword ascii |
| $s6 | text | "_pathname" | fullword ascii |
| $s7 | text | "_pathnameInZip" | fullword ascii |
| $s8 | text | "GetBookmarksDBPath" | fullword ascii |
| $s9 | text | "GrabberImages" | fullword ascii |
| $r1 | text | "^1[a-km-zA-HJ-NP-Z1-9]{25,34}$" | wide |
| $r2 | text | "^3[a-km-zA-HJ-NP-Z1-9]{25,34}$" | wide |
| $r3 | text | "^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$" | wide |
| $r4 | text | "^(?!:\\/\\/)([a-zA-Z0-9-_]+\\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\\.[a-zA-Z]{2,11}?$" | wide |
Condition
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and ( 2 of ( $s* ) or 2 of ( $r* ) ) ) or 7 of ( $s* ) or ( 5 of ( $s* ) and 2 of ( $r* ) ) or ( all of ( $r* ) and 4 of ( $s* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $r* ) must match.
- At least 1 patterns in ( $x* ) must match.
- At least 2 patterns in ( $s* ) must match.
- At least 2 patterns in ( $r* ) must match.
- At least 7 patterns in ( $s* ) must match.
- At least 5 patterns in ( $s* ) must match.
- At least 4 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: cb02013f-ffb2-5a17-9d6e-1d19b0e98fb8
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