Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Blackshadesrat

BlackshadesRAT / Cambot POS payload

MalwareBlackshadesratditekSHen 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

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:
		description = "BlackshadesRAT / Cambot POS payload"
		author = "ditekSHen"
		id = "bd0ad920-109a-50b5-94af-6580684bff52"
		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#L1285-L1300"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "5c2a76ce52bce9c37a3518ff459011acb733c2c5abac74786e41a1c169459ce2"
		score = 75
		quality = 75
		tags = "FILE"
		snort_sid = "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)

IdentifierTypeValueModifiers
$s1text"bhookpl.dll"fullword wide
$s2text"drvloadn.dll"fullword wide
$s3text"drvloadx.dll"fullword wide
$s4text"SPY_NET_RATMUTEX"fullword wide
$s5text"\\dump.txt"fullword wide
$s6text"AUTHLOADERDEFAULT"fullword wide
$pdbtext"*\\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.

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: bd0ad920-109a-50b5-94af-6580684bff52

Metadata

snort_sid920208-920210

Tags:FILE