Saltar al contenido

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_MAL_APT_NK_Andariel_Cutiedrop_Magicrat

Detects the MagicRAT variant used by Andariel

MalwareSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compila con YARA-X
Autor
CISA.gov (modified by Florian Roth, Nextron Systems)
Fecha
2024-07-25
Modificada
2026-01-29
Puntuación / Calidad
80 / 85

Qué detecta esta regla

Detects the MagicRAT variant used by Andariel

Objetivos: PE de Windows.

Define 8 patrones (8 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

mal-apt-nk-andariel-cutiedrop-magicrat.yarDetection Rule License 1.1
rule SIGNATURE_BASE_MAL_APT_NK_Andariel_Cutiedrop_Magicrat : FILE
{
	meta:
		description = "Detects the MagicRAT variant used by Andariel"
		author = "CISA.gov (modified by Florian Roth, Nextron Systems)"
		id = "104244de-83fb-5112-a2b6-e20d38a6ced6"
		date = "2024-07-25"
		modified = "2026-01-29"
		reference = "https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-207a"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_nk_andariel_jul24.yar#L61-L85"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "f289bbd71bdeaf2c42063642454679ec26de5ed24c020af40db694a0ced54884"
		score = 80
		quality = 85
		tags = "FILE"

	strings:
		$config_os_w = "os/windows" ascii
		$config_os_l = "os/linux" ascii
		$config_os_m = "os/mac" ascii
		$config_comp_msft = "company/microsoft" ascii
		$config_comp_orcl = "company/oracle" ascii
		$POST_field_1 = "session=" ascii
		$POST_field_2 = "type=" ascii
		$command_misspelled = "renmae" ascii

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

Cadenas (8 patrones)

IdentificadorTipoValorModificadores
$config_os_wtexto"os/windows"ascii
$config_os_ltexto"os/linux"ascii
$config_os_mtexto"os/mac"ascii
$config_comp_msfttexto"company/microsoft"ascii
$config_comp_orcltexto"company/oracle"ascii
$POST_field_1texto"session="ascii
$POST_field_2texto"type="ascii
$command_misspelledtexto"renmae"ascii

Condición

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

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 7 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: CISA.gov (modified by Florian Roth, Nextron Systems)

Repositorio de origen: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

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: 104244de-83fb-5112-a2b6-e20d38a6ced6

Etiquetas:FILE