Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Babylockerkz

Detects BabyLockerKZ

MalwareBabylockerkzditekSHen 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 BabyLockerKZ

Zugehörige Malware-Familie: Babylockerkz.

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-babylockerkz.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Babylockerkz : FILE
{
	meta:
		description = "Detects BabyLockerKZ"
		author = "ditekshen"
		id = "faa35818-2bed-528f-a6f0-5356a723ef5b"
		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#L11939-L11957"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "423bbd3b23591608a32e4e724c156fbaa5d1d087515137a82a0aeb8c4865d1ca"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = ":\\locker\\bin\\stub_win_x64_encrypter.pdb" ascii
		$s2 = "taskkill /f /im explorer.exe" fullword wide
		$s3 = "\\SysWOW64\\cmd.exe /c %windir%\\" wide
		$s4 = "[!] Failed to RunNonElevated: %s, error 0x%X" fullword wide
		$s5 = "[!] Failed to run sync command: %s, error 0x%X" fullword wide
		$s6 = "[-] RunNonElevated: %s" fullword wide
		$s7 = "[!][Encrypt] Not" fullword
		$s8 = "[-] sALLUSERSPROFILE: %s" fullword wide
		$s9 = "[!] WNetGetConnection failed 0x%X" fullword wide
		$s10 = "[!][Scan] " wide
		$s11 = "[-] Start encrypt" wide

	condition:
		uint16( 0 ) == 0x5a4d and 4 of them
}

Strings (11 Muster)

BezeichnerTypWertModifikatoren
$s1Text":\\locker\\bin\\stub_win_x64_encrypter.pdb"ascii
$s2Text"taskkill /f /im explorer.exe"fullword wide
$s3Text"\\SysWOW64\\cmd.exe /c %windir%\\"wide
$s4Text"[!] Failed to RunNonElevated: %s, error 0x%X"fullword wide
$s5Text"[!] Failed to run sync command: %s, error 0x%X"fullword wide
$s6Text"[-] RunNonElevated: %s"fullword wide
$s7Text"[!][Encrypt] Not"fullword
$s8Text"[-] sALLUSERSPROFILE: %s"fullword wide
$s9Text"[!] WNetGetConnection failed 0x%X"fullword wide
$s10Text"[!][Scan] "wide
$s11Text"[-] Start encrypt"wide

Bedingung

uint16( 0 ) == 0x5a4d and 4 of them

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 4 Muster aus der Regel 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: faa35818-2bed-528f-a6f0-5356a723ef5b

Tags:FILE