Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Macoute

Detects Macoute

MalwareMacouteditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
Autor
ditekSHen
Fecha
2020-11-06
Modificada
2024-11-01
Puntuación / Calidad
75 / 75

Qué detecta esta regla

Detects Macoute

Familia de malware asociada: Macoute.

Objetivos: PE de Windows.

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

malware-win-macoute.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Macoute : FILE
{
	meta:
		description = "Detects Macoute"
		author = "ditekSHen"
		id = "0ecfb923-2e51-544e-984d-efdeeb175727"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7814-L7836"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "1dffa48fe6c0ac053509b5f5994d323fd72d090da0f077b52c9bc33df6997964"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "scp%s%s%s%s" ascii
		$s2 = "putfile %s %s" ascii
		$s3 = "pscp|%s|%s:%s" ascii
		$s4 = "connect %host %port\\n" ascii
		$s5 = "/ecoute/spool/%s-%lu" ascii
		$s6 = "<f n=\"%s\" s=\"%lu\" d=\"%d-%d-%d\"/>" ascii
		$s7 = "CMPT;%s;%s;%s;%s;%s" ascii
		$s8 = "%s\\apoScreen%lu.dll" ascii
		$s9 = "/cap/%s%lu.jpg" ascii
		$s10 = "INFO;%u;%u;%u;%d;%d;%d;%d;%d;%d;%d;%s" ascii
		$s11 = "SUBJECT: %s is comming!" ascii
		$s12 = "Content-type: multipart/mixed; boundary=\"#BOUNDARY#\"" ascii
		$s13 = "FROM: %s@yahoo.com" ascii
		$s14 = "<html><script language=\"JavaScript\">window.open(\"readme.eml\", null,\"resizable=no,top=6000,left=6000\")</script></html>" ascii
		$s15 = "<html><HEAD></HEAD><body bgColor=3D#ffffff><iframe src=3Dcid:THE-CID height=3D0 width=3D0></iframe></body></html>" ascii

	condition:
		uint16( 0 ) == 0x5a4d and 10 of them
}

Cadenas (15 patrones)

IdentificadorTipoValorModificadores
$s1texto"scp%s%s%s%s"ascii
$s2texto"putfile %s %s"ascii
$s3texto"pscp|%s|%s:%s"ascii
$s4texto"connect %host %port\\n"ascii
$s5texto"/ecoute/spool/%s-%lu"ascii
$s6texto"<f n=\"%s\" s=\"%lu\" d=\"%d-%d-%d\"/>"ascii
$s7texto"CMPT;%s;%s;%s;%s;%s"ascii
$s8texto"%s\\apoScreen%lu.dll"ascii
$s9texto"/cap/%s%lu.jpg"ascii
$s10texto"INFO;%u;%u;%u;%d;%d;%d;%d;%d;%d;%d;%s"ascii
$s11texto"SUBJECT: %s is comming!"ascii
$s12texto"Content-type: multipart/mixed; boundary=\"#BOUNDARY#\""ascii
$s13texto"FROM: %s@yahoo.com"ascii
$s14texto"<html><script language=\"JavaScript\">window.open(\"readme.eml\", null,\"resizable=no,top=6000,left=6000\")</script></html>"ascii
$s15texto"<html><HEAD></HEAD><body bgColor=3D#ffffff><iframe src=3Dcid:THE-CID height=3D0 width=3D0></iframe></body></html>"ascii

Condición

uint16( 0 ) == 0x5a4d and 10 of them

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 10 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

Licencia y atribución

Autor: ditekSHen

Repositorio de origen: ditekSHen detection @ e76c93dcde

Licencia: BSD 2-Clause License (licencia del repositorio)

Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

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: 0ecfb923-2e51-544e-984d-efdeeb175727

Etiquetas:FILE