top of page

The Astronaut at the Airlock: How Skyw4lker Turned Microsoft Authentication Into an Invitation for Intruders

hace 12 minutos
7 min de lectura

The spacecraft was secure.

Its airlocks were sealed. Its access controls were functioning. Every crew member had been trained to authenticate before entering a restricted compartment.

Then a transmission arrived.

A routine business document. A contract awaiting review. A protected file that seemed to require one more authentication step.

The crew member followed the instructions.

A familiar Microsoft sign-in page appeared. The authentication process worked exactly as expected.

And somewhere outside the spacecraft, an unidentified astronaut was waiting.

The security system hadn’t failed. The wrong person had convinced an authorized crew member to open the airlock.

This is the central deception behind Skyw4lker, a device code phishing campaign analyzed by ANY.RUN and primarily targeting organizations in the United States.

The attack demonstrates how legitimate cloud infrastructure and authentication mechanisms can become part of an intrusion when users are manipulated into authorizing someone else’s session.


Phase 1 — Selecting the Spacecraft


Skyw4lker has focused on organizations in three sectors:

  • Manufacturing

  • Technology

  • Healthcare

These environments routinely exchange contracts, service proposals, procurement documents and statements of work.

That makes business correspondence a useful disguise.

A contract does not necessarily appear suspicious when an employee expects to receive one.

A password-protected document can also seem reasonable when the contents are described as confidential.

The attacker exploits that familiarity.

Rather than beginning with an obvious request for credentials, the campaign presents a document that fits the recipient’s professional responsibilities.

The first transmission doesn’t announce an invasion. It looks like ordinary business.


Phase 2 — The Sealed Cargo Container


The initial lure is a password-protected document presented as a contract or service proposal.

The document directs the victim toward a web page hosted on Google’s legitimate Sites platform:

sites[.]google[.]com

This is an important detail.

The attacker does not need to host every stage of the operation on an obviously suspicious domain.

By incorporating established cloud services, the campaign creates a chain of interactions that may appear familiar to the recipient.

The document provides the reason to proceed.

Google Sites provides an intermediate destination.

Microsoft authentication becomes the next step.

Each stage moves the victim closer to the attacker’s objective without necessarily resembling a traditional phishing page.

The sealed cargo container isn’t the weapon. It’s the reason the crew approaches the airlock.


Phase 3 — A Real Authentication Terminal


Traditional phishing frequently relies on a counterfeit login page.

The attacker imitates a trusted service, collects the victim’s username and password, and attempts to reuse those credentials.

Skyw4lker follows a different approach.

It abuses Microsoft’s legitimate device authorization flow.

This authentication mechanism is designed for devices and applications that cannot easily present a conventional sign-in experience.

In a legitimate scenario, a user enters a device code into an authorized Microsoft authentication page to approve access for an application or device.

In a device code phishing attack, however, the attacker initiates the authorization request and persuades the victim to complete it.

The victim may authenticate on a genuine Microsoft page.

Multifactor authentication may operate normally.

The resulting authorization can nevertheless benefit the attacker.

The terminal recognizes the crew member. What it cannot determine from that fact alone is whether the crew member should approve the waiting astronaut.


Phase 4 — Opening the Airlock From Inside


The distinction between credential theft and authorization abuse is essential.

Skyw4lker does not necessarily need to capture the victim’s password.

Instead, the attacker aims to obtain the tokens resulting from a successfully completed device authorization process.

Those tokens can provide access to Microsoft 365 resources permitted by the authorized session and its associated scopes.

The attacker has effectively convinced the legitimate user to approve access initiated elsewhere.

That makes the activity harder to interpret through authentication logs alone.

A security team may observe a successful sign-in involving a real user and legitimate Microsoft infrastructure.

But the authentication event does not, by itself, explain why the user completed the flow or who initiated it.

The malicious context exists outside the sign-in event.

It begins with the document and continues through the web redirects and attacker-controlled infrastructure.

The astronaut doesn’t need to defeat the authentication system. He needs the crew member to authenticate on his behalf.


Phase 5 — Mission Control Behind the Transmission


ANY.RUN’s analysis identified additional infrastructure supporting the campaign.

The phishing operation involved obfuscated JavaScript and a PHP backend.

The backend was used to establish a victim session, collect information such as IP address and geolocation, and repeatedly check the progress of the authentication process.

This polling behavior matters because the attack depends on an interaction that may take time.

The attacker must wait while the victim follows the instructions and completes the legitimate Microsoft authorization flow.

The visible webpage is therefore only one part of the operation.

Behind it, the infrastructure tracks the session and monitors whether the intended authentication has succeeded.

While the crew member works through the terminal, the impostor’s mission control is watching for the airlock to open.


Phase 6 — Why the First Inspection Misses the Threat


A static examination of the suspicious document may reveal its embedded URL.

But that alone does not establish the complete attack chain.

The malicious behavior unfolds through several connected stages:

  1. The recipient opens the business-themed document.

  2. The document directs the user to a Google-hosted page.

  3. Browser activity and JavaScript initiate further communication.

  4. The victim is guided into a Microsoft device authorization flow.

  5. The backend monitors the authentication process.

  6. Successful authorization may provide tokens usable by the attacker.

