Saltar al contenido

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_APT_MAL_UNC4841_SEASPY_LUA_Jun23_1

Detects SEASPY malware related LUA script

APT / actorSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compila con YARA-X
Autor
Florian Roth
Fecha
2023-06-16
Modificada
2023-12-05
Puntuación / Calidad
90 / 85

Qué detecta esta regla

Detects SEASPY malware related LUA script

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

apt-mal-unc4841-seaspy-lua-jun23-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_APT_MAL_UNC4841_SEASPY_LUA_Jun23_1 : FILE
{
	meta:
		description = "Detects SEASPY malware related LUA script"
		author = "Florian Roth"
		id = "a44861d0-107e-589b-8cf1-3fbc2f5c78dc"
		date = "2023-06-16"
		modified = "2023-12-05"
		reference = "https://blog.talosintelligence.com/alchimist-offensive-framework/"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_barracuda_esg_unc4841_jun23.yar#L57-L74"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "56e8066bf83ff6fe0cec92aede90f6722260e0a3f169fc163ed88589bffd7451"
		logic_hash = "f78823a4ba9e025ba4833a2d5234c7baba33c1167c0247f13b8b2baa430aa4e5"
		score = 90
		quality = 85
		tags = "FILE"

	strings:
		$x1 = "os.execute('rverify'..' /tmp/'..attachment:filename())" ascii fullword
		$x2 = "log.debug(\"--- opening archive [%s], mimetype [%s]\", tmpfile" ascii fullword
		$xe1 = "os.execute('rverify'..' /tmp/'..attachment:filename())" ascii base64
		$xe2 = "log.debug(\"--- opening archive [%s], mimetype [%s]\", tmpfile" ascii base64

	condition:
		filesize < 500KB and 1 of them
}

Cadenas (4 patrones)

IdentificadorTipoValorModificadores
$x1texto"os.execute('rverify'..' /tmp/'..attachment:filename())"ascii fullword
$x2texto"log.debug(\"--- opening archive [%s], mimetype [%s]\", tmpfile"ascii fullword
$xe1texto"os.execute('rverify'..' /tmp/'..attachment:filename())"ascii base64
$xe2texto"log.debug(\"--- opening archive [%s], mimetype [%s]\", tmpfile"ascii base64

Condición

filesize < 500KB and 1 of them

En palabras sencillas (Heurística)

  • El archivo debe ocupar menos de 500KB (un límite barato que descarta archivos grandes).
  • Deben coincidir al menos 1 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

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).

  • 56e8066bf83ff6fe0cec92aede90f6722260e0a3f169fc163ed88589bffd7451

Licencia y atribución

Autor: Florian Roth

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: a44861d0-107e-589b-8cf1-3fbc2f5c78dc

Etiquetas:FILE