Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Rootkit_Diamorphine_Strings

Detects Diamorphine linux rootkit based on strings

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

Qué detecta esta regla

Detects Diamorphine linux rootkit based on strings

Objetivos: ELF de Linux.

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

rootkit-diamorphine-strings.yarDetection Rule License 1.1
rule SEKOIA_Rootkit_Diamorphine_Strings : FILE
{
	meta:
		description = "Detects Diamorphine linux rootkit based on strings"
		author = "Sekoia.io"
		id = "5a28be5c-9a57-4204-a7cc-42dfcaa2c2da"
		date = "2024-10-21"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rootkit_diamorphine_strings.yar#L1-L31"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "622675e83bab630adc0f1c6c46c4d6d1"
		hash = "013b23213975d2646e2435f058afcacf"
		hash = "f068e83721f10ad74bb6f386a4375a91"
		hash = "ba9d6a6bbde602fd414cea09fcbd1aa0"
		hash = "fdd86788e295010c4e61bf6b589f340e"
		hash = "0d396c1763503b35a7f601831bd684de"
		hash = "66b8955188a3bda7ecdcd51cfd360313"
		hash = "1e4fd8c6bf0e381ac395d9bff1f98a31"
		hash = "ce08ce2b8bc1718052f5d0316e3e71b7"
		hash = "94982037875d4fdb17681866afc12ade"
		hash = "4fa2fe9ccde3e6bd4956e2b93ca5fcb6"
		hash = "644c4ce0bbe4f1f1e3aae537a111d5b8"
		hash = "fb7d594621fbb4f9bdb0eb74f6090ecd"
		hash = "9faf1493164e734f533f0ecfb1737a98"
		hash = "33d48b6c66715ab67a059ab940d759ff"
		logic_hash = "70e2e9155181a717f1c2483a748d5991488f0ba7371a2b3c9cfada2ecc5812f9"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "LKM rootkit" ascii fullword
		$ = "m0nad"

	condition:
		uint32be( 0 ) == 0x7f454c46 and all of them
}

Cadenas (2 patrones)

IdentificadorTipoValorModificadores
$texto"LKM rootkit"ascii fullword
$texto"m0nad"

Condición

uint32be( 0 ) == 0x7f454c46 and all of them

En palabras sencillas (Heurística)

  • El archivo debe empezar por la cabecera ELF: un ejecutable de Linux/Unix.
  • 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).

  • 622675e83bab630adc0f1c6c46c4d6d1
  • 013b23213975d2646e2435f058afcacf
  • f068e83721f10ad74bb6f386a4375a91
  • ba9d6a6bbde602fd414cea09fcbd1aa0
  • fdd86788e295010c4e61bf6b589f340e
  • 0d396c1763503b35a7f601831bd684de
  • 66b8955188a3bda7ecdcd51cfd360313
  • 1e4fd8c6bf0e381ac395d9bff1f98a31
  • ce08ce2b8bc1718052f5d0316e3e71b7
  • 94982037875d4fdb17681866afc12ade
  • 4fa2fe9ccde3e6bd4956e2b93ca5fcb6
  • 644c4ce0bbe4f1f1e3aae537a111d5b8
  • fb7d594621fbb4f9bdb0eb74f6090ecd
  • 9faf1493164e734f533f0ecfb1737a98
  • 33d48b6c66715ab67a059ab940d759ff

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: 5a28be5c-9a57-4204-a7cc-42dfcaa2c2da

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE