Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Wiper_Hermeticwiper_Variants

Matches HermeticWiper and possible variants

MalwareHermeticwiperSEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X (con avisos)
Autor
Sekoia.io
Fecha
2022-02-24
Modificada
2024-12-19
Puntuación / Calidad
75 / 80

Qué detecta esta regla

Matches HermeticWiper and possible variants

Familia de malware asociada: Hermeticwiper.

Objetivos: PE de Windows.

Define 4 patrones (4 de texto, 0 hex, 0 regex). Módulos YARA usados: pe.

YARA-X dice: warning[deprecated_field]: field `number_of_signatures` is deprecated

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

Código de la regla

Incluye los imports necesarios para compilarla por sí sola.

wiper-hermeticwiper-variants.yarDetection Rule License 1.1
import "pe"

rule SEKOIA_Wiper_Hermeticwiper_Variants
{
	meta:
		description = "Matches HermeticWiper and possible variants"
		author = "Sekoia.io"
		id = "102ecf15-167e-49e4-932c-6334e3cdcc69"
		date = "2022-02-24"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/wiper_hermeticwiper_variants.yar#L3-L26"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "d0c358517b0a6334d430d3bd75d6c58243ce84e0f90afe48a5069a1e1954119c"
		score = 75
		quality = 80
		tags = ""
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "SeLoadDriverPrivilege" wide
		$ = "\\\\.\\PhysicalDrive" wide
		$ = "::$INDEX_ALLOCATION" wide
		$ = "CrashDumpEnabled" wide

	condition:
		2 of them and pe.characteristics and pe.number_of_signatures == 1 and pe.number_of_resources > 2 and for 2 i in ( 0 .. pe.number_of_resources - 1 ) : ( uint32be( pe.resources [ i ] . offset + 15 ) == 0x4D5A9000 and uint16be( pe.resources [ i ] . offset ) == 0x535A )
}

Cadenas (4 patrones)

IdentificadorTipoValorModificadores
$texto"SeLoadDriverPrivilege"wide
$texto"\\\\.\\PhysicalDrive"wide
$texto"::$INDEX_ALLOCATION"wide
$texto"CrashDumpEnabled"wide

Condición

2 of them and pe.characteristics and pe.number_of_signatures == 1 and pe.number_of_resources > 2 and for 2 i in ( 0 .. pe.number_of_resources - 1 ) : ( uint32be( pe.resources [ i ] . offset + 15 ) == 0x4D5A9000 and uint16be( pe.resources [ i ] . offset ) == 0x535A )

En palabras sencillas (Heurística)

  • Deben coincidir al menos 2 patrones de la regla.
  • Un bucle for comprueba una propiedad sobre varias coincidencias o elementos.
  • Usa el módulo pe.
  • Comprueba la firma Authenticode.

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: Sekoia.io

Repositorio de origen: SEKOIA.IO Community @ a438a5901a

Licencia: Detection Rule License 1.1 (licencia del repositorio)

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: 102ecf15-167e-49e4-932c-6334e3cdcc69

Metadatos

version1.0
classificationTLP:CLEAR

Más reglas de Hermeticwiper