Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Cryptolocker

Detects Cryptolocker ransomware variants (Betarasite)

MalwareCryptolockerditekSHen detectionBSD 2-Clause LicenseKompiliert mit YARA-X
Autor
ditekSHen
Datum
2020-11-06
Geändert
2024-11-01
Score / Qualität
75 / 73

Was diese Regel erkennt

Detects Cryptolocker ransomware variants (Betarasite)

Zugehörige Malware-Familie: Cryptolocker.

Ziele: Windows-PE.

Sie definiert 15 Muster (15 Text, 0 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-cryptolocker.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Cryptolocker : FILE
{
	meta:
		description = "Detects Cryptolocker ransomware variants (Betarasite)"
		author = "ditekSHen"
		id = "4c6d714d-1fb1-55ce-8022-40f6f634e2cd"
		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#L4730-L4752"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "e1700e8ace338c25119305878e8bc52210506bd42183007985ba9601abdab87b"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$x1 = "CryptoLocker" fullword wide
		$x2 = ".betarasite" fullword wide
		$x3 = "CMSTPBypass" fullword ascii
		$s1 = "CommandToExecute" fullword ascii
		$s2 = "SetInfFile" fullword ascii
		$s3 = "SchoolPrject1" ascii
		$s4 = "$730d5f64-bd57-47c1-9af4-d20aec714d02" fullword ascii
		$s5 = "Encrypt" fullword ascii
		$s6 = "Invalide Key! Please Try Again." fullword wide
		$s7 = "RegAsm" fullword wide
		$s8 = "Your key will be destroyed" wide
		$s9 = "encrypted using RC4 and RSA-2048" wide
		$c1 = "https://coinbase.com" fullword wide
		$c2 = "https://localbictoins.com" fullword wide
		$c3 = "https://bitpanda.com" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or all of ( $s* ) or ( 2 of ( $x* ) and 5 of ( $s* ) ) or ( all of ( $c* ) and 1 of ( $x* ) and 2 of ( $s* ) ) )
}

Strings (15 Muster)

BezeichnerTypWertModifikatoren
$x1Text"CryptoLocker"fullword wide
$x2Text".betarasite"fullword wide
$x3Text"CMSTPBypass"fullword ascii
$s1Text"CommandToExecute"fullword ascii
$s2Text"SetInfFile"fullword ascii
$s3Text"SchoolPrject1"ascii
$s4Text"$730d5f64-bd57-47c1-9af4-d20aec714d02"fullword ascii
$s5Text"Encrypt"fullword ascii
$s6Text"Invalide Key! Please Try Again."fullword wide
$s7Text"RegAsm"fullword wide
$s8Text"Your key will be destroyed"wide
$s9Text"encrypted using RC4 and RSA-2048"wide
$c1Text"https://coinbase.com"fullword wide
$c2Text"https://localbictoins.com"fullword wide
$c3Text"https://bitpanda.com"fullword wide

Bedingung

uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or all of ( $s* ) or ( 2 of ( $x* ) and 5 of ( $s* ) ) or ( all of ( $c* ) and 1 of ( $x* ) and 2 of ( $s* ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $x* ) müssen treffen.
  • Alle Muster aus ( $s* ) müssen treffen.
  • Alle Muster aus ( $c* ) müssen treffen.
  • Mindestens 2 Muster aus ( $x* ) müssen treffen.
  • Mindestens 5 Muster aus ( $s* ) müssen treffen.
  • Mindestens 1 Muster aus ( $x* ) müssen treffen.
  • Mindestens 2 Muster aus ( $s* ) müssen treffen.

Diese Regel im Browser testen

Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.

Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.

Im Editor öffnen

Referenzen

Lizenz & Namensnennung

Autor: ditekSHen

Quell-Repository: ditekSHen detection @ e76c93dcde

Lizenz: BSD 2-Clause License (Repository-Lizenz)

Copyright-Hinweis: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Originalregel

Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.

Regel-ID: 4c6d714d-1fb1-55ce-8022-40f6f634e2cd

Tags:FILE