Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Apt_Kimsuky_Powershell

Powershell scripts used by Kimsuky. If size < 3KB ok. If between 3 and 15, a check is needed

APT / actorKimsukySEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X
Autor
Sekoia.io
Fecha
2024-09-23
Modificada
2024-12-19
Puntuación / Calidad
75 / 80

Qué detecta esta regla

Powershell scripts used by Kimsuky. If size < 3KB ok. If between 3 and 15, a check is needed

Familia de malware asociada: Kimsuky.

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

apt-kimsuky-powershell.yarDetection Rule License 1.1
rule SEKOIA_Apt_Kimsuky_Powershell : FILE
{
	meta:
		description = "Powershell scripts used by Kimsuky. If size < 3KB ok. If between 3 and 15, a check is needed"
		author = "Sekoia.io"
		id = "b7f812e0-d08b-40fe-908a-dc5765d6bc66"
		date = "2024-09-23"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_kimsuky_powershell.yar#L1-L21"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "6babb53d881448dc58dd7c32fcd4208a"
		hash = "29ec7a4495ea512d44d33c9847893200"
		hash = "fde68771cebd7ecd81721b0dff5b7869"
		hash = "0c3fd7f45688d5ddb9f0107877ce2fbd"
		hash = "1a1723be720c1d9cd57cf4a6a112df79"
		logic_hash = "7436d8cba8a8caaf95786c38c4ceee4426dc7e36ae3eeed5d3162310cd76091d"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = ".ToCharArray();[array]::Reverse(" ascii
		$ = ");$res = -join ($bytes -as [char[]]);Invoke-Expression $res;" ascii

	condition:
		all of them and filesize < 15KB
}

Cadenas (2 patrones)

IdentificadorTipoValorModificadores
$texto".ToCharArray();[array]::Reverse("ascii
$texto");$res = -join ($bytes -as [char[]]);Invoke-Expression $res;"ascii

Condición

all of them and filesize < 15KB

En palabras sencillas (Heurística)

  • El archivo debe ocupar menos de 15KB (un límite barato que descarta archivos grandes).
  • Deben coincidir todos los 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

Hashes de muestras

Hashes de las muestras que el autor lista en los metadatos de la regla (búscalos en tu plataforma de threat intelligence).

  • 6babb53d881448dc58dd7c32fcd4208a
  • 29ec7a4495ea512d44d33c9847893200
  • fde68771cebd7ecd81721b0dff5b7869
  • 0c3fd7f45688d5ddb9f0107877ce2fbd
  • 1a1723be720c1d9cd57cf4a6a112df79

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: b7f812e0-d08b-40fe-908a-dc5765d6bc66

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE

Más reglas de Kimsuky