Malicious PRT Token Forging via AADInternals (via ps_script)

PremiumReviewedSigma · High · v1
Product
windows
Category
ps_script
Author
HuntRule
Published
2026-05-24
Updated
2026-08-28

ATT&CK techniques

Defense Evasion → Lateral Movement
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Discovery

  8. Collection

  9. C2

  10. Exfiltration

  11. Impact

What it detects

This rule detects AADInternals cmdlets that mint or export Primary Refresh Token material and device certificates for cloud identity abuse. The cloud lateral-movement research shows attackers use these to forge tokens and access cloud resources as the victim. The cmdlet names are specific to this toolkit and indicate token theft or forgery.

Related detections9 linkedT1550.001 — drag to rearrange
Suspicious Entra Device Code Authentication with Office Client and Automated User Agent
Suspicious AWS SSO Token Creation and Role Credential Retrieval (via cloudtrail)
Malicious OAuth Application Granted Full Mailbox and EWS Permissions (via m365)
Suspicious Kubernetes Service Account Token Generation via kubectl
Suspicious browsercore Execution from Anomalous Parent for PRT Cookie (via process_creation)
Suspicious GAM OAuth Token Enumeration via Process Creation
Suspicious AWS SSO Account Role Enumeration via ListAccountRoles (via cloudtrail)
Suspicious AWS Federated Console Login From Programmatic Credentials
Suspicious Device Registration Following OAuth Token Theft
Malicious PRT Token Forging via AADInternals (via ps_script)
Pivot detection · T1550.001 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.