Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Apt_Blackwood_Nspx30_Plugin

Detects plugins of NSPX30 backdoor based on RTTI and rundll32 string

APT / actorNspx30SEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X (con avisos)
Autor
Sekoia.io
Fecha
2024-01-29
Modificada
2024-12-19
Puntuación / Calidad
75 / 76

Qué detecta esta regla

Detects plugins of NSPX30 backdoor based on RTTI and rundll32 string

Familia de malware asociada: Nspx30.

Objetivos: PE de Windows.

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

YARA-X dice: warning[text_as_hex]: hex pattern could be written as text literal

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

Código de la regla

apt-blackwood-nspx30-plugin.yarDetection Rule License 1.1
rule SEKOIA_Apt_Blackwood_Nspx30_Plugin : FILE
{
	meta:
		description = "Detects plugins of NSPX30 backdoor based on RTTI and rundll32 string"
		author = "Sekoia.io"
		id = "ef8e0d51-c78c-426b-8008-910e27546f23"
		date = "2024-01-29"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_blackwood_nspx30_plugin.yar#L1-L17"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "cf7c232a5a817ff5c0da04744abf99ed2fcea587e3e6f6e8bf3aef7ca8f2b51b"
		score = 75
		quality = 76
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = {2E 3F 41 56 43 43 61 62 69 6E 65 74 40 40}
		$s2 = {2E 3F 41 56 43 45 6E 63 6F 64 65 72 40 40}
		$s3 = "rundll32.exe \"%hs\",#1" wide

	condition:
		uint16be( 0 ) == 0x4d5a and filesize < 1MB and all of them
}

Cadenas (3 patrones)

IdentificadorTipoValorModificadores
$s1hex{2E 3F 41 56 43 43 61 62 69 6E 65 74 40 40}
$s2hex{2E 3F 41 56 43 45 6E 63 6F 64 65 72 40 40}
$s3texto"rundll32.exe \"%hs\",#1"wide

Condición

uint16be( 0 ) == 0x4d5a and filesize < 1MB and all of them

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • El archivo debe ocupar menos de 1MB (un límite barato que descarta archivos grandes).
  • Deben coincidir todos los 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: 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: ef8e0d51-c78c-426b-8008-910e27546f23

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE