Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Crylock

Detects CryLock ransomware

MalwareCrylockditekSHen detectionBSD 2-Clause LicenseCompile avec YARA-X
Auteur
ditekSHen
Date
2020-11-06
Modifiée
2024-11-01
Score / Qualité
75 / 73

Ce que détecte cette règle

Detects CryLock ransomware

Famille de malware associée : Crylock.

Cibles : PE Windows.

Elle définit 25 motifs (24 texte, 1 hex, 0 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

malware-win-crylock.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Crylock : FILE
{
	meta:
		description = "Detects CryLock ransomware"
		author = "ditekSHen"
		id = "296288d8-2fdd-592a-aef9-7d4853885594"
		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#L7151-L7186"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "dde35dd2c7e89212c4562f2dcf6a78d06fbb3d31150d49e6c48f758b07f1834f"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "Encrypted by BlackRabbit. (BR-" ascii
		$s2 = "{ENCRYPTENDED}" ascii
		$s3 = "{ENCRYPTSTART}" ascii
		$s4 = "<%UNDECRYPT_DATETIME%>" ascii
		$s5 = "<%RESERVE_CONTACT%>" ascii
		$s6 = "how_to_decrypt.hta" ascii wide
		$s7 = "END ENCRYPT ONLY EXTENATIONS" ascii
		$s8 = "END UNENCRYPT EXTENATIONS" ascii
		$s9 = "END COMMANDS LIST" ascii
		$s10 = "END PROCESSES KILL LIST" ascii
		$s11 = "END SERVICES STOP LIST" ascii
		$s12 = "END PROCESSES WHITE LIST" ascii
		$s13 = "END UNENCRYPT FILES LIST" ascii
		$s14 = "END UNENCRYPT FOLDERS LIST" ascii
		$s15 = "Encrypted files:" ascii
		$s16 = { 65 78 74 65 6e 61 74 69 6f 6e 73 00 ff ff ff ff
                 06 00 00 00 63 6f 6e 66 69 67 00 00 ff ff ff ff
                 (0a|0d 0a) 00 00 00 63 6f 6e 66 69 67 2e 74 78 
                 74 00 00 ff ff ff ff 03 00 00 00 68 74 61 }
		$p1 = "-exclude" fullword
		$p2 = "-makeff" fullword
		$p3 = "-full" fullword
		$p4 = "-nolocal" fullword
		$p5 = "-nolan" fullword
		$p6 = "\" -id \"" fullword
		$p7 = "\" -wid \"" fullword
		$p8 = "\"runas\"" fullword
		$p9 = " -f -s -t 00" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or 6 of ( $p* ) )
}

Chaînes (25 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"Encrypted by BlackRabbit. (BR-"ascii
$s2texte"{ENCRYPTENDED}"ascii
$s3texte"{ENCRYPTSTART}"ascii
$s4texte"<%UNDECRYPT_DATETIME%>"ascii
$s5texte"<%RESERVE_CONTACT%>"ascii
$s6texte"how_to_decrypt.hta"ascii wide
$s7texte"END ENCRYPT ONLY EXTENATIONS"ascii
$s8texte"END UNENCRYPT EXTENATIONS"ascii
$s9texte"END COMMANDS LIST"ascii
$s10texte"END PROCESSES KILL LIST"ascii
$s11texte"END SERVICES STOP LIST"ascii
$s12texte"END PROCESSES WHITE LIST"ascii
$s13texte"END UNENCRYPT FILES LIST"ascii
$s14texte"END UNENCRYPT FOLDERS LIST"ascii
$s15texte"Encrypted files:"ascii
$s16hex{ 65 78 74 65 6e 61 74 69 6f 6e 73 00 ff ff ff ff 06 00 00 00 63 6f 6e 66 69 67 00 00 ff ff ff ff (0a|0d 0a) 00 00 00 63 6f 6e …
$p1texte"-exclude"fullword
$p2texte"-makeff"fullword
$p3texte"-full"fullword
$p4texte"-nolocal"fullword
$p5texte"-nolan"fullword
$p6texte"\" -id \""fullword
$p7texte"\" -wid \""fullword
$p8texte"\"runas\""fullword
$p9texte" -f -s -t 00"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or 6 of ( $p* ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 3 motifs de ( $s* ) doivent être trouvés.
  • Au moins 6 motifs de ( $p* ) doivent être trouvés.

Tester cette règle dans votre navigateur

Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

Références

Licence et attribution

Auteur : ditekSHen

Dépôt source : ditekSHen detection @ e76c93dcde

Licence : BSD 2-Clause License (licence du dépôt)

Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Règle d’origine

Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.

Identifiant de règle: 296288d8-2fdd-592a-aef9-7d4853885594

Tags:FILE

Plus de règles Crylock