YARA · Cod3nym detection-rules
COD3NYM_DOTNET_Singlefilehost_Bundled_App
Detects single file host .NET bundled apps.
- Autor
- Jonathan Peters
- Fecha
- 2024-01-02
- Modificada
- 2024-01-05
- Puntuación / Calidad
- 75 / 80
Qué detecta esta regla
Detects single file host .NET bundled apps.
Objetivos: PE de Windows.
Define 2 patrones (2 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 COD3NYM_DOTNET_Singlefilehost_Bundled_App : FILE
{
meta:
= "Detects single file host .NET bundled apps."
= "Jonathan Peters"
= "061bd294-58d6-57be-b8b5-b8a8f31ce316"
= "2024-01-02"
= "2024-01-05"
= "https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file"
= "https://github.com/cod3nym/detection-rules//blob/86a04c4594cb48895192aad4af164f21f568c136/yara/dotnet/framework_identiciation.yar#L3-L17"
= "https://github.com/cod3nym/detection-rules//blob/86a04c4594cb48895192aad4af164f21f568c136/LICENSE.md"
= "12075b07a9feb951898ac8eba303471d9253ed9535db927244e5562f4fad33d6"
= 75
= 80
= "FILE"
strings:
$ = "singlefilehost.exe" ascii
$ = "singlefilehost.pdb" ascii
condition:
uint16( 0 ) == 0x5a4d and 1 of them and pe.exports ( "DotNetRuntimeInfo" ) and pe.exports ( "CLRJitAttachState" )
}
Cadenas (2 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $ | texto | "singlefilehost.exe" | ascii |
| $ | texto | "singlefilehost.pdb" | ascii |
Condición
uint16( 0 ) == 0x5a4d and 1 of them and pe.exports ( "DotNetRuntimeInfo" ) and pe.exports ( "CLRJitAttachState" )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 1 patrones de la regla.
- Usa el módulo pe.
- Comprueba funciones exportadas o el nombre de la 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.
Licencia y atribución
Autor: Jonathan Peters
Repositorio de origen: Cod3nym detection-rules @ 86a04c4594
Licencia: Detection Rule License 1.1 (licencia del repositorio)
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: 061bd294-58d6-57be-b8b5-b8a8f31ce316
Etiquetas:FILE
Reglas relacionadas
- MalwareCod3nym detection-rules· Jonathan Peters· 2024-01-16
- MalwareCod3nym detection-rules· Jonathan Peters· 2024-01-12
- Sospechoso / huntingCod3nym detection-rules· Jonathan Peters· 2024-01-09
- Sospechoso / huntingCod3nym detection-rules· Jonathan Peters· 2024-01-14
- Sospechoso / huntingCod3nym detection-rules· Jonathan Peters· 2024-01-11
- Sospechoso / huntingCod3nym detection-rules· Jonathan Peters· 2024-01-09
- Sospechoso / huntingCod3nym detection-rules· Jonathan Peters· 2024-01-05