Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Suncrypt

Detects SunCrypt ransomware

MalwareSuncryptditekSHen 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 SunCrypt ransomware

Famille de malware associée : Suncrypt.

Cibles : PE Windows.

Elle définit 31 motifs (31 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

malware-win-suncrypt.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Suncrypt : FILE
{
	meta:
		description = "Detects SunCrypt ransomware"
		author = "ditekSHen"
		id = "1a28fcbf-1fc0-5f18-ae71-2e813ed0f958"
		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#L4494-L4532"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "abde9bbf2577304ff059972a38e803ba17de7a1f0346efe880a710f2ad79db37"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "-noshares" fullword wide
		$s2 = "-nomutex" fullword wide
		$s3 = "-noreport" fullword wide
		$s4 = "-noservices" fullword wide
		$s5 = "$Recycle.bin" fullword wide
		$s6 = "YOUR_FILES_ARE_ENCRYPTED.HTML" fullword wide
		$s7 = "\\\\?\\%c:" fullword wide
		$s8 = "locker.exe" fullword ascii
		$s9 = "DllRegisterServer" fullword ascii
		$g1 = "main.EncFile" fullword ascii nocase
		$g2 = "main.detectName" fullword ascii nocase
		$g3 = "main.detectIP" fullword ascii nocase
		$g4 = "main.detectDebugProc" fullword ascii nocase
		$g5 = "main.Bypass" ascii nocase
		$g6 = "main.allocateMemory" fullword ascii nocase
		$g7 = "main.killAV" fullword ascii nocase
		$g8 = "main.disableShadowCopy" fullword ascii nocase
		$g9 = "main.(*windowsDrivesModel).LoadDrives" fullword ascii nocase
		$g10 = "main.IsFriends" fullword ascii nocase
		$g11 = "main.walkMsg" fullword ascii nocase
		$g12 = "main.makeSecretMessage" fullword ascii nocase
		$g13 = "main.stealFiles" fullword ascii nocase
		$g14 = "main.newKey" fullword ascii nocase
		$g15 = "main.openBrowser" fullword ascii nocase
		$g16 = "main.killProc" fullword ascii nocase
		$g17 = "main.selfRemove" fullword ascii nocase
		$m1 = "<h2>\\x20Offline\\x20HowTo\\x20</h2>\\x0a\\x09\\x09\\x09\\x09<p>Copy\\x20&\\x20Paste\\x20this\\x20message\\x20to" ascii
		$m2 = "\\x20restore\\x20your\\x20files." ascii
		$m3 = "\\x20your\\x20documents\\x20and\\x20files\\x20encrypted" ascii
		$m4 = "\\x20lose\\x20all\\x20of\\x20your\\x20data\\x20and\\x20files." ascii
		$m5 = ",'/#/client/','<h2>\\x20Whats\\x20Happen" ascii

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

Chaînes (31 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"-noshares"fullword wide
$s2texte"-nomutex"fullword wide
$s3texte"-noreport"fullword wide
$s4texte"-noservices"fullword wide
$s5texte"$Recycle.bin"fullword wide
$s6texte"YOUR_FILES_ARE_ENCRYPTED.HTML"fullword wide
$s7texte"\\\\?\\%c:"fullword wide
$s8texte"locker.exe"fullword ascii
$s9texte"DllRegisterServer"fullword ascii
$g1texte"main.EncFile"fullword ascii nocase
$g2texte"main.detectName"fullword ascii nocase
$g3texte"main.detectIP"fullword ascii nocase
$g4texte"main.detectDebugProc"fullword ascii nocase
$g5texte"main.Bypass"ascii nocase
$g6texte"main.allocateMemory"fullword ascii nocase
$g7texte"main.killAV"fullword ascii nocase
$g8texte"main.disableShadowCopy"fullword ascii nocase
$g9texte"main.(*windowsDrivesModel).LoadDrives"fullword ascii nocase
$g10texte"main.IsFriends"fullword ascii nocase
$g11texte"main.walkMsg"fullword ascii nocase
$g12texte"main.makeSecretMessage"fullword ascii nocase
$g13texte"main.stealFiles"fullword ascii nocase
$g14texte"main.newKey"fullword ascii nocase
$g15texte"main.openBrowser"fullword ascii nocase
$g16texte"main.killProc"fullword ascii nocase
$g17texte"main.selfRemove"fullword ascii nocase
$m1texte"<h2>\\x20Offline\\x20HowTo\\x20</h2>\\x0a\\x09\\x09\\x09\\x09<p>Copy\\x20&\\x20Paste\\x20this\\x20message\\x20to"ascii
$m2texte"\\x20restore\\x20your\\x20files."ascii
$m3texte"\\x20your\\x20documents\\x20and\\x20files\\x20encrypted"ascii
$m4texte"\\x20lose\\x20all\\x20of\\x20your\\x20data\\x20and\\x20files."ascii
$m5texte",'/#/client/','<h2>\\x20Whats\\x20Happen"ascii

Condition

uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or 6 of ( $g* ) or 3 of ( $m* ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 5 motifs de ( $s* ) doivent être trouvés.
  • Au moins 6 motifs de ( $g* ) doivent être trouvés.
  • Au moins 3 motifs de ( $m* ) 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: 1a28fcbf-1fc0-5f18-ae71-2e813ed0f958

Tags:FILE

Plus de règles Suncrypt