YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Mediapi
Detects MediaPI
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects MediaPI
Familia de malware asociada: Mediapi.
Objetivos: PE de Windows.
Define 7 patrones (7 de texto, 0 hex, 0 regex). Módulos YARA usados: pe.
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
Incluye los imports necesarios para compilarla por sí sola.
import "pe"
rule DITEKSHEN_MALWARE_Win_Mediapi : FILE
{
meta:
= "Detects MediaPI"
= "ditekSHen"
= "95db8772-1bcd-5eea-956c-c9578b8e1329"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11425-L11439"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "2bce0a96b45e46c0cbd913dacb3dfe7ae1b519102d637e0fd9dabe2008037d94"
= 75
= 75
= "FILE"
strings:
$s1 = "SomeFunction" ascii
$s2 = "\"stealth" ascii
$s3 = "\"ServAddr" ascii
$s4 = "\"ServPort" ascii
$s5 = "\"ServIp" ascii
$s6 = "\"wsaData" ascii
$s7 = "\"-socket" ascii
condition:
uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and ( ( 6 of them ) or ( 3 of them and pe.exports ( "SomeFunction" ) ) )
}
Cadenas (7 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "SomeFunction" | ascii |
| $s2 | texto | "\"stealth" | ascii |
| $s3 | texto | "\"ServAddr" | ascii |
| $s4 | texto | "\"ServPort" | ascii |
| $s5 | texto | "\"ServIp" | ascii |
| $s6 | texto | "\"wsaData" | ascii |
| $s7 | texto | "\"-socket" | ascii |
Condición
uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and ( ( 6 of them ) or ( 3 of them and pe.exports ( "SomeFunction" ) ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 6 patrones de la regla.
- Deben coincidir al menos 3 patrones de la regla.
- Usa el módulo pe.
- Comprueba funciones exportadas o el nombre de la DLL.
- Requiere una DLL.
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
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).
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: 95db8772-1bcd-5eea-956c-c9578b8e1329
Etiquetas:FILE
Reglas relacionadas
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06