Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Strongpity_Malware

Detects obfuscation used by StrongPity

MalwareStrongpitySEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X
Autor
Sekoia.io
Fecha
2024-02-26
Modificada
2024-12-19
Puntuación / Calidad
75 / 80

Qué detecta esta regla

Detects obfuscation used by StrongPity

Familia de malware asociada: Strongpity.

Objetivos: PE de Windows.

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

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

Código de la regla

strongpity-malware.yarDetection Rule License 1.1
rule SEKOIA_Strongpity_Malware : FILE
{
	meta:
		description = "Detects obfuscation used by StrongPity"
		author = "Sekoia.io"
		id = "f19a685c-599d-42cf-a5d8-7a2375102f97"
		date = "2024-02-26"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/strongpity_malware.yar#L1-L21"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "14be5eccb4e754d6dad69cda51a924241cc75f5d758bc2d746acfe41e1684b3a"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$rand_edi = {E8 ?? ?? ?? ??    8B F8 81 E7 07 00 00 80    79 ?? 4F 83 CF F8 47 83 C7 02}
		$rand_esi = {E8 ?? ?? ?? ?? 8B F0 81 E6 07 00 00 80 79 ?? 4E 83 CE F8 46 83 C6 02}
		$rand_eax = {E8 ?? ?? ?? ??    25 07 00 00 80 79 ?? 48 83 C8 F8 40 83 C0 02}

	condition:
		uint16be( 0 ) == 0x4d5a and #rand_edi + #rand_esi + #rand_eax > 20
}

Cadenas (3 patrones)

IdentificadorTipoValorModificadores
$rand_edihex{E8 ?? ?? ?? ?? 8B F8 81 E7 07 00 00 80 79 ?? 4F 83 CF F8 47 83 C7 02}
$rand_esihex{E8 ?? ?? ?? ?? 8B F0 81 E6 07 00 00 80 79 ?? 4E 83 CE F8 46 83 C6 02}
$rand_eaxhex{E8 ?? ?? ?? ?? 25 07 00 00 80 79 ?? 48 83 C8 F8 40 83 C0 02}

Condición

uint16be( 0 ) == 0x4d5a and #rand_edi + #rand_esi + #rand_eax > 20

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • El patrón $rand_eax debe aparecer > 20 veces.

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: f19a685c-599d-42cf-a5d8-7a2375102f97

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE

Más reglas de Strongpity