YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Nworm
Detects NWorm/N-W0rm payload
- Autor
- ditekSHen
- Datum
- 2020-11-06
- Geändert
- 2024-11-01
- Score / Qualität
- 75 / 75
Was diese Regel erkennt
Detects NWorm/N-W0rm payload
Zugehörige Malware-Familie: Nworm.
Ziele: Windows-PE.
Sie definiert 12 Muster (12 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
malware-win-nworm.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Nworm : FILE
{
meta:
= "Detects NWorm/N-W0rm payload"
= "ditekSHen"
= "06546ccf-8914-5b1c-942f-99664b9ecf44"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L3423-L3443"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "a1397a057422be260b5bdf1eb58571e95c259c132cc2518b39e1524a0eda9c66"
= 75
= 75
= "FILE"
= "MALWARE.Win.Trojan.NWorm"
strings:
$id1 = "N-W0rm" ascii
$id2 = "N_W0rm" ascii
$x1 = "pongPing" fullword wide
$x2 = "|NW|" fullword wide
$s1 = "runFile" fullword wide
$s2 = "runUrl" fullword wide
$s3 = "killer" fullword wide
$s4 = "powershell" fullword wide
$s5 = "wscript.exe" fullword wide
$s6 = "ExecutionPolicy Bypass -WindowStyle Hidden -NoExit -File \"" fullword wide
$s7 = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36" fullword wide
$s8 = "Start-Sleep -Seconds 1.5; Remove-Item -Path '" fullword wide
condition:
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $id* ) and ( 1 of ( $x* ) or 3 of ( $s* ) ) ) or ( all of ( $x* ) and 2 of ( $s* ) ) or 7 of ( $s* ) or 10 of them )
}
Strings (12 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $id1 | Text | "N-W0rm" | ascii |
| $id2 | Text | "N_W0rm" | ascii |
| $x1 | Text | "pongPing" | fullword wide |
| $x2 | Text | "|NW|" | fullword wide |
| $s1 | Text | "runFile" | fullword wide |
| $s2 | Text | "runUrl" | fullword wide |
| $s3 | Text | "killer" | fullword wide |
| $s4 | Text | "powershell" | fullword wide |
| $s5 | Text | "wscript.exe" | fullword wide |
| $s6 | Text | "ExecutionPolicy Bypass -WindowStyle Hidden -NoExit -File \"" | fullword wide |
| $s7 | Text | "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36" | fullword wide |
| $s8 | Text | "Start-Sleep -Seconds 1.5; Remove-Item -Path '" | fullword wide |
Bedingung
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $id* ) and ( 1 of ( $x* ) or 3 of ( $s* ) ) ) or ( all of ( $x* ) and 2 of ( $s* ) ) or 7 of ( $s* ) or 10 of them )In Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Alle Muster aus ( $x* ) müssen treffen.
- Mindestens 1 Muster aus ( $id* ) müssen treffen.
- Mindestens 1 Muster aus ( $x* ) müssen treffen.
- Mindestens 3 Muster aus ( $s* ) müssen treffen.
- Mindestens 2 Muster aus ( $s* ) müssen treffen.
- Mindestens 7 Muster aus ( $s* ) müssen treffen.
- Mindestens 10 Muster aus der Regel müssen treffen.
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.
Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.
Referenzen
Lizenz & Namensnennung
Autor: ditekSHen
Quell-Repository: ditekSHen detection @ e76c93dcde
Lizenz: BSD 2-Clause License (Repository-Lizenz)
Copyright-Hinweis: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: 06546ccf-8914-5b1c-942f-99664b9ecf44
Metadaten
| clamav_sig | MALWARE.Win.Trojan.NWorm |
|---|
Tags:FILE
Verwandte Regeln
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06