Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Apt_Toneshell_Loader

Detects loader of ToneShell (exception based)

APT / actorSEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X
Autor
Sekoia.io
Fecha
2024-10-02
Modificada
2024-12-19
Puntuación / Calidad
75 / 80

Qué detecta esta regla

Detects loader of ToneShell (exception based)

Objetivos: PE de Windows.

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

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

Código de la regla

apt-toneshell-loader.yarDetection Rule License 1.1
rule SEKOIA_Apt_Toneshell_Loader : FILE
{
	meta:
		description = "Detects loader of ToneShell (exception based)"
		author = "Sekoia.io"
		id = "b4bf284b-cab6-455e-a1c1-ad341d43bfdd"
		date = "2024-10-02"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_toneshell_loader.yar#L1-L40"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "41e0d172d900344a3692b88fff7527d9"
		hash = "782cf7183735935f3f7aad041cec3184"
		hash = "97c1f436028c58b51d4c92ee9c9ce424"
		hash = "d6c771f2afd8ce35e8727f95f3a3c6c4"
		hash = "b8520c5bad88ade394086cb7b1b7b631"
		hash = "0b3e8571e70a32490da19f6b3283151c"
		hash = "f6784c65ee115a9ae4c0fb03e0045285"
		hash = "38888696e5223c77f5f8680922396123"
		hash = "b52d0707e4e5d5c0d5fd5f5a177ba712"
		hash = "fd54c6d17ff91640b377ff41353efdaa"
		hash = "a6efe263acc794a212647a96e52ddf1f"
		hash = "6e8c80c5f2f9a1da504618e984d2a56c"
		hash = "0839666697ccc562a9c1fe77d6755931"
		hash = "f367f2fe580e556176b60da202c742a5"
		hash = "e8b2fcc14494ada2f28d1f6ecd2521a2"
		hash = "c08589e10812cc7d636dcbe2a36d43b4"
		hash = "fa848a05cfecc0c25cd21364c9516584"
		hash = "be231f7879d8d2159b67b7f277527268"
		hash = "2acd8b48202dcc30d88a871370c4f37a"
		hash = "72963bfc2837695f038680471d4f061c"
		logic_hash = "40e1b918a4d83a4918260d8b1cc56e5097665a366f94bd5068e4ae519e3a681b"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$exception = {00 00 00 00 2e 44 00 00}
		$code = {02 00 00 00 66 89 96}
		$kernel32 = "Kernel32.dll" wide
		$outputdbgstr = "OutputDebugStringA"
		$content = "ResetEvent"

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

Cadenas (5 patrones)

IdentificadorTipoValorModificadores
$exceptionhex{00 00 00 00 2e 44 00 00}
$codehex{02 00 00 00 66 89 96}
$kernel32texto"Kernel32.dll"wide
$outputdbgstrtexto"OutputDebugStringA"
$contenttexto"ResetEvent"

Condición

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

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • El archivo debe ocupar menos de 2MB (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

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

  • 41e0d172d900344a3692b88fff7527d9
  • 782cf7183735935f3f7aad041cec3184
  • 97c1f436028c58b51d4c92ee9c9ce424
  • d6c771f2afd8ce35e8727f95f3a3c6c4
  • b8520c5bad88ade394086cb7b1b7b631
  • 0b3e8571e70a32490da19f6b3283151c
  • f6784c65ee115a9ae4c0fb03e0045285
  • 38888696e5223c77f5f8680922396123
  • b52d0707e4e5d5c0d5fd5f5a177ba712
  • fd54c6d17ff91640b377ff41353efdaa
  • a6efe263acc794a212647a96e52ddf1f
  • 6e8c80c5f2f9a1da504618e984d2a56c
  • 0839666697ccc562a9c1fe77d6755931
  • f367f2fe580e556176b60da202c742a5
  • e8b2fcc14494ada2f28d1f6ecd2521a2
  • c08589e10812cc7d636dcbe2a36d43b4
  • fa848a05cfecc0c25cd21364c9516584
  • be231f7879d8d2159b67b7f277527268
  • 2acd8b48202dcc30d88a871370c4f37a
  • 72963bfc2837695f038680471d4f061c

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: b4bf284b-cab6-455e-a1c1-ad341d43bfdd

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE