Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Sandworm_Awfulshred_Obfuscation_Apr2022

Detects the AWFULSHRED wiper used by Sandworm

APT / threat actorSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-04-12
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects the AWFULSHRED wiper used by Sandworm

It defines 2 patterns (1 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

apt-sandworm-awfulshred-obfuscation-apr2022.yarDetection Rule License 1.1
rule SEKOIA_Apt_Sandworm_Awfulshred_Obfuscation_Apr2022 : FILE
{
	meta:
		description = "Detects the AWFULSHRED wiper used by Sandworm"
		author = "Sekoia.io"
		id = "52317e6b-7f2c-4c2a-bcfc-ebb4ab4c728e"
		date = "2022-04-12"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_sandworm_awfulshred_obfuscation_apr2022.yar#L1-L16"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "3e1eed3a4b638893828289f928a75b855bc9e1e29444ffa81c0461fdc1277cad"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$h = "#!/bin/bash"
		$s = { 64 65 63 6c 61 72 65 20 2d 72 20 [8] 3d }

	condition:
		$h at 0 and #s > 15
}

Strings (2 patterns)

IdentifierTypeValueModifiers
$htext"#!/bin/bash"
$shex{ 64 65 63 6c 61 72 65 20 2d 72 20 [8] 3d }

Condition

$h at 0 and #s > 15

In plain words (Heuristic)

  • Pattern $s must occur > 15 times.
  • Pattern $h must be found at offset 0.

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: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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

Rule id: 52317e6b-7f2c-4c2a-bcfc-ebb4ab4c728e

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE