Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Apt_Toneshell_Shellcode

Detects first bytes of ToneShell used to call the shellcode or the code to check the MagicNumber (0x17 0x03 0x03)

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 first bytes of ToneShell used to call the shellcode or the code to check the MagicNumber (0x17 0x03 0x03)

Define 2 patrones (0 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-shellcode.yarDetection Rule License 1.1
rule SEKOIA_Apt_Toneshell_Shellcode : FILE
{
	meta:
		description = "Detects first bytes of ToneShell used to call the shellcode or the code to check the MagicNumber (0x17 0x03 0x03)"
		author = "Sekoia.io"
		id = "5ac8d2e9-dbeb-42f9-8343-1281510d4411"
		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_shellcode.yar#L1-L34"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "0e164677681dce2aa75d3621d9f3df1449c3e67a3551817693856d80ccc48eca"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$code = {55 8b ec 83 ec 0c e8 85 00 00 00 6a 00 6a 00 6a 02 6a 00 6a 00 68 00 00 00 10}
		$MagicNumberParser = {
        B8 01 00 00 00
        6B C8 00
        8B 55 ??
        0F BE 04 0A
        83 F8 17
        75 ??
        B9 01 00 00 00
        C1 E1 00
        8B 55 ??
        0F BE 04 0A
        83 F8 03
        75 ??
        B9 01 00 00 00
        D1 E1
        8B 55 ??
        0F BE 04 0A
        83 F8 03
        }

	condition:
		any of them and filesize < 1MB
}

Cadenas (2 patrones)

IdentificadorTipoValorModificadores
$codehex{55 8b ec 83 ec 0c e8 85 00 00 00 6a 00 6a 00 6a 02 6a 00 6a 00 68 00 00 00 10}
$MagicNumberParserhex{ B8 01 00 00 00 6B C8 00 8B 55 ?? 0F BE 04 0A 83 F8 17 75 ?? B9 01 00 00 00 C1 E1 00 8B …

Condición

any of them and filesize < 1MB

En palabras sencillas (Heurística)

  • El archivo debe ocupar menos de 1MB (un límite barato que descarta archivos grandes).
  • Debe coincidir al menos un patrón 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: 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: 5ac8d2e9-dbeb-42f9-8343-1281510d4411

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE