A phishing campaign tracked as Skyw4lker is taking over cloud accounts without the attacker ever seeing a password, according to analysis from ANY.RUN reported by The Hacker News. The campaign primarily targets U.S. organisations, but its mechanics are defined by open standards rather than geography — which is exactly what makes it worth understanding for identity teams running Microsoft 365/Entra or Google Workspace anywhere.

How the flow works

The technique is based on the OAuth 2.0 device authorisation grant, standardised in RFC 8628 and commonly used for smart TVs, set-top boxes, and other input-constrained devices. The protocol has two halves: the user visits a short verification URL and enters a code, while the client polls the identity provider for the resulting tokens.

The attacker collapses those halves across two sessions. They initiate a device-code flow against the victim's tenant and obtain a pending code. That code is then delivered to the victim — through chat, SMS, or a convincing lure — framed as a routine sign-in or approval step. When the victim enters the code and consents, the authorisation is bound to the attacker's session, and the tokens are issued to the attacker's client. From the identity provider's perspective, nothing unusual happened: a user authorised an application.

A consent-based variant reaches the same outcome with fewer steps — the victim simply approves an application registration, and delegated access follows. Either way, the structural problem is the same: there is no credential-exfiltration event to correlate, because no credential was exfiltrated. Access later arrives through the provider's own API surface, where it looks like ordinary application usage. User-awareness training, which is calibrated to spot password harvesting, has very little to work with here.

Where detection has to sit

Because the login itself is legitimate, defence moves upstream — to authorisation telemetry and consent governance. Useful signals to watch include:

  • Unexpected device-code prompts arriving via chat or SMS, especially when the recipient did not initiate a sign-in.
  • Consent grants to unverified or newly registered applications requesting broad scopes (mail read, files, directory access).
  • Sign-in and refresh-token activity immediately following a consent event, particularly from atypical locations or clients.
  • Repeated device-code grant activity concentrated around a small set of users or applications.

Administrative controls carry more weight than user vigilance:

  • Tighten consent settings; require admin consent for high-privilege scopes.
  • Restrict or disable the device-code flow where the organisation has no legitimate use for it. The device_code grant underpins legitimate CLI and IoT sign-ins, so this is a trade-off to weigh rather than a blanket directive.
  • Alert on issuance of urn:ietf:params:oauth:grant-type:device_code grants.
  • Enforce phishing-resistant MFA for privileged accounts, since the whole technique depends on the victim completing a genuine authentication.

What this does — and doesn't — tell us

The source analysis describes a campaign focused on American organisations; it does not indicate Hong Kong or APAC targeting. Local relevance here is a matter of perspective, not reported fact. What travels is the protocol: RFC 8628 and consent-based OAuth are implemented the same way in Entra ID and Google Workspace regardless of the tenant's jurisdiction, so any environment that leaves device-code flow and third-party consent wide open carries equivalent risk.

The practical takeaway for HK teams is a shift in where defence effort is spent. The weak point is no longer the password field or the user's judgement — it is the authorisation layer: which applications can be consented to, by whom, under what scopes, and with what visibility when that happens. Hardening that layer is an administrative exercise, and it does not require waiting for a campaign to land locally first.


據 ANY.RUN 的分析(由 The Hacker News 報道),一個代號為 Skyw4lker 的釣魚攻擊行動,在攻擊者從未見過密碼的情況下便接管了雲端帳戶。該行動主要針對美國機構,但其運作機制由開放標準而非地域所界定 — 正因如此,任何地方運行 Microsoft 365/Entra 或 Google Workspace 的身份團隊都值得了解其原理。

運作流程

此技術基於 OAuth 2.0 裝置授權授予(device authorisation grant),該機制已於 RFC 8628 中標準化,常用於智能電視、機頂盒及其他輸入受限的裝置。協議分為兩部分:用戶造訪一個簡短的驗證 URL 並輸入代碼,與此同時,client 輪詢身份提供者以取得相應的 tokens。

攻擊者將這兩部分分置於兩個 session 中完成。他們先向受害者的 tenant 發起 device-code flow,取得一個待處理的代碼。該代碼隨後透過聊天、短訊或具說服力的誘餌送交受害者,並包裝成例行的登入或批准步驟。當受害者輸入代碼並表示同意時,該授權便與攻擊者的 session 綁定,而 tokens 則發放給攻擊者的 client。從身份提供者的角度來看,一切如常:只是一名用戶授權了一個應用程式。

另一個基於授權同意(consent)的變種以更少步驟達到同樣結果 — 受害者只需批准一個應用程式註冊,委託存取權限便隨之產生。無論採用哪種方式,結構性問題如出一轍:並無憑證外洩事件可供關聯,因為根本沒有憑證被外洩。後續存取透過提供者自身的 API surface 送達,在該處看起來與一般應用程式使用無異。現有的用戶安全意識培訓以識別密碼蒐集為設計目標,在此幾乎無用武之地。

偵測應設於何處

由於登入本身屬合法行為,防線必須前移 — 轉向授權 telemetry 與 consent 治理。值得監控的信號包括:

  • 透過聊天或短訊送達、非由收件人主動發起登入的異常 device-code 提示。
  • 授予未經驗證或新註冊應用程式的授權同意,尤其當該等應用請求廣泛 scopes(讀取郵件、檔案、目錄存取)時。
  • 授權事件之後隨即出現的登入及 refresh-token 活動,特別是來自非典型位置或 client。
  • 集中於少數用戶或應用程式的重複 device-code 授予活動。

行政管控的效力遠勝於用戶警覺性:

  • 收緊 consent 設定;對高權限 scopes 要求 admin consent。
  • 在機構對 device-code flow 沒有正當用途的情況下加以限制或停用。device_code grant 是合法 CLI 及 IoT 登入的基礎,因此這是一項需要權衡的取捨,而非一概而論的指令。
  • 對發出 urn:ietf:params:oauth:grant-type:device_code grants 的情況發出警報。
  • 對特權帳戶強制執行具釣魚抵禦能力的 MFA,因為整套技術的關鍵在於受害者完成了一次真實的身份驗證。

這些資料說明了什麼 — 以及沒有說明什麼

來源分析描述的是一個針對美國機構的攻擊行動;並無提及針對香港或亞太區。此處的本地關聯性屬觀感問題,而非已有報道的事實。真正跨境流通的是協議本身:RFC 8628 及基於授權同意的 OAuth 在 Entra ID 和 Google Workspace 中的實作方式相同,不因 tenant 的司法管轄權而異,因此任何將 device-code flow 及第三方 consent 大開中門的環境,都面臨同等風險。

對香港團隊而言,實際的啟示在於防禦重心的轉移。弱點不再是密碼欄位或用戶的判斷力 — 而是授權層:哪些應用程式可獲批准存取、由誰批准、在何種 scopes 下批准,以及批准發生時具備何種可見度。強化這一層屬行政工作,無須等待攻擊行動先在本地落地才著手。

新聞來源 / Original News Source