A sophisticated and increasing wave of cyberattacks now targets software developers through a little-known yet legitimate GitHub feature: the OAuth 2.0 Device Code Flow.
Security experts, notably from Praetorian, have warned that threat actors are leveraging this mechanism to trick developers into surrendering access to their most sensitive code repositories and CI/CD pipelines.
The attacks pose a substantial risk to intellectual property and could facilitate large-scale supply chain attacks.
At the heart of the attack is GitHub’s device code authentication, designed to help users log in on devices with limited input, such as smart TVs or IoT devices.
The process is straightforward: a device requests a short-lived code and a verification URL from GitHub’s OAuth service. T
The user enters the code in a browser to authenticate the device, which then fetches an access token on their behalf.
This flow is legitimate and necessary, but crucially, it doesn’t guarantee that the person generating the code is the same person authenticating it.
Attackers have found ways to exploit this vulnerability. Here’s how the attack typically unfolds:
Recent case studies highlight highly effective campaigns.
In one example, attackers used compromised internal access to proxy device code requests to an organization’s GitHub Enterprise, then leveraged phone-based impersonation to trick developers into authorizing access.
Another variant, “GitPhish,” automates the entire process, generating fresh device codes on demand via a professional-looking GitHub Pages site, ensuring every victim receives a valid, live code.
Currently, there is no way to outright disable device code flow on GitHub. As a result, technical controls and vigilant monitoring are critical:
According to the Report, Security experts urge organizations to prepare robust detection and response playbooks.
With threat actors rapidly adopting GitHub device code phishing, the risk to developer environments and supply chains is clear.
Developers and security teams must remain vigilant, as the modern threat landscape offers no certainty except that the call is coming from within your own GitHub organization.
Find this News Interesting! Follow us on Google News, LinkedIn, & X to Get Instant Updates
Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…
Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…
Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…
A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…
GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…
Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…