Urgent.News

What's breaking now, across thousands of outlets.

Tech

GhostCode attackers abuse device codes to take over Microsoft 365 accounts

Microsoft 365 users are being tricked into handing over access to their accounts by a new phishing kit, GhostCode, that exploits a weakness in a legitimate device authorization flow. Researchers in eSentire’s threat response unit identified the campaign in late August 2026. The kit abuses Microsoft’s OAuth 2.0 device authorization grant flow, a legitimate mechanism designed to enable…

GhostCode attackers abuse device codes to take over Microsoft 365 accounts

Microsoft 365 users are facing a new phishing threat called GhostCode that exploits a legitimate device authorization flow. Researchers at eSentire discovered the campaign in late August 2026. GhostCode takes advantage of Microsoft’s OAuth 2.0 device authorization grant flow, which is designed for IoT devices and other non-browser-based logins.

The attackers pose as legitimate devices, generating a device code for the victim to enter on a separate browser. Once authenticated, the attacker gains access to the victim’s Microsoft 365 account and its associated tokens.

The attackers employ social engineering tactics by pretending to be procurement officers and sending an NDA-themed HTML file. Opening this file directs the victim to the GhostCode phishing page. Once authenticated, the attackers can register devices, obtain additional credentials, and establish persistence in the victim’s Microsoft environment.

Over 78 seconds, the attackers performed nine successful API calls, registering three devices and obtaining a Primary Refresh Token (PRT), which grants them SSO-equivalent access to the victim’s entire Microsoft 365 environment for the token’s lifetime.

To protect against GhostCode and similar attacks, eSentire recommends disabling device-code authentication for users who don’t require it and restricting the flow through Conditional Access. Monitoring the Device Registration Service for multiple device registrations from a single non-interactive session and looking for Python-based requests after device-code authentication can help detect an attack in progress.

Auditing Entra ID for devices with GhostCode’s naming pattern and correlating successful device-code authentication with suspicious activity can aid in detection. The company also provided a list of indicators of compromise for easier detection.

Written by urgent.news from Computerworld's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at computerworld.com →

More in Tech

디지털 교차로: 블록체인 시대의 사이버보안, 데이터 주권, AI 윤리 탐색

디지털의 지평은 인공지능(AI)의 급속한 발전과 블록체인 기술의 변함없는 잠재력에 힘입어 전례 없는 속도로 확장되고 있다. 이러한 진화는 혁신적인 기회를 예고하면서도, 동시에 사이버보안, 데이터 소유권, 그리고 기본적인 프라이버시 권리에 대한 중요한 논쟁을 격화시킨다.

  • Haruko cyber attack exposes supply chain vulnerabilities in crypto institutions
  • AI data scraping raises consent and compensation concerns for vast datasets
  • Algorithmic surveillance by DHS sparks constitutional debates on civil liberties

Who helped Samsung become chip giant

Through the 1980s, Japan pushed the United States — the birthplace and longtime leader of the semiconductor industry — out of the world memory chip market, and the damage ran deep enough that Intel…

More from Friday 18 September →