YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MSIL_SUSP_OBFUSC_Xorstringsnet
Detects XorStringsNET string encryption, and other obfuscators derived from it
- Auteur
- dr4k0nia
- Date
- 2023-03-26
- Modifiée
- 2023-12-05
- Score / Qualité
- 75 / 85
Ce que détecte cette règle
Detects XorStringsNET string encryption, and other obfuscators derived from it
Cibles : PE Windows.
Elle définit 8 motifs (7 texte, 1 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 SIGNATURE_BASE_MSIL_SUSP_OBFUSC_Xorstringsnet : FILE
{
meta:
= "Detects XorStringsNET string encryption, and other obfuscators derived from it"
= "dr4k0nia"
= "f0724ca6-4bfe-5b88-9396-a58aa7461fd6"
= "2023-03-26"
= "2023-12-05"
= "https://github.com/dr4k0nia/yara-rules"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_net_xorstrings.yar#L2-L27"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "6d023a80bd8f5709721c3ace8a7230b847ca4bd2a1aff502a25333ffc8bf75ca"
= 75
= 85
= "FILE"
= "1.0"
strings:
$pattern = { 06 1E 58 07 8E 69 FE 17 }
$a1 = "_CorDllMain" ascii
$a2 = "_CorExeMain" ascii
$a3 = "mscorlib" ascii fullword
$a4 = ".cctor" ascii fullword
$a5 = "System.Private.Corlib" ascii
$a6 = "<Module>" ascii fullword
$a7 = "<PrivateImplementationsDetails{" ascii
condition:
uint16( 0 ) == 0x5a4d and filesize < 25MB and $pattern and 2 of ( $a* )
}
Chaînes (8 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $pattern | hex | { 06 1E 58 07 8E 69 FE 17 } | |
| $a1 | texte | "_CorDllMain" | ascii |
| $a2 | texte | "_CorExeMain" | ascii |
| $a3 | texte | "mscorlib" | ascii fullword |
| $a4 | texte | ".cctor" | ascii fullword |
| $a5 | texte | "System.Private.Corlib" | ascii |
| $a6 | texte | "<Module>" | ascii fullword |
| $a7 | texte | "<PrivateImplementationsDetails{" | ascii |
Condition
uint16( 0 ) == 0x5a4d and filesize < 25MB and $pattern and 2 of ( $a* )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Le fichier doit faire moins de 25MB (garde-fou peu coûteux qui écarte les gros fichiers).
- Au moins 2 motifs de ( $a* ) doivent être trouvés.
- Le motif $pattern doit être présent.
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é.
Références
Licence et attribution
Auteur : dr4k0nia
Dépôt source : Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
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: f0724ca6-4bfe-5b88-9396-a58aa7461fd6
Métadonnées
| version | 1.0 |
|---|
Tags:FILE
Règles liées
- MalwareSignature Base (Florian Roth / Nextron)· dr4k0nia· 2023-06-16