Skip to content

YARA · Cado Security (via Open-Source-YARA-rules)

CADOSECURITY_Linux_Wiper_AWFULSHRED

Detects AWFULSHRED wiper used against Ukrainian ICS

MalwareCado Security (via Open-Source-YARA-rules)Apache License 2.0Compiles with YARA-X
Author
mmuir@cadosecurity.com
Date
2022-04-12
Modified
2022-07-06
Score / Quality
75 / 80

What this rule detects

Detects AWFULSHRED wiper used against Ukrainian ICS

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

Summary generated from the rule's metadata and condition.

Rule source

linux-wiper-awfulshred.yarApache License 2.0
rule CADOSECURITY_Linux_Wiper_AWFULSHRED
{
	meta:
		description = "Detects AWFULSHRED wiper used against Ukrainian ICS"
		author = "mmuir@cadosecurity.com"
		id = "0328f0d9-3c73-5d13-bf32-8a25139cf3cf"
		date = "2022-04-12"
		modified = "2022-07-06"
		reference = "https://github.com/cado-security/DFIR_Resources_Industroyer2"
		source_url = "https://github.com/mikesxrs/Open-Source-YARA-rules/blob/ec0056f767db98bf6d5fd63877ad51fb54d350e9/Cado Security/Linux_Wiper_AWFULSHRED.yar#L1-L26"
		license_url = "N/A"
		hash = "bcdf0bd8142a4828c61e775686c9892d89893ed0f5093bdc70bde3e48d04ab99"
		logic_hash = "796dfdc4238e3d729180657b7bc79464003434c73568b49895cb8d37ce1a5499"
		score = 75
		quality = 80
		tags = ""
		license = "Apache License 2.0"

	strings:
		$isBash = "/bin/bash" ascii
		$a1 = "declare -r" ascii
		$a2 = "bash_history" ascii
		$a3 = "bs=1k if=/dev/urandom of=" ascii
		$a4 = "systemd" ascii
		$a5 = "apache http ssh" ascii
		$a6 = "shred" ascii
		$var1 = "iwljzfkg" ascii
		$var2 = "yrkdrrue" ascii
		$var3 = "agzerlyf" ascii
		$var4 = "rggygzny" ascii
		$var5 = "zubzgnvp" ascii

	condition:
		$isBash and 3 of ( $a* ) and 4 of ( $var* )
}

Strings (12 patterns)

IdentifierTypeValueModifiers
$isBashtext"/bin/bash"ascii
$a1text"declare -r"ascii
$a2text"bash_history"ascii
$a3text"bs=1k if=/dev/urandom of="ascii
$a4text"systemd"ascii
$a5text"apache http ssh"ascii
$a6text"shred"ascii
$var1text"iwljzfkg"ascii
$var2text"yrkdrrue"ascii
$var3text"agzerlyf"ascii
$var4text"rggygzny"ascii
$var5text"zubzgnvp"ascii

Condition

$isBash and 3 of ( $a* ) and 4 of ( $var* )

In plain words (Heuristic)

  • At least 3 patterns in ( $a* ) must match.
  • At least 4 patterns in ( $var* ) must match.
  • Pattern $isBash 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

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • bcdf0bd8142a4828c61e775686c9892d89893ed0f5093bdc70bde3e48d04ab99

Licence & attribution

Author: mmuir@cadosecurity.com

Source repository: Cado Security (via Open-Source-YARA-rules) @ ec0056f767

Licence: Apache License 2.0 (stated in the rule's own meta)

“Apache License 2.0”

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 0328f0d9-3c73-5d13-bf32-8a25139cf3cf