Skip to content
MagnaNet Network MagnaNet Network

  • Home
  • About Us
    • About Us
    • Advertising Policy
    • Cookie Policy
    • Affiliate Disclosure
    • Disclaimer
    • DMCA
    • Terms of Service
    • Privacy Policy
  • Contact Us
  • FAQ
  • Sitemap
MagnaNet Network
MagnaNet Network

Megalodon GitHub Attack Targets 5,561 Repos with Malicious CI/CD Workflows

Cahyo Dewo, May 25, 2026

Cybersecurity researchers have unveiled an alarming new automated campaign dubbed "Megalodon," which rapidly injected 5,718 malicious commits into 5,561 distinct GitHub repositories within a mere six-hour window. This sophisticated attack represents a significant escalation in software supply chain compromises, leveraging the trusted infrastructure of continuous integration/continuous deployment (CI/CD) pipelines to exfiltrate highly sensitive data. The incident highlights the growing sophistication of threat actors targeting the very foundations of modern software development.

The Anatomy of the Megalodon Attack

The "Megalodon" campaign, meticulously detailed by SafeDep, exploited GitHub Actions workflows – automated processes that run code in response to specific events like pushes or pull requests. Threat actors utilized a series of "throwaway accounts" and employed forged author identities such as "build-bot," "auto-ci," "ci-bot," and "pipeline-bot." These identities were strategically chosen to mimic legitimate, automated CI/CD maintenance activities, making the malicious commits difficult to distinguish from routine operational updates. The objective was clear: to inject Base64-encoded bash payloads into these workflows. These payloads were designed to siphon off critical CI secrets, cloud credentials, SSH keys, OpenID Connect (OIDC) tokens, and various source code secrets, transmitting them to a command-and-control (C2) server located at 216.126.225[.]129:8443.

The sheer scale of the operation is staggering. On May 18, 2026, between 11:36 a.m. and 5:48 p.m. UTC, the campaign executed its rapid deployment, impacting thousands of repositories. One notable victim was the @tiledesk/tiledesk-server package, which was found to bundle a Base64-encoded bash payload within its GitHub Actions workflow file. This specific example underscores how deeply embedded these malicious injections can become within widely used software components. The attacker’s rotation through four distinct author names and seven varying commit messages further illustrates an attempt to evade detection and maintain a low profile amidst a high volume of activity. These commits were pushed via compromised Personal Access Tokens (PATs) or deploy keys, indicating a preceding breach of developer credentials.

Payload Variants and Strategic Trade-offs

SafeDep’s analysis revealed two primary payload variants deployed during the Megalodon campaign, each designed with different operational security and reach considerations. The first, termed "SysDiag," is a mass variant configured to add a new workflow triggered by every push and pull request. This approach maximizes the execution opportunities, ensuring that the malware runs frequently and across a broad spectrum of development activities within a compromised repository. The advantage here is widespread infection and data exfiltration with minimal attacker intervention post-compromise.

Megalodon GitHub Attack Targets 5,561 Repos with Malicious CI/CD Workflows

The second variant, "Optimize-Build," represents a more targeted approach. This payload activates only upon a workflow_dispatch event, a GitHub Actions trigger that allows users to manually run a workflow on-demand. In the case of the Tiledesk compromise, this targeted method was utilized to specifically attack CI/CD runners, rather than triggering upon npm package installation. This variant sacrifices the immediate, widespread execution guaranteed by on: push triggers for enhanced operational security. As SafeDep noted, "Workflow_dispatch sacrifices that for operational security. With 5,700+ repos compromised, even a small fraction yielding a usable GITHUB_TOKEN gives the attacker enough targets for on-demand triggering." This strategic choice suggests that the attackers were willing to invest more time in specific targets that promised higher-value credentials or access, while also reducing the risk of immediate detection by making executions less frequent and more controlled. The implication is that even if a repository owner merges the malicious commit, the malware’s full execution might remain dormant until manually triggered by the attacker, making detection more challenging.

The Shadow of TeamPCP: A Broader Supply Chain Crisis

The Megalodon campaign does not exist in isolation; it is intricately linked to a wider, escalating series of attacks attributed to a sophisticated threat group known as TeamPCP. As Moshe Siman Tov Bustan of OX Security aptly stated, "We’ve entered a new supply chain attack era, and TeamPCP compromising GitHub was only the beginning. What’s coming next is an endless wave, a tsunami of cyber attacks on developers worldwide." TeamPCP has distinguished itself by weaponizing the interlinked software supply chain, systematically corrupting hundreds of open-source tools and worming its way through various ecosystems. Their methods often lead to the extortion of victims for profit, showcasing a clear financial motivation.

