YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_HKTL_Redsun_Privilege_Escalation_Apr26
Detects RedSun hacktool used for privilege escalation through Microsoft Defender.
- Auteur
- Jonathan Peters (cod3nym)
- Date
- 2026-04-16
- Modifiée
- 2026-05-15
- Score / Qualité
- 80 / 85
Ce que détecte cette règle
Detects RedSun hacktool used for privilege escalation through Microsoft Defender.
Cibles : PE Windows.
Elle définit 6 motifs (6 texte, 0 hex, 0 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
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
}
Chaînes (6 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $x1 | texte | "\\??\\pipe\\REDSUN" | wide |
| $x2 | texte | "The red sun shall prevail.\n" | ascii fullword |
| $x3 | texte | "\\RedSun.pdb" | ascii |
| $s1 | texte | "\\System32\\TieringEngineService.exe" | wide |
| $s2 | texte | "SERIOUSLYMSFT" | wide |
| $s3 | texte | "*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 themEn clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 1 motifs de ( $x* ) doivent être trouvés.
- Au moins 2 motifs de ( $s* ) doivent être trouvés.
- Au moins 3 motifs de la règle doivent être trouvés.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Hashes d’échantillons
Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).
- 57a70c383feb9af60b64ab6768a1ca1b3f7394b8c5ffdbfafc8e988d63935120
Licence et attribution
Auteur : Jonathan Peters (cod3nym)
Dépôt source : Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence : Detection Rule License 1.1 (licence du dépôt)
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: 64f86635-cf8c-5c65-b821-2d12e8ee9cdb
Tags:FILE
Règles liées
- MalwareSignature Base (Florian Roth / Nextron)· Jonathan Peters (cod3nym)· 2025-05-21
- APT / acteurSignature Base (Florian Roth / Nextron)· Jonathan Peters (cod3nym)· 2026-08-31
- MalwareSignature Base (Florian Roth / Nextron)· Jonathan Peters (cod3nym)· 2025-05-21
- Suspect / chasseSignature Base (Florian Roth / Nextron)· Jonathan Peters (cod3nym)· 2025-02-20