Aller au contenu

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_HKTL_EXPL_WIN_PS1_Badsuccessor_May25

Detects PowerShell tool called Get-BadSuccessorOUPermissions.ps1 that helps exploit a vulnerability in Active Directory. Lists every principal that can perform a BadSuccessor attack and the OUs where it holds the required permissions.

Outil offensifSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compile avec YARA-X
Auteur
Florian Roth
Date
2025-05-22
Modifiée
2026-05-15
Score / Qualité
75 / 85

Ce que détecte cette règle

Detects PowerShell tool called Get-BadSuccessorOUPermissions.ps1 that helps exploit a vulnerability in Active Directory. Lists every principal that can perform a BadSuccessor attack and the OUs where it holds the required permissions.

Elle définit 3 motifs (3 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-expl-win-ps1-badsuccessor-may25.yarDetection Rule License 1.1
rule SIGNATURE_BASE_HKTL_EXPL_WIN_PS1_Badsuccessor_May25 : FILE
{
	meta:
		description = "Detects PowerShell tool called Get-BadSuccessorOUPermissions.ps1 that helps exploit a vulnerability in Active Directory. Lists every principal that can perform a BadSuccessor attack and the OUs where it holds the required permissions."
		author = "Florian Roth"
		id = "4f6ff5ff-831a-520c-8bc5-6fec5e65f9de"
		date = "2025-05-22"
		modified = "2026-05-15"
		reference = "https://www.akamai.com/blog/security-research/abusing-dmsa-for-privilege-escalation-in-active-directory"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/hktl_badsuccessor_helper_may25.yar#L2-L16"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "a023bced4aec2b2c601088367766f42a3fcf36053c7eb92985cc7468c7cd6cb0"
		score = 75
		quality = 85
		tags = "FILE"

	strings:
		$x1 = "function Get-BadSuccessorOUPermissions" ascii wide
		$x2 = "\"0feb936f-47b3-49f2-9386-1dedc2c23765\"=\"msDS-DelegatedManagedServiceAccount\"" ascii wide
		$x3 = "CreateChild|GenericAll|WriteDACL|WriteOwner" ascii wide

	condition:
		filesize < 20MB and 1 of them
}

Chaînes (3 motifs)

IdentifiantTypeValeurModificateurs
$x1texte"function Get-BadSuccessorOUPermissions"ascii wide
$x2texte"\"0feb936f-47b3-49f2-9386-1dedc2c23765\"=\"msDS-DelegatedManagedServiceAccount\""ascii wide
$x3texte"CreateChild|GenericAll|WriteDACL|WriteOwner"ascii wide

Condition

filesize < 20MB and 1 of them

En clair (Heuristique)

  • Le fichier doit faire moins de 20MB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Au moins 1 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

Licence et attribution

Auteur : Florian Roth

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: 4f6ff5ff-831a-520c-8bc5-6fec5e65f9de

Tags:FILE