Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Koi_Powershell_Loading_Obfuscatednet

Powershell script loading obfuscated .NET Koi module

Sospechoso / huntingSEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X
Autor
Sekoia.io
Fecha
2024-03-20
Modificada
2024-12-19
Puntuación / Calidad
75 / 80

Qué detecta esta regla

Powershell script loading obfuscated .NET Koi module

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

koi-powershell-loading-obfuscatednet.yarDetection Rule License 1.1
rule SEKOIA_Koi_Powershell_Loading_Obfuscatednet
{
	meta:
		description = "Powershell script loading obfuscated .NET Koi module"
		author = "Sekoia.io"
		id = "75a7460d-cc28-470e-9841-da8e46ee0101"
		date = "2024-03-20"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/koi_powershell_loading_obfuscatednet.yar#L1-L18"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "82f30c04474ea77af5169771a2c0e75ba792fd32dc559b8c29172b73ace4ef10"
		score = 75
		quality = 80
		tags = ""
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "# [Net.ServicePointManager]::SecurityProtocol +='tls12'"
		$s2 = "$binary[$i] = $binary[$i] -bxor $k[$i % $k.Length]"
		$s3 = "\").Split('|')"
		$s4 = "$ep.Invoke($null, "

	condition:
		$s3 and 3 of them
}

Cadenas (4 patrones)

IdentificadorTipoValorModificadores
$s1texto"# [Net.ServicePointManager]::SecurityProtocol +='tls12'"
$s2texto"$binary[$i] = $binary[$i] -bxor $k[$i % $k.Length]"
$s3texto"\").Split('|')"
$s4texto"$ep.Invoke($null, "

Condición

$s3 and 3 of them

En palabras sencillas (Heurística)

  • Deben coincidir al menos 3 patrones de la regla.
  • El patrón $s3 debe estar presente.

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: 75a7460d-cc28-470e-9841-da8e46ee0101

Metadatos

version1.0
classificationTLP:CLEAR