YARA · SEKOIA.IO Community
SEKOIA_Loader_Win_Red0044_Powershell_May24
Finds PowerShell scripts used in a malvertising campaign to deliver NetSupport RAT
- Author
- Sekoia.io
- Date
- 2024-05-03
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Finds PowerShell scripts used in a malvertising campaign to deliver NetSupport RAT
It defines 11 patterns (11 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
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
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str01 | text | "Start-Job -ScriptBlock" | ascii |
| $str02 | text | "Get-WmiObject" | ascii |
| $str03 | text | "-Class Win32_OperatingSystem" | ascii |
| $str04 | text | "-Class AntiVirusProduct" | ascii |
| $str05 | text | "$_.Exception.Message" | ascii |
| $str06 | text | ".DownloadString" | ascii |
| $str07 | text | "New-Object Net.WebClient" | ascii |
| $str08 | text | "myUserAgentHere" | ascii |
| $str09 | text | "GetFolderPath('Desktop'))\\document.pdf" | ascii |
| $str10 | text | "Receive-Job -Job" | ascii |
| $str11 | text | "Start-Process" | ascii |
Condition
8 of them and filesize < 20KBIn plain words (Heuristic)
- The file must be smaller than 20KB (a cheap guard that skips large files).
- At least 8 patterns in the rule must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: ba3454b4-31cf-458d-8d78-c5cc5fa348ff
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- 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