Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Slothfulmedia

SlothfulMedia backdoor payload

MalwareSlothfulmediaditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 73

What this rule detects

SlothfulMedia backdoor payload

Associated malware family: Slothfulmedia.

Targets: Windows PE.

It defines 17 patterns (13 text, 0 hex, 4 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-slothfulmedia.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Slothfulmedia : FILE
{
	meta:
		description = "SlothfulMedia backdoor payload"
		author = "ditekSHen"
		id = "e94b6d67-137c-5cfb-9c59-fbeb6cd85f0a"
		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#L1539-L1565"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "6f742e8d9d555b44daaa09835f599c99e16cd39bb106c8f43fbbca7093de462e"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$x1 = /ExtKeylogger(Start|Stop)/ fullword ascii
		$x2 = /ExtService(Add|Delete|Start|Stop)/ fullword ascii
		$x3 = /ExtRegKey(Add|Del)/ fullword ascii
		$x4 = /ExtRegItem(Add|Del)/ fullword ascii
		$x5 = "ExtUnload" fullword ascii
		$s1 = "Local Security Process" fullword wide
		$s2 = "Global%s%d" fullword wide
		$s3 = "%s%s_%d.dat" fullword wide
		$s4 = "\\AppIni" fullword wide
		$s5 = "%s.tmp" fullword wide
		$s6 = "\\SetupUi" fullword wide
		$s7 = "%s|%s|%s|%s" fullword wide
		$s8 = "\\ExtInfo" fullword wide
		$cnc1 = "/v?m=" fullword ascii
		$cnc2 = "%s&i=%d" fullword ascii
		$cnc3 = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.75" fullword ascii
		$cnc4 = "Content-Length: %d" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 3 of ( $x* ) or 7 of ( $s* ) or all of ( $cnc* ) or ( 1 of ( $x* ) and 4 of ( $s* ) ) )
}

Strings (17 patterns)

IdentifierTypeValueModifiers
$x1regex/ExtKeylogger(Start|Stop)/fullword ascii
$x2regex/ExtService(Add|Delete|Start|Stop)/fullword ascii
$x3regex/ExtRegKey(Add|Del)/fullword ascii
$x4regex/ExtRegItem(Add|Del)/fullword ascii
$x5text"ExtUnload"fullword ascii
$s1text"Local Security Process"fullword wide
$s2text"Global%s%d"fullword wide
$s3text"%s%s_%d.dat"fullword wide
$s4text"\\AppIni"fullword wide
$s5text"%s.tmp"fullword wide
$s6text"\\SetupUi"fullword wide
$s7text"%s|%s|%s|%s"fullword wide
$s8text"\\ExtInfo"fullword wide
$cnc1text"/v?m="fullword ascii
$cnc2text"%s&i=%d"fullword ascii
$cnc3text"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.75"fullword ascii
$cnc4text"Content-Length: %d"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and ( 3 of ( $x* ) or 7 of ( $s* ) or all of ( $cnc* ) or ( 1 of ( $x* ) and 4 of ( $s* ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $cnc* ) must match.
  • At least 3 patterns in ( $x* ) must match.
  • At least 7 patterns in ( $s* ) must match.
  • At least 1 patterns in ( $x* ) must match.
  • At least 4 patterns in ( $s* ) 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: e94b6d67-137c-5cfb-9c59-fbeb6cd85f0a

Tags:FILE

More Slothfulmedia rules