Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Loader_Win_Red0044_Powershell_May24

Finds PowerShell scripts used in a malvertising campaign to deliver NetSupport RAT

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X
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:
		description = "Finds PowerShell scripts used in a malvertising campaign to deliver NetSupport RAT"
		author = "Sekoia.io"
		id = "ba3454b4-31cf-458d-8d78-c5cc5fa348ff"
		date = "2024-05-03"
		modified = "2024-12-19"
		reference = "https://twitter.com/crep1x/status/1786150734121120075"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_red0044_powershell_may24.yar#L1-L26"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "73939f65b93b320b9e220ee284ea524864a6b05c7608213009ac5f00b3faeedc"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentificadorTipoValorModificadores
$str01texto"Start-Job -ScriptBlock"ascii
$str02texto"Get-WmiObject"ascii
$str03texto"-Class Win32_OperatingSystem"ascii
$str04texto"-Class AntiVirusProduct"ascii
$str05texto"$_.Exception.Message"ascii
$str06texto".DownloadString"ascii
$str07texto"New-Object Net.WebClient"ascii
$str08texto"myUserAgentHere"ascii
$str09texto"GetFolderPath('Desktop'))\\document.pdf"ascii
$str10texto"Receive-Job -Job"ascii
$str11texto"Start-Process"ascii

Condición

8 of them and filesize < 20KB

En 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.

Abrir en el editor

Referencias

Licencia y atribución

Autor: Sekoia.io

Repositorio de origen: SEKOIA.IO Community @ a438a5901a

Licencia: Detection Rule License 1.1 (licencia del repositorio)

Regla original

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

version1.0
classificationTLP:CLEAR

Etiquetas:FILE