YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_HKTL_Redsun_Privilege_Escalation_Apr26
Detects RedSun hacktool used for privilege escalation through Microsoft Defender.
- Autor
- Jonathan Peters (cod3nym)
- Fecha
- 2026-04-16
- Modificada
- 2026-05-15
- Puntuación / Calidad
- 80 / 85
Qué detecta esta regla
Detects RedSun hacktool used for privilege escalation through Microsoft Defender.
Objetivos: PE de Windows.
Define 6 patrones (6 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_Redsun_Privilege_Escalation_Apr26 : FILE
{
meta:
= "Detects RedSun hacktool used for privilege escalation through Microsoft Defender."
= "Jonathan Peters (cod3nym)"
= "64f86635-cf8c-5c65-b821-2d12e8ee9cdb"
= "2026-04-16"
= "2026-05-15"
= "https://github.com/Nightmare-Eclipse/RedSun"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/hktl_redsun_apr26.yar#L1-L25"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "57a70c383feb9af60b64ab6768a1ca1b3f7394b8c5ffdbfafc8e988d63935120"
= "fb756b0ec61e141fecaf8fc795d10818f4016955dda68772310f8249282f2438"
= 80
= 85
= "FILE"
strings:
$x1 = "\\??\\pipe\\REDSUN" wide
$x2 = "The red sun shall prevail.\n" ascii fullword
$x3 = "\\RedSun.pdb" ascii
$s1 = "\\System32\\TieringEngineService.exe" wide
$s2 = "SERIOUSLYMSFT" wide
$s3 = "*H+H$!ELIF-TSET-SURIVITNA-DRADNATS-RACIE$}7)CC7)^P(45XZP\\4[PA@%P!O5X" ascii
condition:
uint16( 0 ) == 0x5a4d and ( 1 of ( $x* ) or 2 of ( $s* ) ) or 3 of them
}
Cadenas (6 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | texto | "\\??\\pipe\\REDSUN" | wide |
| $x2 | texto | "The red sun shall prevail.\n" | ascii fullword |
| $x3 | texto | "\\RedSun.pdb" | ascii |
| $s1 | texto | "\\System32\\TieringEngineService.exe" | wide |
| $s2 | texto | "SERIOUSLYMSFT" | wide |
| $s3 | texto | "*H+H$!ELIF-TSET-SURIVITNA-DRADNATS-RACIE$}7)CC7)^P(45XZP\\4[PA@%P!O5X" | ascii |
Condición
uint16( 0 ) == 0x5a4d and ( 1 of ( $x* ) or 2 of ( $s* ) ) or 3 of themEn palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 1 patrones de ( $x* ).
- Deben coincidir al menos 2 patrones de ( $s* ).
- 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).
- 57a70c383feb9af60b64ab6768a1ca1b3f7394b8c5ffdbfafc8e988d63935120
Licencia y atribución
Autor: Jonathan Peters (cod3nym)
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: 64f86635-cf8c-5c65-b821-2d12e8ee9cdb
Etiquetas:FILE
Reglas relacionadas
- MalwareSignature Base (Florian Roth / Nextron)· Jonathan Peters (cod3nym)· 2025-05-21
- APT / actorSignature Base (Florian Roth / Nextron)· Jonathan Peters (cod3nym)· 2026-08-31
- MalwareSignature Base (Florian Roth / Nextron)· Jonathan Peters (cod3nym)· 2025-05-21
- Sospechoso / huntingSignature Base (Florian Roth / Nextron)· Jonathan Peters (cod3nym)· 2025-02-20