YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Blacknet
Detects BlackNET RAT
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects BlackNET RAT
Associated malware family: Blacknet.
Targets: Windows PE.
It defines 18 patterns (18 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-blacknet.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Blacknet : FILE
{
meta:
= "Detects BlackNET RAT"
= "ditekSHen"
= "c1ece46a-3cd9-54aa-a105-1c5b19357a7e"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L2222-L2250"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "64e00325a5a6a595067c6133800e73d943f45e2783475c24ed4a9bd9937fe0d6"
= 75
= 75
= "FILE"
= "920079-920082"
= "920079-920082"
= "MALWARE.Win.Trojan.BlackNET"
strings:
$s1 = "SbieCtrl" fullword wide
$s2 = "SpyTheSpy" fullword wide
$s3 = "\\BlackNET.dat" fullword wide
$s4 = "StartDDOS" fullword wide
$s5 = "UDPAttack" fullword wide
$s6 = "ARMEAttack" fullword wide
$s7 = "TCPAttack" fullword wide
$s8 = "HTTPGetAttack" fullword wide
$s9 = "RetriveLogs" fullword wide
$s10 = "StealPassword" fullword wide
$s11 = "/create /f /sc ONSTART /RL HIGHEST /tn \"'" fullword wide
$b1 = "DeleteScript|BN|" fullword wide
$b2 = "|BN|Online" fullword wide
$b3 = "NewLog|BN|" fullword wide
$cnc1 = "/getCommand.php?id=" fullword wide
$cnc2 = "/upload.php?id=" fullword wide
$cnc3 = "connection.php?data=" fullword wide
$cnc4 = "/receive.php?command=" fullword wide
condition:
uint16( 0 ) == 0x5a4d and ( 9 of ( $s* ) or all of ( $cnc* ) or all of ( $b* ) or 12 of them )
}
Strings (18 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "SbieCtrl" | fullword wide |
| $s2 | text | "SpyTheSpy" | fullword wide |
| $s3 | text | "\\BlackNET.dat" | fullword wide |
| $s4 | text | "StartDDOS" | fullword wide |
| $s5 | text | "UDPAttack" | fullword wide |
| $s6 | text | "ARMEAttack" | fullword wide |
| $s7 | text | "TCPAttack" | fullword wide |
| $s8 | text | "HTTPGetAttack" | fullword wide |
| $s9 | text | "RetriveLogs" | fullword wide |
| $s10 | text | "StealPassword" | fullword wide |
| $s11 | text | "/create /f /sc ONSTART /RL HIGHEST /tn \"'" | fullword wide |
| $b1 | text | "DeleteScript|BN|" | fullword wide |
| $b2 | text | "|BN|Online" | fullword wide |
| $b3 | text | "NewLog|BN|" | fullword wide |
| $cnc1 | text | "/getCommand.php?id=" | fullword wide |
| $cnc2 | text | "/upload.php?id=" | fullword wide |
| $cnc3 | text | "connection.php?data=" | fullword wide |
| $cnc4 | text | "/receive.php?command=" | fullword wide |
Condition
uint16( 0 ) == 0x5a4d and ( 9 of ( $s* ) or all of ( $cnc* ) or all of ( $b* ) or 12 of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $cnc* ) must match.
- All patterns in ( $b* ) must match.
- At least 9 patterns in ( $s* ) must match.
- At least 12 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.
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: c1ece46a-3cd9-54aa-a105-1c5b19357a7e
Metadata
| snort2_sid | 920079-920082 |
|---|---|
| snort3_sid | 920079-920082 |
| clamav_sig | MALWARE.Win.Trojan.BlackNET |
Tags:FILE
Related rules
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-30
- 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