Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Pwshloader_Runpe02

Detects PowerShell PE loader / executer. Observed Gorgon TTPs

MalwarePwshloaderditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
Autor
ditekSHen
Fecha
2020-11-06
Modificada
2024-11-01
Puntuación / Calidad
75 / 75

Qué detecta esta regla

Detects PowerShell PE loader / executer. Observed Gorgon TTPs

Familia de malware asociada: Pwshloader.

Define 5 patrones (5 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

malware-win-pwshloader-runpe02.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Pwshloader_Runpe02
{
	meta:
		description = "Detects PowerShell PE loader / executer. Observed Gorgon TTPs"
		author = "ditekSHen"
		id = "08261054-bebc-58fe-949a-27f6e817003a"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L4922-L4934"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "d7677689938d3e3eb6b59b99b7e347c60214f6edf8e5f83bf85da5a5f1ad33bb"
		score = 75
		quality = 75
		tags = ""

	strings:
		$s1 = "'.Replace('" ascii nocase
		$s2 = "'aspnet_compiler.exe'" ascii
		$s3 = "[Byte[]]$" ascii
		$pe1 = "(77,90," ascii
		$pe2 = "='4D5A" ascii

	condition:
		all of ( $s* ) and ( #pe1 > 1 or #pe2 > 1 ) and #s1 > 4
}

Cadenas (5 patrones)

IdentificadorTipoValorModificadores
$s1texto"'.Replace('"ascii nocase
$s2texto"'aspnet_compiler.exe'"ascii
$s3texto"[Byte[]]$"ascii
$pe1texto"(77,90,"ascii
$pe2texto"='4D5A"ascii

Condición

all of ( $s* ) and ( #pe1 > 1 or #pe2 > 1 ) and #s1 > 4

En palabras sencillas (Heurística)

  • Deben coincidir todos los patrones de ( $s* ).
  • El patrón $pe1 debe aparecer > 1 veces.
  • El patrón $pe2 debe aparecer > 1 veces.
  • El patrón $s1 debe aparecer > 4 veces.

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: ditekSHen

Repositorio de origen: ditekSHen detection @ e76c93dcde

Licencia: BSD 2-Clause License (licencia del repositorio)

Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

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: 08261054-bebc-58fe-949a-27f6e817003a