YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Blackbytego
Detects BlackByte ransomware Go variants
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects BlackByte ransomware Go variants
Associated malware family: Blackbytego.
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-blackbytego.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Blackbytego : FILE
{
meta:
= "Detects BlackByte ransomware Go variants"
= "ditekSHen"
= "25431446-8cce-54cc-925d-5d9147344c6d"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L8884-L8904"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "b3e6a4a2f043293e8693cfbe1515681ce0616d98e2492732fc06a01a96309883"
= 75
= 75
= "FILE"
strings:
$x1 = "BlackByteGO/_cgo_gotypes.go" fullword ascii
$x3 = "BlackByteGO/" ascii nocase
$s1 = ".Disconnect" ascii
$s2 = ".OpenService" ascii
$s3 = ".ListServices" ascii
$s4 = ".Start" ascii
$s5 = ".Encrypt" ascii
$s6 = ".Decrypt" ascii
$s7 = ".MustFindProc" ascii
$s8 = ".QuoRem" ascii
$s9 = "C:\\Windows\\regedit.exe" fullword wide
condition:
uint16( 0 ) == 0x5a4d and ( 1 of ( $x* ) or all of ( $s* ) )
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "BlackByteGO/_cgo_gotypes.go" | fullword ascii |
| $x3 | text | "BlackByteGO/" | ascii nocase |
| $s1 | text | ".Disconnect" | ascii |
| $s2 | text | ".OpenService" | ascii |
| $s3 | text | ".ListServices" | ascii |
| $s4 | text | ".Start" | ascii |
| $s5 | text | ".Encrypt" | ascii |
| $s6 | text | ".Decrypt" | ascii |
| $s7 | text | ".MustFindProc" | ascii |
| $s8 | text | ".QuoRem" | ascii |
| $s9 | text | "C:\\Windows\\regedit.exe" | fullword wide |
Condition
uint16( 0 ) == 0x5a4d and ( 1 of ( $x* ) or all of ( $s* ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $s* ) must match.
- At least 1 patterns in ( $x* ) 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: 25431446-8cce-54cc-925d-5d9147344c6d
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