TeamPCP’s victim list is extensive and includes high-profile entities such as Microsoft-owned GitHub, TanStack, Grafana Labs, OpenAI, and Mistral AI. Their modus operandi involves a "cyclical exploitation" of popular open-source projects, where the compromise of one project provides the leverage or credentials necessary to compromise the next, leading to a rapid, worm-like spread across the software landscape. This self-perpetuating mechanism allows their malware to proliferate with alarming efficiency. Beyond financial gain, TeamPCP also exhibits geopolitical motivations. Evidence suggests the deployment of wiper malware upon detecting machines located in specific geopolitical regions, notably Iran and Israel, indicating a potential state-sponsored or politically aligned agenda alongside their profit-driven activities. This dual motivation complicates attribution and response efforts, making TeamPCP a particularly dangerous and multifaceted threat actor.

Industry Response and Mitigation Efforts

The widespread fallout from TeamPCP’s attack spree and the associated "Mini Shai-Hulud worm" has prompted urgent actions from key players in the software ecosystem. npm, the default package manager for Node.js, took a significant step by invalidating granular access tokens with write access that bypass two-factor authentication (2FA). These tokens, often used for automated publishing, represent a critical vulnerability when compromised, as they allow malicious actors to publish new versions of packages without needing to bypass 2FA. npm also strongly urged users to transition to "Trusted Publishing," a more secure mechanism designed to reduce reliance on such vulnerable tokens by tying publishing permissions to specific CI/CD environments.

While npm’s proactive measure provides crucial "breathing room," cybersecurity firm Socket highlighted its limitations. "By burning every bypass-2FA token on the platform, npm cuts off the credentials the worm has already collected," Socket stated. "Maintainers issue new ones. The worm, still active in the wild, goes back to harvesting them. The reset buys breathing room. It does not close the underlying hole." This assessment underscores a fundamental challenge in combating such pervasive supply chain attacks: addressing the symptoms (compromised tokens) does not automatically resolve the root causes (initial credential theft or vulnerabilities in developer environments). The onus remains on developers and organizations to adopt more secure practices, including robust credential management and multi-factor authentication for all critical accounts.

Megalodon GitHub Attack Targets 5,561 Repos with Malicious CI/CD Workflows

The Root Cause: Infostealer Infections

A follow-up analysis published by Hudson Rock on May 23, 2026, provided a crucial piece of the puzzle regarding the genesis of the Megalodon supply chain attack. Their findings definitively linked the campaign’s origin to widespread information stealer infections. Hudson Rock revealed that a significant portion – over 33% – of the unique usernames associated with the affected GitHub repositories (331 out of 978) were direct matches to computers previously compromised by infostealers. Even in cases where usernames didn’t provide an exact match, email addresses tied to the GitHub accounts further uncovered additional instances of stealer compromises.

This revelation leads to a "definitive conclusion: The affected accounts enabling the Megalodon supply chain attack are exclusively sourced from infostealer data," as Hudson Rock asserted. Infostealers are malicious software designed to covertly collect sensitive information, including saved browser credentials, cookies, financial data, and system information, from infected machines. The data exfiltrated by these infostealers then becomes a powerful tool for threat actors, providing them with the keys to various online accounts, including developer platforms like GitHub. The Megalodon campaign thus serves as a stark reminder of the devastating cascading effects that can occur when developers and employees fall victim to infostealers. A seemingly isolated infection on an individual’s machine can become the "launchpad for devastating cascading events," compromising entire software supply chains and exposing countless downstream users to risk. This finding emphasizes the critical importance of endpoint security and user awareness in the broader cybersecurity defense strategy.

Beyond Compromised Packages: The Polymarketdev Impersonation

While Megalodon and TeamPCP focus on compromising legitimate packages or repositories, another parallel threat involves the publication of entirely new, malicious packages designed to impersonate legitimate tools. An example of this was observed with a throwaway npm account named "polymarketdev," which published nine malicious npm packages within a mere 30-second window. These packages impersonated Polymarket trading CLI tools, preying on users interested in cryptocurrency trading.

