Saltar al contenido

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_RAR_NTFS_ADS

Detects RAR archive with NTFS alternate data stream

Sospechoso / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compila con YARA-X (con avisos)
Autor
Proofpoint
Fecha
2024-12-17
Modificada
2025-01-17
Puntuación / Calidad
70 / 83

Qué detecta esta regla

Detects RAR archive with NTFS alternate data stream

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

susp-rar-ntfs-ads.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_RAR_NTFS_ADS : HUNTING FILE
{
	meta:
		description = "Detects RAR archive with NTFS alternate data stream"
		author = "Proofpoint"
		id = "ca2b5904-b3d3-53cd-a973-6f30f0831a94"
		date = "2024-12-17"
		modified = "2025-01-17"
		reference = "https://www.proofpoint.com/us/blog/threat-insight/hidden-plain-sight-ta397s-new-attack-chain-delivers-espionage-rats"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_ta397_dec24.yar#L82-L110"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "feec47858379c29300d249d1693f68dc085300f493891d1a9d4ea83b8db6e3c3"
		hash = "53a653aae9678075276bdb8ccf5eaff947f9121f73b8dcf24858c0447922d0b1"
		logic_hash = "bcca4771e8f940ce8cfcff08284545fec6163df549e1fb589d89ca3fa335f04c"
		score = 70
		quality = 83
		tags = "HUNTING, FILE"
		category = "hunting"

	strings:
		$rar_magic = {52 61 72 21}
		$ads = {
                 03         // Header Type -> Service Header
                 23         // Header flags
                 [17-20]    // Flags and extra data area
                 00         // Windows
                 03         // Length of name = STM = 3
                 53 54 4d   // STM NTFS alternate data stream
                 [1-2]      // variable int (vint) for size of the stream name -> 1-2 bytes should be enough to take into account
                 07         // Data type = Service data = Service header data array
                 3a         // Start of the ADS name -> start with colon ":"
               }
		$neg = "Zone.Identifier"

	condition:
		$rar_magic at 0 and $ads and not $neg in ( @ads [ 1 ] .. @ads [ 1 ] + 15 )
}

Cadenas (3 patrones)

IdentificadorTipoValorModificadores
$rar_magichex{52 61 72 21}
$adshex{ 03 // Header Type -> Service Header 23 // Header flags [17-20] // Flags and extra data a …
$negtexto"Zone.Identifier"

Condición

$rar_magic at 0 and $ads and not $neg in ( @ads [ 1 ] .. @ads [ 1 ] + 15 )

En palabras sencillas (Heurística)

  • El patrón $rar_magic debe estar en el offset 0.
  • El patrón $neg debe estar en el rango @ads [ 1 ] .. @ads [ 1 ] + 15.
  • El patrón $neg NO debe estar presente.
  • El patrón $ads debe estar presente.

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

Hashes de muestras

Hashes de las muestras que el autor lista en los metadatos de la regla (búscalos en tu plataforma de threat intelligence).

  • feec47858379c29300d249d1693f68dc085300f493891d1a9d4ea83b8db6e3c3
  • 53a653aae9678075276bdb8ccf5eaff947f9121f73b8dcf24858c0447922d0b1

Licencia y atribución

Autor: Proofpoint

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: ca2b5904-b3d3-53cd-a973-6f30f0831a94

Metadatos

categoryhunting

Etiquetas:HUNTINGFILE