YARA · SEKOIA.IO Community
SEKOIA_Apt_Badmagic_Ld_Dll_Loader_Pshscript
Detects BadMagic DLL Loader powershell script
- Auteur
- Sekoia.io
- Date
- 2023-05-15
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Detects BadMagic DLL Loader powershell script
Famille de malware associée : Dllloader.
Elle définit 4 motifs (4 texte, 0 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
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
}
Chaînes (4 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $ | texte | "$ModulePath = \"$folder_path\\$name" | |
| $ | texte | "$ModuleExport =" | |
| $ | texte | "start-job -ScriptBlock $ScriptBlock" | |
| $ | texte | "Invoke-WebRequest -Uri" |
Condition
all of them and filesize < 1KBEn clair (Heuristique)
- Le fichier doit faire moins de 1KB (garde-fou peu coûteux qui écarte les gros fichiers).
- Tous les motifs de la règle 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é.
Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.
Références
Licence et attribution
Auteur : Sekoia.io
Dépôt source : SEKOIA.IO Community @ a438a5901a
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: d4a23afc-693f-4fab-b2c4-15eecba047f7
Métadonnées
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Règles liées
- MalwareSignature Base (Florian Roth / Nextron)· X__Junior· 2026-02-02
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-09-23