YARA · Cod3nym detection-rules
COD3NYM_DOTNET_Singlefilehost_Bundled_App
Detects single file host .NET bundled apps.
- Auteur
- Jonathan Peters
- Date
- 2024-01-02
- Modifiée
- 2024-01-05
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Detects single file host .NET bundled apps.
Cibles : PE Windows.
Elle définit 2 motifs (2 texte, 0 hex, 0 regex). Modules YARA utilisés : pe.
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
Inclut les imports nécessaires pour la compiler seule.
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" )
}
Chaînes (2 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $ | texte | "singlefilehost.exe" | ascii |
| $ | texte | "singlefilehost.pdb" | ascii |
Condition
uint16( 0 ) == 0x5a4d and 1 of them and pe.exports ( "DotNetRuntimeInfo" ) and pe.exports ( "CLRJitAttachState" )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 1 motifs de la règle doivent être trouvés.
- Utilise le module pe.
- Vérifie des fonctions exportées ou le nom de la DLL.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Licence et attribution
Auteur : Jonathan Peters
Dépôt source : Cod3nym detection-rules @ 86a04c4594
Licence : Detection Rule License 1.1 (licence du dépôt)
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: 061bd294-58d6-57be-b8b5-b8a8f31ce316
Tags:FILE
Règles liées
- MalwareCod3nym detection-rules· Jonathan Peters· 2024-01-16
- MalwareCod3nym detection-rules· Jonathan Peters· 2024-01-12
- Suspect / chasseCod3nym detection-rules· Jonathan Peters· 2024-01-09
- Suspect / chasseCod3nym detection-rules· Jonathan Peters· 2024-01-14
- Suspect / chasseCod3nym detection-rules· Jonathan Peters· 2024-01-11
- Suspect / chasseCod3nym detection-rules· Jonathan Peters· 2024-01-09
- Suspect / chasseCod3nym detection-rules· Jonathan Peters· 2024-01-05