Skip to content
NewA calmer, faster ZeroHour
Phishing & fraudhighExploited in the wild

GhostCode Abuses Microsoft Entra Device Enrollment to Maintain Access After Token Revocation

GBHackersby Mayura Kathir ()4 min read6 · 2 reads
AI summary · glm-5.3-flashSummaries by Vani AI

eSentire exposes GhostCode, a device-code phishing kit that abuses Microsoft Entra device enrollment to persist even after stolen tokens are revoked.

eSentire's Threat Response Unit observed GhostCode campaigns in late August 2026, using BEC-style social engineering that impersonated procurement staff, including BJ's Wholesale Club, via Salesforce contact forms. Victims received password-protected HTML lures disguised as a FlipBook document portal, with junk-data padding, HTML comment injection, and AES-256-GCM encrypted redirects gated by anti-bot checks. The kit exploits the OAuth 2.0 device authorization grant, prompting victims to approve real Microsoft device-code sign-ins with MFA. Within 78 seconds of approval, attackers registered three Entra devices and obtained a Primary Refresh Token, so rogue device registrations persist even after session token revocation.

Key facts
  • Device-code phishing turns one MFA-approved login into attacker-controlled Entra devices
  • Operators impersonated BJ's Wholesale Club procurement staff via Salesforce contact forms
  • Over 30 lookalike mail-enabled domains registered for BEC staging infrastructure
  • Password-gated HTML hides phishing URL behind PBKDF2-derived AES-256-GCM decryption
  • Rogue Intune enrollments with Primary Refresh Tokens persisted after token revocation
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

Indicators of compromise

auto-extracted · verify before use · export allAll
TypeIndicatorContext
domainbjssourcing.comsuggests scale. eSentire linked the observed sender domain, bjssourcing[.]com, to more than 30 recently registered lookalike domains im

From the original article

4 min read at gbhackers.com

A newly identified device-code phishing kit dubbed GhostCode exploits Microsoft Entra device enrollment to maintain access after stolen tokens are revoked. GhostCode begins with business-email social engineering rather than a conventional credential-harvesting page.

GBHackers

By Mayura Kathir · gbhackers.com

Read the full article at GBHackers

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.