Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Doejocrypt

Detects DoejoCrypt / DearCry ransomware

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

Was diese Regel erkennt

Detects DoejoCrypt / DearCry ransomware

Zugehörige Malware-Familie: Doejocrypt.

Ziele: Windows-PE.

Sie definiert 9 Muster (6 Text, 3 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-doejocrypt.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Doejocrypt : FILE
{
	meta:
		description = "Detects DoejoCrypt / DearCry ransomware"
		author = "ditekSHen"
		id = "2c90f8e7-ced4-56da-ab8d-61b5ba63dacd"
		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#L4977-L4993"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "f8a3897de9522340799a59e3e755c323b0defaab73a9030b6b69a1a82c05dcd0"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "DEARCRY!" fullword ascii
		$s2 = ".CRYPT" fullword ascii
		$s3 = "\\EncryptFile -svcV2\\" ascii
		$s4 = "please send me the following hash!" ascii
		$s5 = "dear!!!" fullword ascii
		$s6 = "/readme.txt" fullword ascii
		$o1 = { c3 8b 65 e8 c7 45 fc fe ff ff ff 8b b5 f4 e9 ff }
		$o2 = { 0f 8c 27 ff ff ff 33 db 57 e8 7b 36 00 00 eb 0a }
		$o3 = { 0f 8c 2a ff ff ff 53 57 e8 b7 42 00 00 8b 4c 24 }

	condition:
		uint16( 0 ) == 0x5a4d and 4 of ( $s* ) or ( all of ( $o* ) and ( 2 of ( $s* ) ) )
}

Strings (9 Muster)

BezeichnerTypWertModifikatoren
$s1Text"DEARCRY!"fullword ascii
$s2Text".CRYPT"fullword ascii
$s3Text"\\EncryptFile -svcV2\\"ascii
$s4Text"please send me the following hash!"ascii
$s5Text"dear!!!"fullword ascii
$s6Text"/readme.txt"fullword ascii
$o1Hex{ c3 8b 65 e8 c7 45 fc fe ff ff ff 8b b5 f4 e9 ff }
$o2Hex{ 0f 8c 27 ff ff ff 33 db 57 e8 7b 36 00 00 eb 0a }
$o3Hex{ 0f 8c 2a ff ff ff 53 57 e8 b7 42 00 00 8b 4c 24 }

Bedingung

uint16( 0 ) == 0x5a4d and 4 of ( $s* ) or ( all of ( $o* ) and ( 2 of ( $s* ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $o* ) müssen treffen.
  • Mindestens 4 Muster aus ( $s* ) 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: 2c90f8e7-ced4-56da-ab8d-61b5ba63dacd

Tags:FILE