Understanding this sequence requires more than examining the document’s contents.

Investigators need to observe redirects, network requests, browser behavior and the relationship between the phishing infrastructure and the authentication event.

Otherwise, the original lure may appear relatively harmless.

Inspecting the cargo container tells you where the transmission began. It doesn’t reveal what happens when someone opens the airlock.


Phase 7 — Reconstructing the Flight Path


Interactive sandboxing helps analysts follow suspicious files and URLs through their actual execution paths.

ANY.RUN used its Interactive Sandbox to examine the Skyw4lker campaign and expose behavior that static inspection might miss.

In an isolated environment, analysts can interact with suspicious documents and webpages, observe network communications, and investigate the redirects that lead toward authentication.

The investigation can produce evidence such as:

  • URLs and domains associated with the phishing flow.

  • IP addresses and related infrastructure.

  • Network requests and redirects.

  • Screenshots of observed webpages.

  • JavaScript and backend behavior.

  • Indicators of compromise for subsequent investigation.

The goal is not simply to label the original document malicious.

It is to understand the sequence of events and identify evidence that can be used elsewhere.

Mission control needs the complete flight path, not just the coordinates of the first transmission.


Phase 8 — Connecting the Radar Systems


Skyw4lker illustrates why identity security cannot operate in isolation.

A legitimate Microsoft authentication event may look normal when examined without context.

A document link may appear ordinary when examined without the subsequent redirects.

A Google Sites page may seem less suspicious because it uses established infrastructure.

The attack becomes clearer when investigators connect those observations.

Relevant telemetry includes:

Email and document activity. Who received the suspicious contract, and which links did it contain?

Browser and network activity. Which pages were visited, and what redirects or backend communications occurred?

Identity activity. Was a device authorization request completed unexpectedly, and what application or session received authorization?

Cloud activity. What resources were accessed using the resulting tokens?

Threat intelligence. Have the associated domains, URLs or IP addresses appeared in other malicious investigations?

No single sensor necessarily reveals the entire intrusion.

The radar must track the approaching spacecraft, the airlock controls and the movement inside the station together.


Phase 9 — Turning One Intrusion Into an Early Warning


The investigation does not have to end when the original malicious document is understood.

ANY.RUN describes a workflow in which indicators extracted from sandbox investigations can be reused through threat intelligence feeds, lookups and reports.

Its Threat Intelligence Feeds distribute validated malicious IP addresses, domains, URLs and contextual information.

According to the company’s own analysis, up to 30% of unique malicious indicators discovered in Interactive Sandbox sessions had already been observed and were present in its feeds.

This means that some suspicious infrastructure can potentially be recognized before an analyst completes a new investigation.

Threat Intelligence Lookup and Threat Intelligence Reports can also help connect individual indicators with wider campaigns and previously observed behavior.

For an internal security operations center, this may help identify additional employees who encountered related phishing infrastructure.

For an MSSP, indicators discovered while investigating one customer may support detection across other customer environments.

These are vendor-reported capabilities and findings, rather than independent measurements of effectiveness.

The broader principle remains valuable.

Once mission control identifies an impostor’s transmission frequency, every other spacecraft should be warned.


Phase 10 — Securing the Airlock


Defending against device code phishing requires controls that address both the authorization mechanism and the deception surrounding it.

Restrict unnecessary device code authentication.

Organizations should evaluate whether device code authentication is required for their users and applications, and block or limit the flow where business needs allow.

Monitor unexpected device authorization activity.

Security teams should investigate unusual device code sign-ins, unfamiliar applications, unexpected consent activity and suspicious token usage.

Correlate identity events with the original lure.

A successful authentication event should be examined alongside email, document, browser and network telemetry when phishing is suspected.

Investigate suspicious documents dynamically.

Sandboxing can reveal redirects and backend behavior that static document inspection may not expose.

Revoke compromised sessions and tokens.

Where unauthorized authorization is suspected, defenders should invalidate relevant sessions and refresh tokens, review application permissions and investigate subsequent cloud activity.

Use intelligence beyond the original incident.

Indicators identified in one investigation should be evaluated for use in historical searches, detection rules and monitoring across other environments.

Train employees to recognize unexpected device authorization requests.

Users should understand that a genuine Microsoft login page does not automatically make the surrounding request legitimate.

The central question is not merely whether the authentication page is real.

It is whether the user intended to authorize the device or application requesting access.


The Final Transmission — Authentication Is Not Intent


Skyw4lker demonstrates a subtle but important change in modern phishing.

The attacker does not necessarily need to forge Microsoft’s website.

The victim may enter credentials only into legitimate Microsoft infrastructure.

Multifactor authentication may succeed.

Yet the attacker can still benefit if the victim authorizes a session initiated by someone else.

That is why investigating modern identity attacks requires context beyond the final authentication event.

The suspicious contract, Google-hosted page, backend communications and device authorization flow are all parts of the same story.

For defenders, the objective is to connect those signals early enough to recognize the deception and prevent unauthorized access.

The spacecraft’s authentication system may have worked exactly as designed.

The problem was who persuaded the crew member to use it.

The astronaut outside never needed to steal the captain’s identity.

He only needed the captain to open the airlock.



The Hacker News


 
 
 

Comentarios


bottom of page