YARA · SEKOIA.IO Community
SEKOIA_Loader_Win_Red0044_Powershell_May24
Finds PowerShell scripts used in a malvertising campaign to deliver NetSupport RAT
- Auteur
- Sekoia.io
- Date
- 2024-05-03
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Finds PowerShell scripts used in a malvertising campaign to deliver NetSupport RAT
Elle définit 11 motifs (11 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
loader-win-red0044-powershell-may24.yarDetection Rule License 1.1
rule SEKOIA_Loader_Win_Red0044_Powershell_May24 : FILE
{
meta:
= "Finds PowerShell scripts used in a malvertising campaign to deliver NetSupport RAT"
= "Sekoia.io"
= "ba3454b4-31cf-458d-8d78-c5cc5fa348ff"
= "2024-05-03"
= "2024-12-19"
= "https://twitter.com/crep1x/status/1786150734121120075"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_red0044_powershell_may24.yar#L1-L26"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "73939f65b93b320b9e220ee284ea524864a6b05c7608213009ac5f00b3faeedc"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$str01 = "Start-Job -ScriptBlock" ascii
$str02 = "Get-WmiObject" ascii
$str03 = "-Class Win32_OperatingSystem" ascii
$str04 = "-Class AntiVirusProduct" ascii
$str05 = "$_.Exception.Message" ascii
$str06 = ".DownloadString" ascii
$str07 = "New-Object Net.WebClient" ascii
$str08 = "myUserAgentHere" ascii
$str09 = "GetFolderPath('Desktop'))\\document.pdf" ascii
$str10 = "Receive-Job -Job" ascii
$str11 = "Start-Process" ascii
condition:
8 of them and filesize < 20KB
}
Chaînes (11 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $str01 | texte | "Start-Job -ScriptBlock" | ascii |
| $str02 | texte | "Get-WmiObject" | ascii |
| $str03 | texte | "-Class Win32_OperatingSystem" | ascii |
| $str04 | texte | "-Class AntiVirusProduct" | ascii |
| $str05 | texte | "$_.Exception.Message" | ascii |
| $str06 | texte | ".DownloadString" | ascii |
| $str07 | texte | "New-Object Net.WebClient" | ascii |
| $str08 | texte | "myUserAgentHere" | ascii |
| $str09 | texte | "GetFolderPath('Desktop'))\\document.pdf" | ascii |
| $str10 | texte | "Receive-Job -Job" | ascii |
| $str11 | texte | "Start-Process" | ascii |
Condition
8 of them and filesize < 20KBEn clair (Heuristique)
- Le fichier doit faire moins de 20KB (garde-fou peu coûteux qui écarte les gros fichiers).
- Au moins 8 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.
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: ba3454b4-31cf-458d-8d78-c5cc5fa348ff
Métadonnées
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Règles liées
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20