YARA · SEKOIA.IO Community
SEKOIA_Koi_Powershell_Loading_Obfuscatednet
Powershell script loading obfuscated .NET Koi module
- 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:
= "Powershell script loading obfuscated .NET Koi module"
= "Sekoia.io"
= "75a7460d-cc28-470e-9841-da8e46ee0101"
= "2024-03-20"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/koi_powershell_loading_obfuscatednet.yar#L1-L18"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "82f30c04474ea77af5169771a2c0e75ba792fd32dc559b8c29172b73ace4ef10"
= 75
= 80
= ""
= "1.0"
= "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)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "# [Net.ServicePointManager]::SecurityProtocol +='tls12'" | |
| $s2 | texto | "$binary[$i] = $binary[$i] -bxor $k[$i % $k.Length]" | |
| $s3 | texto | "\").Split('|')" | |
| $s4 | texto | "$ep.Invoke($null, " |
Condición
$s3 and 3 of themEn 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.
Referencias
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: 75a7460d-cc28-470e-9841-da8e46ee0101
Metadatos
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Reglas relacionadas
- Sospechoso / huntingSEKOIA.IO Community· Sekoia.io· 2024-02-07
- Sospechoso / huntingSEKOIA.IO Community· Sekoia.io· 2024-02-07
- Sospechoso / huntingSEKOIA.IO Community· Sekoia.io· 2023-03-06
- Sospechoso / huntingSEKOIA.IO Community· Sekoia.io· 2022-10-11
- Sospechoso / huntingSEKOIA.IO Community· Sekoia.io· 2022-12-22
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-10-21