Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Breakwin

Detects BreakWin Wiper

MalwareBreakwinditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
Autor
ditekSHen
Fecha
2020-11-06
Modificada
2024-11-01
Puntuación / Calidad
75 / 75

Qué detecta esta regla

Detects BreakWin Wiper

Familia de malware asociada: Breakwin.

Objetivos: PE de Windows.

Define 11 patrones (11 de texto, 0 hex, 0 regex).

Resumen generado a partir de los metadatos y la condición de la regla.

Código de la regla

malware-win-breakwin.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Breakwin : FILE
{
	meta:
		description = "Detects BreakWin Wiper"
		author = "ditekSHen"
		id = "4ffadbfa-c1cc-59e6-a9ba-7a34eca6c3fe"
		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#L7453-L7471"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "86fc89e28fc107c2d4fe98dc16048d9e076b1fef53a3df0814f80a88bbe09c48"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "Started wiping file %s with %s." fullword wide
		$s2 = "C:\\Program Files\\Lock My PC" wide
		$s3 = "Stardust is still alive." fullword wide
		$s4 = "Failed to terminate the locker process." fullword wide
		$s5 = "C:\\Windows\\System32\\cmd.exe" fullword wide
		$s6 = "Process created successfully. Executed command: %s." fullword wide
		$s7 = "locker_background_image_path" fullword ascii
		$s8 = "takeown.exe /F \"C:\\Windows\\Web\\Screen\" /R /A /D Y" fullword ascii
		$s9 = "icacls.exe \"C:\\Windows\\Web\\Screen\" /reset /T" fullword ascii
		$s10 = "takeown.exe /F \"C:\\ProgramData\\Microsoft\\Windows\\SystemData\" /R /A /D Y" fullword ascii
		$s11 = ".?AVProcessSnapshotCreationFailedException@@" fullword ascii

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

Cadenas (11 patrones)

IdentificadorTipoValorModificadores
$s1texto"Started wiping file %s with %s."fullword wide
$s2texto"C:\\Program Files\\Lock My PC"wide
$s3texto"Stardust is still alive."fullword wide
$s4texto"Failed to terminate the locker process."fullword wide
$s5texto"C:\\Windows\\System32\\cmd.exe"fullword wide
$s6texto"Process created successfully. Executed command: %s."fullword wide
$s7texto"locker_background_image_path"fullword ascii
$s8texto"takeown.exe /F \"C:\\Windows\\Web\\Screen\" /R /A /D Y"fullword ascii
$s9texto"icacls.exe \"C:\\Windows\\Web\\Screen\" /reset /T"fullword ascii
$s10texto"takeown.exe /F \"C:\\ProgramData\\Microsoft\\Windows\\SystemData\" /R /A /D Y"fullword ascii
$s11texto".?AVProcessSnapshotCreationFailedException@@"fullword ascii

Condición

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

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 4 patrones de la regla.

Prueba esta regla en tu navegador

Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.

Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.

Abrir en el editor

Referencias

Licencia y atribución

Autor: ditekSHen

Repositorio de origen: ditekSHen detection @ e76c93dcde

Licencia: BSD 2-Clause License (licencia del repositorio)

Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Regla original

Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.

Id de la regla: 4ffadbfa-c1cc-59e6-a9ba-7a34eca6c3fe

Etiquetas:FILE