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 linkedT1528 — drag to rearrange
Possible Illicit Consent Grant to OAuth Application via Azure AD
Suspicious Entra Device Code Authentication with Office Client and Automated User Agent
Suspicious AWS SSO Token Creation and Role Credential Retrieval (via cloudtrail)
Suspicious Google Workspace OAuth Authorization for Chrome Web Store Scope via Token Audit
Suspicious Federated Identity Credential On-Behalf-Of Token Flow via Sign-In Logs
Suspicious OAuth Application Consent Grant via Azure Audit Logs
Suspicious Salesforce Bulk API Export via aiohttp User Agent
Suspicious OAuth Application Consent Granted High Privilege Mail Scopes (via m365)
Suspicious Token Request Using Microsoft Authentication Broker Client to Obtain Primary Refresh Token (via azure)
Malicious PRT Token Forging via AADInternals (via ps_script)
Pivot detection · T1528 · 9 related

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