Aller au contenu

YARA · SEKOIA.IO Community

SEKOIA_Ransomware_Win_Blackcat

Detect the BlackCat ransomware (Windows version)

MalwareBlackcatSEKOIA.IO CommunityDetection Rule License 1.1Compile avec YARA-X
Auteur
Sekoia.io
Date
2022-01-19
Modifiée
2024-12-19
Score / Qualité
75 / 80

Ce que détecte cette règle

Detect the BlackCat ransomware (Windows version)

Famille de malware associée : Blackcat.

Cibles : PE Windows.

Elle définit 15 motifs (15 texte, 0 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

ransomware-win-blackcat.yarDetection Rule License 1.1
rule SEKOIA_Ransomware_Win_Blackcat : FILE
{
	meta:
		description = "Detect the BlackCat ransomware (Windows version)"
		author = "Sekoia.io"
		id = "873355f7-3942-4171-9df7-f524bb6b6903"
		date = "2022-01-19"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/ransomware_win_blackcat.yar#L1-L31"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "8a60fd14835f9e8683c3e60a19f23bc00020ccd22e74bffbc8ed19fcb8d0e39a"
		score = 75
		quality = 80
		tags = "FILE"
		classification = "TLP:CLEAR"
		version = "1.1"

	strings:
		$s1 = "desktop_image::set_desktop_wallpaper=" ascii
		$s2 = "C:\\Users\\Public\\All Usersdeploy_note_and_image_for_all_users=" ascii
		$s3 = "propagate::none" ascii
		$s4 = "propagate::failed=" ascii
		$s5 = "propagate::ok=" ascii
		$s6 = "query_status_process::ok=" ascii
		$s7 = "enum_dependent_services::ok=" ascii
		$s8 = "enum_dependent_services::error=" ascii
		$s9 = "try_stop=" ascii
		$s10 = "try_stop::ok=" ascii
		$s11 = "try_stop::failed=" ascii
		$s12 = "stop=" ascii
		$s13 = "dependent_service_name=" ascii
		$s14 = "kill_all=" ascii
		$s15 = "detach=" ascii

	condition:
		uint16( 0 ) == 0x5A4D and filesize > 2MB and filesize < 4MB and all of them
}

Chaînes (15 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"desktop_image::set_desktop_wallpaper="ascii
$s2texte"C:\\Users\\Public\\All Usersdeploy_note_and_image_for_all_users="ascii
$s3texte"propagate::none"ascii
$s4texte"propagate::failed="ascii
$s5texte"propagate::ok="ascii
$s6texte"query_status_process::ok="ascii
$s7texte"enum_dependent_services::ok="ascii
$s8texte"enum_dependent_services::error="ascii
$s9texte"try_stop="ascii
$s10texte"try_stop::ok="ascii
$s11texte"try_stop::failed="ascii
$s12texte"stop="ascii
$s13texte"dependent_service_name="ascii
$s14texte"kill_all="ascii
$s15texte"detach="ascii

Condition

uint16( 0 ) == 0x5A4D and filesize > 2MB and filesize < 4MB and all of them

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Le fichier doit faire moins de 4MB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Le fichier doit faire plus de 2MB.
  • Tous les motifs de la règle 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 : Sekoia.io

Dépôt source : SEKOIA.IO Community @ a438a5901a

Licence : Detection Rule License 1.1 (licence du dépôt)

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: 873355f7-3942-4171-9df7-f524bb6b6903

Métadonnées

classificationTLP:CLEAR
version1.1

Tags:FILE

Plus de règles Blackcat