Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_PWSH_CUMII

Detects multi-dropper PowerShell

MalwarePWSHditekSHen 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 multi-dropper PowerShell

Associated malware family: PWSH.

It defines 8 patterns (8 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-pwsh-cumii.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_PWSH_CUMII
{
	meta:
		description = "Detects multi-dropper PowerShell"
		author = "ditekSHen"
		id = "07b77251-1d79-5521-8c05-ecfc662f45cb"
		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#L11070-L11086"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "ab9e59b0552718928d170a988d129b38352700076847f2f409976016858864eb"
		score = 75
		quality = 75
		tags = ""
		clamav = "ditekSHen.MALWARE.PWSH.CUMII"

	strings:
		$s1 = ".('{1}{$}'.replace('$','0')" ascii nocase
		$s2 = ",'I').replace('!','ex')" ascii nocase
		$s3 = "'.replace('*','0001')" ascii nocase
		$s4 = "Remove-Item $" ascii nocase
		$s5 = "the File will start cumiing" ascii nocase
		$b1 = "011001100111010101101110011*" ascii
		$b2 = "0101001000*1110110*010011111" ascii
		$b3 = "01001101010110101001*11*0000" ascii

	condition:
		(3 of ( $s* ) and 1 of ( $b* ) )
}

Strings (8 patterns)

IdentifierTypeValueModifiers
$s1text".('{1}{$}'.replace('$','0')"ascii nocase
$s2text",'I').replace('!','ex')"ascii nocase
$s3text"'.replace('*','0001')"ascii nocase
$s4text"Remove-Item $"ascii nocase
$s5text"the File will start cumiing"ascii nocase
$b1text"011001100111010101101110011*"ascii
$b2text"0101001000*1110110*010011111"ascii
$b3text"01001101010110101001*11*0000"ascii

Condition

(3 of ( $s* ) and 1 of ( $b* ) )

In plain words (Heuristic)

  • At least 3 patterns in ( $s* ) must match.
  • At least 1 patterns in ( $b* ) 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: 07b77251-1d79-5521-8c05-ecfc662f45cb

Metadata

clamavditekSHen.MALWARE.PWSH.CUMII

More PWSH rules