Skip to content

Mac PRT Cookie Theft & Entra ID Persistence

Shang-De JiangDong-Yi YeTung-lin Lee

Demonstrates techniques for stealing Microsoft Primary Refresh Tokens (PRT) and cookies on macOS endpoints to achieve persistent access to Entra ID cloud resources.

Summary

Primary Refresh Tokens in macOS Enterprise Environments

Enterprises deploying Microsoft Entra ID with macOS endpoints rely on Primary Refresh Tokens (PRTs) stored inside system keychains and SSO extensions to provide seamless single sign-on across corporate SaaS apps.

Extracting PRT Cookies and SSO Secrets on macOS

Shang-De Jiang, Dong-Yi Ye, and Tung-lin Lee demonstrate how attackers with local user access can bypass macOS Keychain protections and extract active PRT session cookies from enterprise browser caches and Microsoft SSO plug-ins.

Persistent Cloud Access and Bypassing MFA

Replaying extracted PRT cookies allows adversaries to impersonate users across Azure, Office 365, and corporate cloud resources without triggering multi-factor authentication (MFA) or device compliance checks.

Defending Enterprise macOS Identity Endpoints

Hardening macOS identity infrastructure requires enforcing strict Keychain access controls, utilizing Secure Enclave hardware PRT binding, and deploying continuous conditional access evaluation in Entra ID.

Related talks