Primary refresh token
noun · also PRT · Microsoft Learn: What is a Primary Refresh Token?
A long-lived token Entra ID issues to a registered device's token broker to provide single sign-on, valid for 90 days and renewed while the device is in use.
A primary refresh token (PRT) is issued to Microsoft's token brokers on Entra joined, hybrid joined and registered devices. It lets the user sign in once on the device and then get tokens for Microsoft 365 and other apps silently. It is valid for 90 days and renewed continuously while the device is used. On devices with a TPM, the keys that protect it are bound to the hardware, which makes copying it to another machine much harder.
Example
An attacker registers their own device in Entra ID using a token phished from a user, and obtains a PRT for it. From then on, their device gets single sign-on to the user's apps, and the access survives a password change until the device and sessions are removed.
Why it matters for a SOC analyst
PRT abuse gives long-lasting access. Review devices registered to a compromised user, remove any you do not recognize, and watch for the Entra ID Protection detection Possible attempt to access Primary Refresh Token, which raises users to high risk on devices running Defender for Endpoint.
Related terms
- Token theft
An attack in which a stolen access token, refresh token or session cookie is replayed to act as the user, even after the user completed MFA.
- Conditional Access
Microsoft Entra ID's policy engine that decides, at each sign-in, whether to allow access, require MFA or another control, or block.
- Multi-factor authentication
Signing in with two or more different kinds of proof, such as a password plus a phone or security key, so a stolen password alone is not enough.