YARA · Cod3nym detection-rules
COD3NYM_MAL_NET_Niximports_Loader_Jan24
Detects open-source NixImports .NET malware loader. A stealthy loader using dynamic import resolving to evade static detection
- Auteur
- Jonathan Peters
- Date
- 2024-01-12
- Score / Qualité
- 80 / 80
Ce que détecte cette règle
Detects open-source NixImports .NET malware loader. A stealthy loader using dynamic import resolving to evade static detection
Cibles : PE Windows.
Elle définit 7 motifs (3 texte, 4 hex, 0 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
rule COD3NYM_MAL_NET_Niximports_Loader_Jan24 : FILE
{
meta:
= "Detects open-source NixImports .NET malware loader. A stealthy loader using dynamic import resolving to evade static detection"
= "Jonathan Peters"
= "f36ad127-4c4b-5b7e-a13c-bfb9d222a438"
= "2024-01-12"
= "2024-01-12"
= "https://github.com/dr4k0nia/NixImports/tree/master"
= "https://github.com/cod3nym/detection-rules//blob/86a04c4594cb48895192aad4af164f21f568c136/yara/dotnet/mal/mal_net_niximports_loader.yar#L1-L22"
= "https://github.com/cod3nym/detection-rules//blob/86a04c4594cb48895192aad4af164f21f568c136/LICENSE.md"
= "dd3f22871879b0bc4990c96d1de957848c7ed0714635bb036c73d8a989fb0b39"
= "e41d7f4cb46aa0baa87d3024e0550efe5058ca49d908bbd34197431c7c054e58"
= 80
= 80
= "FILE"
strings:
$op1 = { 1F 0A 64 06 1F 11 62 60 }
$op2 = { 03 20 4D 5A 90 00 94 4B 2A }
$op3 = { 20 DE 7A 1F F3 20 F7 1B 18 BC }
$op4 = { 20 CE 1F BE 70 20 DF 1F 3E F8 14 }
$sa1 = "OffsetToStringData" ascii
$sa2 = "GetRuntimeMethods" ascii
$sa3 = "netstandard" ascii
condition:
uint16( 0 ) == 0x5a4d and all of ( $sa* ) and 2 of ( $op* )
}
Chaînes (7 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $op1 | hex | { 1F 0A 64 06 1F 11 62 60 } | |
| $op2 | hex | { 03 20 4D 5A 90 00 94 4B 2A } | |
| $op3 | hex | { 20 DE 7A 1F F3 20 F7 1B 18 BC } | |
| $op4 | hex | { 20 CE 1F BE 70 20 DF 1F 3E F8 14 } | |
| $sa1 | texte | "OffsetToStringData" | ascii |
| $sa2 | texte | "GetRuntimeMethods" | ascii |
| $sa3 | texte | "netstandard" | ascii |
Condition
uint16( 0 ) == 0x5a4d and all of ( $sa* ) and 2 of ( $op* )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Tous les motifs de ( $sa* ) doivent être trouvés.
- Au moins 2 motifs de ( $op* ) doivent être trouvés.
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é.
Hashes d’échantillons
Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).
- dd3f22871879b0bc4990c96d1de957848c7ed0714635bb036c73d8a989fb0b39
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: f36ad127-4c4b-5b7e-a13c-bfb9d222a438
Tags:FILE
Règles liées
- MalwareCod3nym detection-rules· Jonathan Peters· 2024-01-16
- GénériqueCod3nym detection-rules· Jonathan Peters· 2024-01-02
- 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