Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Blackbytego

Detects BlackByte ransomware Go variants

MalwareBlackbytegoditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects BlackByte ransomware Go variants"
		author = "ditekSHen"
		id = "25431446-8cce-54cc-925d-5d9147344c6d"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L8884-L8904"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "b3e6a4a2f043293e8693cfbe1515681ce0616d98e2492732fc06a01a96309883"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$x1text"BlackByteGO/_cgo_gotypes.go"fullword ascii
$x3text"BlackByteGO/"ascii nocase
$s1text".Disconnect"ascii
$s2text".OpenService"ascii
$s3text".ListServices"ascii
$s4text".Start"ascii
$s5text".Encrypt"ascii
$s6text".Decrypt"ascii
$s7text".MustFindProc"ascii
$s8text".QuoRem"ascii
$s9text"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.

Open in editor

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).

Original rule

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