Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Linux_Ransomexx

Detects RansomEXX ransomware

MalwareRansomexxditekSHen 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 RansomEXX ransomware

Associated malware family: Ransomexx.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-linux-ransomexx.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Linux_Ransomexx : FILE
{
	meta:
		description = "Detects RansomEXX ransomware"
		author = "ditekshen"
		id = "b449afc7-9055-55ed-a876-316d1aea8fee"
		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#L3834-L3858"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "c233ccc3e741cb2c53f182c48093e41595a82a3f4e5bdb1dc0204f1f57b96c2a"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Linux.Ransomware.RansomEXX"

	strings:
		$c1 = "crtstuff.c" fullword ascii
		$c2 = "cryptor.c" fullword ascii
		$c3 = "ransomware.c" fullword ascii
		$c4 = "logic.c" fullword ascii
		$c5 = "enum_files.c" fullword ascii
		$c6 = "readme.c" fullword ascii
		$c7 = "ctr_drbg.c" fullword ascii
		$s1 = "regenerate_pre_data" fullword ascii
		$s2 = "g_RansomHeader" fullword ascii
		$s3 = "CryptOneBlock" fullword ascii
		$s4 = "RansomLogic" fullword ascii
		$s5 = "CryptOneFile" fullword ascii
		$s6 = "encrypt_worker" fullword ascii
		$s7 = "list_dir" fullword ascii
		$s8 = "ctr_drbg_update_internal" fullword ascii

	condition:
		uint16( 0 ) == 0x457f and ( 5 of ( $c* ) or 6 of ( $s* ) or ( 3 of ( $c* ) and 3 of ( $s* ) ) )
}

Strings (15 patterns)

IdentifierTypeValueModifiers
$c1text"crtstuff.c"fullword ascii
$c2text"cryptor.c"fullword ascii
$c3text"ransomware.c"fullword ascii
$c4text"logic.c"fullword ascii
$c5text"enum_files.c"fullword ascii
$c6text"readme.c"fullword ascii
$c7text"ctr_drbg.c"fullword ascii
$s1text"regenerate_pre_data"fullword ascii
$s2text"g_RansomHeader"fullword ascii
$s3text"CryptOneBlock"fullword ascii
$s4text"RansomLogic"fullword ascii
$s5text"CryptOneFile"fullword ascii
$s6text"encrypt_worker"fullword ascii
$s7text"list_dir"fullword ascii
$s8text"ctr_drbg_update_internal"fullword ascii

Condition

uint16( 0 ) == 0x457f and ( 5 of ( $c* ) or 6 of ( $s* ) or ( 3 of ( $c* ) and 3 of ( $s* ) ) )

In plain words (Heuristic)

  • At least 5 patterns in ( $c* ) must match.
  • At least 6 patterns in ( $s* ) must match.
  • At least 3 patterns in ( $c* ) must match.
  • At least 3 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: b449afc7-9055-55ed-a876-316d1aea8fee

Metadata

clamav_sigMALWARE.Linux.Ransomware.RansomEXX

Tags:FILE

More Ransomexx rules