YARA · elceef yara-rulz
ELCEEF_HTML_Windows_Search_Abuse
Detects HTML files abusing Windows system functionalities to redirect and download malicious payloads
- Autor
- marcin@ulikowski.pl
- Fecha
- 2024-06-15
- Modificada
- 2024-06-16
- Puntuación / Calidad
- 75 / 73
Qué detecta esta regla
Detects HTML files abusing Windows system functionalities to redirect and download malicious payloads
Define 9 patrones (9 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
rule ELCEEF_HTML_Windows_Search_Abuse
{
meta:
= "Detects HTML files abusing Windows system functionalities to redirect and download malicious payloads"
= "marcin@ulikowski.pl"
= "537cb46e-4cfc-517c-8d6d-0019f2c3e5ef"
= "2024-06-15"
= "2024-06-16"
= "https://github.com/elceef/yara-rulz"
= "https://github.com/elceef/yara-rulz/blob/5683b294a12cf0c875b624933586029ae43a852f/rules/HTML_Windows_Search.yara#L1-L22"
= "https://github.com/elceef/yara-rulz/blob/5683b294a12cf0c875b624933586029ae43a852f/LICENSE"
= "d136dcfc355885c502ff2c3be229791538541b748b6c07df3ced95f9a7eb2f30"
= "6a0d490cf08ab0aad3c535645abe9ebc26d12768cf2a2e932cdb7ec93cf3e2bd"
= 75
= 73
= ""
strings:
$location1 = "location.href" wide ascii
$location2 = "location.replace(" wide ascii
$location3 = "location.assign(" wide ascii
$metarefresh = "<meta http-equiv=\"refresh\"" nocase wide ascii
$search1 = "\"search-ms:query=" wide ascii
$search2 = "\"search:query=" wide ascii
$search3 = "URL=search:query=" wide ascii
$crumb1 = "&crumb=location:" wide ascii
$crumb2 = "&crumb=location:" wide ascii
condition:
( any of ( $location* ) or $metarefresh ) and any of ( $search* ) and any of ( $crumb* )
}
Cadenas (9 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $location1 | texto | "location.href" | wide ascii |
| $location2 | texto | "location.replace(" | wide ascii |
| $location3 | texto | "location.assign(" | wide ascii |
| $metarefresh | texto | "<meta http-equiv=\"refresh\"" | nocase wide ascii |
| $search1 | texto | "\"search-ms:query=" | wide ascii |
| $search2 | texto | "\"search:query=" | wide ascii |
| $search3 | texto | "URL=search:query=" | wide ascii |
| $crumb1 | texto | "&crumb=location:" | wide ascii |
| $crumb2 | texto | "&crumb=location:" | wide ascii |
Condición
( any of ( $location* ) or $metarefresh ) and any of ( $search* ) and any of ( $crumb* )En palabras sencillas (Heurística)
- Debe coincidir al menos un patrón de ( $location* ).
- Debe coincidir al menos un patrón de ( $search* ).
- Debe coincidir al menos un patrón de ( $crumb* ).
- El patrón $metarefresh debe estar presente.
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
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).
- d136dcfc355885c502ff2c3be229791538541b748b6c07df3ced95f9a7eb2f30
Licencia y atribución
Autor: marcin@ulikowski.pl
Repositorio de origen: elceef yara-rulz @ 5683b294a1
Licencia: MIT License (licencia del repositorio)
Aviso de copyright: Copyright (c) 2022 Marcin Ulikowski
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: 537cb46e-4cfc-517c-8d6d-0019f2c3e5ef
Reglas relacionadas
- Exploitelceef yara-rulz· marcin@ulikowski.pl· 2025-08-18
- Genéricaelceef yara-rulz· marcin@ulikowski.pl· 2024-04-10
- Genéricaelceef yara-rulz· marcin@ulikowski.pl· 2023-05-05
- Sospechoso / huntingelceef yara-rulz· marcin@ulikowski.pl· 2023-05-01
- Genéricaelceef yara-rulz· marcin@ulikowski.pl· 2023-04-17
- Exploitelceef yara-rulz· marcin@ulikowski.pl· 2023-09-23
- Genéricaelceef yara-rulz· marcin@ulikowski.pl· 2023-03-08
- Genéricaelceef yara-rulz· marcin@ulikowski.pl· 2022-10-25