YARA · SEKOIA.IO Community
SEKOIA_Loader_Win_Red0044_Powershell_May24
Finds PowerShell scripts used in a malvertising campaign to deliver NetSupport RAT
- Autor
- Sekoia.io
- Fecha
- 2024-05-03
- Modificada
- 2024-12-19
- Puntuación / Calidad
- 75 / 80
Qué detecta esta regla
Finds PowerShell scripts used in a malvertising campaign to deliver NetSupport RAT
Define 11 patrones (11 de texto, 0 hex, 0 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
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
}
Cadenas (11 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $str01 | texto | "Start-Job -ScriptBlock" | ascii |
| $str02 | texto | "Get-WmiObject" | ascii |
| $str03 | texto | "-Class Win32_OperatingSystem" | ascii |
| $str04 | texto | "-Class AntiVirusProduct" | ascii |
| $str05 | texto | "$_.Exception.Message" | ascii |
| $str06 | texto | ".DownloadString" | ascii |
| $str07 | texto | "New-Object Net.WebClient" | ascii |
| $str08 | texto | "myUserAgentHere" | ascii |
| $str09 | texto | "GetFolderPath('Desktop'))\\document.pdf" | ascii |
| $str10 | texto | "Receive-Job -Job" | ascii |
| $str11 | texto | "Start-Process" | ascii |
Condición
8 of them and filesize < 20KBEn palabras sencillas (Heurística)
- El archivo debe ocupar menos de 20KB (un límite barato que descarta archivos grandes).
- Deben coincidir al menos 8 patrones de la regla.
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.
Licencia y atribución
Autor: Sekoia.io
Repositorio de origen: SEKOIA.IO Community @ a438a5901a
Licencia: Detection Rule License 1.1 (licencia del repositorio)
Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.
Id de la regla: ba3454b4-31cf-458d-8d78-c5cc5fa348ff
Metadatos
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Etiquetas:FILE
Reglas relacionadas
- 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