YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Fiber
Detects Fiber .NET injector
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects Fiber .NET injector
Familia de malware asociada: Fiber.
Objetivos: PE de Windows.
Define 19 patrones (18 de texto, 1 hex, 0 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
rule DITEKSHEN_MALWARE_Win_Fiber : FILE
{
meta:
= "Detects Fiber .NET injector"
= "ditekSHen"
= "0e562e2e-cb91-5acf-bb8f-5e7e7d971a3d"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10788-L10824"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "bd6c2c02272fe59c8d7de533197f15d94b5532d32875f01e3e4bd52506456a34"
= 75
= 75
= "FILE"
strings:
$x1 = "Fiber.dll" fullword ascii
$s1 = "-WindowStyle Hidden Copy-Item -Path *.vbs -Destination" wide
$s2 = "-WindowStyle Hidden {0} -WindowStyle Hidden Start-Sleep 5; Start-Process {1}" wide
$s3 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run" wide
$s4 = "WScript.Shell" fullword wide
$s5 = "{0}_{1:N}.lnk" fullword wide
$s6 = "notepad.exe,0" fullword wide
$i1 = "AppLaunch.exe" fullword wide
$i2 = "aspnet_regbrowsers.exe" fullword wide
$i3 = "cvtres.exe" fullword wide
$i4 = "ilasm.exe" fullword wide
$i5 = "jsc.exe" fullword wide
$i6 = "MSBuild.exe" fullword wide
$i7 = "RegAsm.exe" fullword wide
$i8 = "RegSvcs.exe" fullword wide
$v1 = "is tampered" wide
$v2 = "Debugger Detected" wide
$v3 = "RepositoryUrl" ascii
$v4 = { 72 00 63 00 65 00 41 00 00 11 56 00 69 00 72 00
74 00 75 00 61 00 6c 00 20 00 00 0b 41 00 6c 00
6c 00 6f 00 63 00 00 0d 57 00 72 00 69 00 74 00
65 00 20 00 00 11 50 00 72 00 6f 00 63 00 65 00
73 00 73 00 20 00 00 0d 4d 00 65 00 6d 00 6f 00
72 00 79 00 00 0f 50 00 72 00 6f 00 74 00 65 00
63 00 74 00 00 0b 4f 00 70 00 65 00 6e 00 20 00
00 0f 50 00 72 00 6f 00 63 00 65 00 73 00 73 00
00 0d 43 00 6c 00 6f 00 73 00 65 00 20 00 00 0d
48 00 61 00 6e 00 64 00 6c 00 65 00 00 0f 6b 00
65 00 72 00 6e 00 65 00 6c }
condition:
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 3 of ( $s* ) and 2 of ( $i* ) ) or ( 4 of ( $s* ) and 4 of ( $i* ) ) or ( 2 of ( $s* ) and 6 of ( $i* ) ) or ( 1 of ( $x* ) and 3 of ( $v* ) ) or ( all of ( $v* ) ) )
}
Cadenas (19 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | texto | "Fiber.dll" | fullword ascii |
| $s1 | texto | "-WindowStyle Hidden Copy-Item -Path *.vbs -Destination" | wide |
| $s2 | texto | "-WindowStyle Hidden {0} -WindowStyle Hidden Start-Sleep 5; Start-Process {1}" | wide |
| $s3 | texto | "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run" | wide |
| $s4 | texto | "WScript.Shell" | fullword wide |
| $s5 | texto | "{0}_{1:N}.lnk" | fullword wide |
| $s6 | texto | "notepad.exe,0" | fullword wide |
| $i1 | texto | "AppLaunch.exe" | fullword wide |
| $i2 | texto | "aspnet_regbrowsers.exe" | fullword wide |
| $i3 | texto | "cvtres.exe" | fullword wide |
| $i4 | texto | "ilasm.exe" | fullword wide |
| $i5 | texto | "jsc.exe" | fullword wide |
| $i6 | texto | "MSBuild.exe" | fullword wide |
| $i7 | texto | "RegAsm.exe" | fullword wide |
| $i8 | texto | "RegSvcs.exe" | fullword wide |
| $v1 | texto | "is tampered" | wide |
| $v2 | texto | "Debugger Detected" | wide |
| $v3 | texto | "RepositoryUrl" | ascii |
| $v4 | hex | { 72 00 63 00 65 00 41 00 00 11 56 00 69 00 72 00 74 00 75 00 61 00 6c 00 20 00 00 0b 41 00 6c 00 6c 00 6f 00 63 00 00 0d 57 00 … |
Condición
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 3 of ( $s* ) and 2 of ( $i* ) ) or ( 4 of ( $s* ) and 4 of ( $i* ) ) or ( 2 of ( $s* ) and 6 of ( $i* ) ) or ( 1 of ( $x* ) and 3 of ( $v* ) ) or ( all of ( $v* ) ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de ( $v* ).
- Deben coincidir al menos 1 patrones de ( $x* ).
- Deben coincidir al menos 3 patrones de ( $s* ).
- Deben coincidir al menos 2 patrones de ( $i* ).
- Deben coincidir al menos 4 patrones de ( $s* ).
- Deben coincidir al menos 4 patrones de ( $i* ).
- Deben coincidir al menos 2 patrones de ( $s* ).
- Deben coincidir al menos 6 patrones de ( $i* ).
- Deben coincidir al menos 3 patrones de ( $v* ).
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: 0e562e2e-cb91-5acf-bb8f-5e7e7d971a3d
Etiquetas:FILE
Reglas relacionadas
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06