Saltar al contenido

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_MAL_APT_NK_Andariel_Lilithrat_Variant

Detects a variant of the Lilith RAT malware family

MalwareLilithratSignature 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
2024-07-26
Puntuación / Calidad
80 / 85

Qué detecta esta regla

Detects a variant of the Lilith RAT malware family

Familia de malware asociada: Lilithrat.

Objetivos: PE de Windows.

Define 10 patrones (10 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-lilithrat-variant.yarDetection Rule License 1.1
rule SIGNATURE_BASE_MAL_APT_NK_Andariel_Lilithrat_Variant : FILE
{
	meta:
		description = "Detects a variant of the Lilith RAT malware family"
		author = "CISA.gov (modified by Florian Roth, Nextron Systems)"
		id = "916a289b-db7b-5f09-9d3e-589c3f09101d"
		date = "2024-07-25"
		modified = "2024-07-26"
		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#L143-L178"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "3ce68908468ff85683b081842fa4faa579fbf6f7dc1a7fab5dcf7eac63d90aea"
		score = 80
		quality = 85
		tags = "FILE"

	strings:
		$lilith_1 = "Initiate a CMD session first." ascii
		$lilith_2 = "CMD is not open" ascii
		$lilith_3 = "Couldn't write command" ascii
		$lilith_4 = "Couldn't write to CMD: CMD not open" ascii
		$unique_1 = "Upload Error!" ascii
		$unique_2 = "ERROR: Downloading is already running!" ascii
		$unique_3 = "ERROR: Unable to open file:" ascii
		$unique_4 = "General error" ascii
		$unique_5 = "CMD error" ascii
		$unique_6 = "killing self" ascii

	condition:
		uint16( 0 ) == 0x5a4d and filesize < 150KB and ( all of ( $lilith_* ) or 4 of ( $unique_* ) or 1 of ( $lilith_4 , $unique_2 ) )
}

Cadenas (10 patrones)

IdentificadorTipoValorModificadores
$lilith_1texto"Initiate a CMD session first."ascii
$lilith_2texto"CMD is not open"ascii
$lilith_3texto"Couldn't write command"ascii
$lilith_4texto"Couldn't write to CMD: CMD not open"ascii
$unique_1texto"Upload Error!"ascii
$unique_2texto"ERROR: Downloading is already running!"ascii
$unique_3texto"ERROR: Unable to open file:"ascii
$unique_4texto"General error"ascii
$unique_5texto"CMD error"ascii
$unique_6texto"killing self"ascii

Condición

uint16( 0 ) == 0x5a4d and filesize < 150KB and ( all of ( $lilith_* ) or 4 of ( $unique_* ) or 1 of ( $lilith_4 , $unique_2 ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • El archivo debe ocupar menos de 150KB (un límite barato que descarta archivos grandes).
  • Deben coincidir todos los patrones de ( $lilith_* ).
  • Deben coincidir al menos 4 patrones de ( $unique_* ).
  • Deben coincidir al menos 1 patrones de ( $lilith_4 , $unique_2 ).

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: 916a289b-db7b-5f09-9d3e-589c3f09101d

Etiquetas:FILE