Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_DECAF

Detects DECAF ransomware

MalwareDecafditekSHen 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 DECAF ransomware

Zugehörige Malware-Familie: Decaf.

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-decaf.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_DECAF : FILE
{
	meta:
		description = "Detects DECAF ransomware"
		author = "ditekSHen"
		id = "c6e4ce00-0be9-572d-987c-c47d699002f0"
		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#L8248-L8268"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "5d79a4f310fb00022eb9d636f161227e84a7e15517c4d2c39acafa7d81af5c2a"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "main.EncWorker" fullword ascii
		$s2 = "Paths2Encrypt" fullword ascii
		$s3 = "/cmd/encryptor/main.go" ascii
		$s4 = "*win.FileUtils; .autotmp_41 *lib.Encryptor; .autotmp_" ascii
		$s5 = "\"Microsoft Window" fullword wide
		$s6 = "Legal_Policy_Statement" fullword wide
		$s7 = ").Encrypt." ascii
		$s8 = "*struct { F uintptr; pw *os.File; c *" ascii
		$s9 = ".ListFilesToEnc." ascii
		$m1 = "WINNER WINNER CHICKEN DINNER" ascii
		$m2 = "All your servers and computers are encrypted" ascii
		$m3 = "We guarantee to decrypt one image file for free." ascii
		$m4 = "We WILL NOT be able to RESTORE them." ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 4 of ( $s* ) or 3 of ( $m* ) or ( 1 of ( $m* ) and 2 of ( $s* ) ) )
}

Strings (13 Muster)

BezeichnerTypWertModifikatoren
$s1Text"main.EncWorker"fullword ascii
$s2Text"Paths2Encrypt"fullword ascii
$s3Text"/cmd/encryptor/main.go"ascii
$s4Text"*win.FileUtils; .autotmp_41 *lib.Encryptor; .autotmp_"ascii
$s5Text"\"Microsoft Window"fullword wide
$s6Text"Legal_Policy_Statement"fullword wide
$s7Text").Encrypt."ascii
$s8Text"*struct { F uintptr; pw *os.File; c *"ascii
$s9Text".ListFilesToEnc."ascii
$m1Text"WINNER WINNER CHICKEN DINNER"ascii
$m2Text"All your servers and computers are encrypted"ascii
$m3Text"We guarantee to decrypt one image file for free."ascii
$m4Text"We WILL NOT be able to RESTORE them."ascii

Bedingung

uint16( 0 ) == 0x5a4d and ( 4 of ( $s* ) or 3 of ( $m* ) or ( 1 of ( $m* ) and 2 of ( $s* ) ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 4 Muster aus ( $s* ) müssen treffen.
  • Mindestens 3 Muster aus ( $m* ) müssen treffen.
  • Mindestens 1 Muster aus ( $m* ) 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: c6e4ce00-0be9-572d-987c-c47d699002f0

Tags:FILE

Weitere Decaf-Regeln