Aller au contenu

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_HKTL_Redsun_Privilege_Escalation_Apr26

Detects RedSun hacktool used for privilege escalation through Microsoft Defender.

Outil offensifSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compile avec YARA-X
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

hktl-redsun-privilege-escalation-apr26.yarDetection Rule License 1.1
rule SIGNATURE_BASE_HKTL_Redsun_Privilege_Escalation_Apr26 : FILE
{
	meta:
		description = "Detects RedSun hacktool used for privilege escalation through Microsoft Defender."
		author = "Jonathan Peters (cod3nym)"
		id = "64f86635-cf8c-5c65-b821-2d12e8ee9cdb"
		date = "2026-04-16"
		modified = "2026-05-15"
		reference = "https://github.com/Nightmare-Eclipse/RedSun"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/hktl_redsun_apr26.yar#L1-L25"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "57a70c383feb9af60b64ab6768a1ca1b3f7394b8c5ffdbfafc8e988d63935120"
		logic_hash = "fb756b0ec61e141fecaf8fc795d10818f4016955dda68772310f8249282f2438"
		score = 80
		quality = 85
		tags = "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)

IdentifiantTypeValeurModificateurs
$x1texte"\\??\\pipe\\REDSUN"wide
$x2texte"The red sun shall prevail.\n"ascii fullword
$x3texte"\\RedSun.pdb"ascii
$s1texte"\\System32\\TieringEngineService.exe"wide
$s2texte"SERIOUSLYMSFT"wide
$s3texte"*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

En 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é.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

Références

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)

Règle d’origine

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