The attack vector here was a postinstall hook – a script that automatically runs after an npm package is installed. This hook was designed to display a fake wallet onboarding prompt, deceptively asking users to paste their private keys, with the false assurance that "it stays encrypted." In reality, the script immediately transmitted the raw, plaintext private key to a Cloudflare Worker at hxxps://polymarketbot.polymarketdev.workers[.]dev/v1/wallets/keys. SafeDep highlighted the sophisticated social engineering involved: "The attacker built a functional trading CLI around a credential theft operation. Social engineering carries the attack: the postinstall prompt looks like standard wallet onboarding, the masking mimics secure input, and the GitHub repo provides false credibility." As of the initial reporting, these malicious packages were still available for download from npm, underscoring the challenges of real-time detection and removal in vast package repositories. This incident illustrates a different facet of supply chain attack, where trust is abused through impersonation rather than direct compromise of existing projects, targeting end-users directly for financial gain through cryptocurrency theft.

Broader Implications and Future Challenges

Megalodon GitHub Attack Targets 5,561 Repos with Malicious CI/CD Workflows

The Megalodon campaign, the ongoing TeamPCP onslaught, and related incidents like the Polymarketdev impersonation collectively paint a grim picture of the current state of software supply chain security. The escalating frequency and sophistication of these attacks pose profound implications for developers, organizations, and the broader digital economy.

Firstly, the reliance on open-source components, while fostering innovation, introduces inherent risks. Every dependency, whether directly included or nested several layers deep, becomes a potential attack vector. Verifying the integrity and security of every upstream component in a complex software project is a monumental, often impossible, task. This necessitates a shift towards more robust supply chain security frameworks, including software bill of materials (SBOMs), automated vulnerability scanning, and stricter access controls for publishing and committing code.

Secondly, the role of developer security hygiene cannot be overstated. The revelation that infostealers are the root cause for many of these compromises highlights the need for organizations to implement comprehensive endpoint security solutions, conduct regular security awareness training for developers, and enforce strong authentication mechanisms across all development platforms. Personal Access Tokens (PATs) and other credentials must be managed with the principle of least privilege, short expiration times, and regular rotation.

Thirdly, platforms like GitHub and npm face an ongoing "arms race" against highly motivated and sophisticated adversaries. While their efforts to invalidate tokens and promote secure publishing mechanisms are crucial, the sheer volume of activity and the clever evasion tactics employed by attackers mean that continuous vigilance and rapid response capabilities are paramount. The long-term solution likely involves a multi-layered approach, combining platform-level security enhancements, developer education, and community-driven security initiatives.

The "tsunami of cyber attacks on developers worldwide" predicted by experts is already upon us. The Megalodon campaign serves as a stark reminder that the battle for cybersecurity is increasingly fought not just at the network perimeter, but deep within the intricate and interconnected fabric of the software supply chain. Organizations must urgently reassess their security posture, understanding that a single compromised developer account or a seemingly innocuous open-source dependency can trigger a catastrophic cascade of security incidents. The future of digital trust hinges on the collective ability to secure this critical supply chain.

Cybersecurity & Digital Privacy attackCybercrimegithubHackingmaliciousmegalodonPrivacyreposSecuritytargetsworkflows

Post navigation

Previous post
Next post

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

⚡ Weekly Recap: Fast16 Malware, XChat Launch, Federal Backdoor, AI Employee Tracking & MoreThe Evolving Landscape of Telecommunications in Laos: A Comprehensive Analysis of Market Dynamics, Infrastructure Growth, and Future ProspectsTelesat Delays Lightspeed LEO Service Entry to 2028 While Expanding Military Spectrum Capabilities and Reporting 2025 Fiscal PerformanceThe Internet of Things Podcast Concludes After Eight Years, Charting a Course for the Future of Smart Homes
IoT News of the Week for August 18, 2023The Enduring Backbone: Why Decades-Old Communication Technologies Remain Critical for Emergency Services Amidst 5G AdvancementTrickMo Android Banking Trojan Adopts The Open Network (TON) for Stealthy Command-and-Control, Escalating Mobile Threat Landscape.The Transformative Power of Containerization: Revolutionizing Software Deployment and Beyond
IoT News of the Week for August 11, 2023The Automation Mirage: How DIY Platforms Create More Complexity Than They SolveRedefining Cybersecurity: How Modern SOCs Are Shifting from Reactive Fortresses to Proactive Risk ReductionThe Ultimate Guide to Top Virtual Machine Software for Windows

Categories

  • AI & Machine Learning
  • Blockchain & Web3
  • Cloud Computing & Edge Tech
  • Cybersecurity & Digital Privacy
  • Data Center & Server Infrastructure
  • Digital Transformation & Strategy
  • Enterprise Software & DevOps
  • Global Telecom News
  • Internet of Things & Automation
  • Network Infrastructure & 5G
  • Semiconductors & Hardware
  • Space & Satellite Tech
©2026 MagnaNet Network | WordPress Theme by SuperbThemes