YARA · SEKOIA.IO Community
SEKOIA_Apt_Badmagic_Ld_Dll_Loader_Pshscript
Detects BadMagic DLL Loader powershell script
- Autor
- Sekoia.io
- Datum
- 2023-05-15
- Geändert
- 2024-12-19
- Score / Qualität
- 75 / 80
Was diese Regel erkennt
Detects BadMagic DLL Loader powershell script
Zugehörige Malware-Familie: Dllloader.
Sie definiert 4 Muster (4 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
apt-badmagic-ld-dll-loader-pshscript.yarDetection Rule License 1.1
rule SEKOIA_Apt_Badmagic_Ld_Dll_Loader_Pshscript : FILE
{
meta:
= "Detects BadMagic DLL Loader powershell script"
= "Sekoia.io"
= "d4a23afc-693f-4fab-b2c4-15eecba047f7"
= "2023-05-15"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_badmagic_ld_dll_loader_pshscript.yar#L1-L18"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "8482521fe1f90c008948e551df35448b870145cf8b58f3c5019cafb66bb0ae36"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "$ModulePath = \"$folder_path\\$name"
$ = "$ModuleExport ="
$ = "start-job -ScriptBlock $ScriptBlock"
$ = "Invoke-WebRequest -Uri"
condition:
all of them and filesize < 1KB
}
Strings (4 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $ | Text | "$ModulePath = \"$folder_path\\$name" | |
| $ | Text | "$ModuleExport =" | |
| $ | Text | "start-job -ScriptBlock $ScriptBlock" | |
| $ | Text | "Invoke-WebRequest -Uri" |
Bedingung
all of them and filesize < 1KBIn Worten (Heuristik)
- Die Datei muss kleiner als 1KB sein (eine günstige Grenze, die große Dateien ausschließt).
- Alle 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: Sekoia.io
Quell-Repository: SEKOIA.IO Community @ a438a5901a
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: d4a23afc-693f-4fab-b2c4-15eecba047f7
Metadaten
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Verwandte Regeln
- MalwareSignature Base (Florian Roth / Nextron)· X__Junior· 2026-02-02
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-23