YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Blackshadesrat
BlackshadesRAT / Cambot POS payload
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
BlackshadesRAT / Cambot POS payload
Associated malware family: Blackshadesrat.
Targets: Windows PE.
It defines 7 patterns (7 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-blackshadesrat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Blackshadesrat : FILE
{
meta:
= "BlackshadesRAT / Cambot POS payload"
= "ditekSHen"
= "bd0ad920-109a-50b5-94af-6580684bff52"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L1285-L1300"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "5c2a76ce52bce9c37a3518ff459011acb733c2c5abac74786e41a1c169459ce2"
= 75
= 75
= "FILE"
= "920208-920210"
strings:
$s1 = "bhookpl.dll" fullword wide
$s2 = "drvloadn.dll" fullword wide
$s3 = "drvloadx.dll" fullword wide
$s4 = "SPY_NET_RATMUTEX" fullword wide
$s5 = "\\dump.txt" fullword wide
$s6 = "AUTHLOADERDEFAULT" fullword wide
$pdb = "*\\AC:\\Users\\Admin\\Desktop_old\\Blackshades project\\bs_bot\\bots\\bot\\bs_bot.vbp" fullword wide
condition:
uint16( 0 ) == 0x5a4d and ( 4 of ( $s* ) or ( $pdb and 2 of ( $s* ) ) )
}
Strings (7 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "bhookpl.dll" | fullword wide |
| $s2 | text | "drvloadn.dll" | fullword wide |
| $s3 | text | "drvloadx.dll" | fullword wide |
| $s4 | text | "SPY_NET_RATMUTEX" | fullword wide |
| $s5 | text | "\\dump.txt" | fullword wide |
| $s6 | text | "AUTHLOADERDEFAULT" | fullword wide |
| $pdb | text | "*\\AC:\\Users\\Admin\\Desktop_old\\Blackshades project\\bs_bot\\bots\\bot\\bs_bot.vbp" | fullword wide |
Condition
uint16( 0 ) == 0x5a4d and ( 4 of ( $s* ) or ( $pdb and 2 of ( $s* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 4 patterns in ( $s* ) must match.
- At least 2 patterns in ( $s* ) must match.
- Pattern $pdb must be present.
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: bd0ad920-109a-50b5-94af-6580684bff52
Metadata
| snort_sid | 920208-920210 |
|---|
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