YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MSIL_SUSP_OBFUSC_Xorstringsnet
Detects XorStringsNET string encryption, and other obfuscators derived from it
- Autor
- dr4k0nia
- Datum
- 2023-03-26
- Geändert
- 2023-12-05
- Score / Qualität
- 75 / 85
Was diese Regel erkennt
Detects XorStringsNET string encryption, and other obfuscators derived from it
Ziele: Windows-PE.
Sie definiert 8 Muster (7 Text, 1 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
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* )
}
Strings (8 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $pattern | Hex | { 06 1E 58 07 8E 69 FE 17 } | |
| $a1 | Text | "_CorDllMain" | ascii |
| $a2 | Text | "_CorExeMain" | ascii |
| $a3 | Text | "mscorlib" | ascii fullword |
| $a4 | Text | ".cctor" | ascii fullword |
| $a5 | Text | "System.Private.Corlib" | ascii |
| $a6 | Text | "<Module>" | ascii fullword |
| $a7 | Text | "<PrivateImplementationsDetails{" | ascii |
Bedingung
uint16( 0 ) == 0x5a4d and filesize < 25MB and $pattern and 2 of ( $a* )In Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Die Datei muss kleiner als 25MB sein (eine günstige Grenze, die große Dateien ausschließt).
- Mindestens 2 Muster aus ( $a* ) müssen treffen.
- Muster $pattern muss vorhanden sein.
Diese Regel im Browser testen
Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.
Referenzen
Lizenz & Namensnennung
Autor: dr4k0nia
Quell-Repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Lizenz: Detection Rule License 1.1 (Repository-Lizenz)
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: f0724ca6-4bfe-5b88-9396-a58aa7461fd6
Metadaten
| version | 1.0 |
|---|
Tags:FILE
Verwandte Regeln
- MalwareSignature Base (Florian Roth / Nextron)· dr4k0nia· 2023-06-16