Does revoking sessions in Entra stop an Entra joined device from having access to the user account?
retained text
Device code phishing attacks we've seen recently keep themselves active by joining a rogue device to Entra. I'm not an authentication expert, but it's my understanding that the flow is basically: Device code authenticates, provides OAuth token to attacker, attacker then uses the OAuth token to register a device, the registered device provides the attacker with a Primary Refresh Token. The PRT created here is a long-lived access token that gives the trusted device full access to the user account, giving the attacker a harder to detect point of presence. I'm under the impression that Revoke Sessions button in Entra will revoke all login tokens *except* device PRTs. I've had to deal with the fallout of this compromise but I didn't feel like it was a good idea to "test" this, and once I noticed the device, I disabled & deleted it manually. Everything I'm kind of seeing from Microsoft suggests I'm right and that's kind of the point of this attack, giving themselves a PRT keeps the attack active past your typical inexperienced IT team, or a solo user simply resetting their password
document fetched 2026-09-29 00:38 · canonical https://reddit.com/r/sysadmin/comments/1wsbsbo/does_revoking_sessions_in_entra_stop_an_entra