Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons

Social Media

Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons
Search the Site
Popular Searches:
technology Amazon AI
Recent Posts
Gunra Ransomware Exploits Fortinet VPN Flaws, Bypasses MFA
August 10, 2026
Anthropic Claude: New Security Feature Automates Agent Access Approvals
August 10, 2026
Critical Vulnerability Lets Attackers Bypass MFA in Windows 11 and Entra ID
August 10, 2026
Home/CyberSecurity News/Megalodon Malware Hijacks 5,500+ GitHub Repositories in 6 Hours
CyberSecurity News

Megalodon Malware Hijacks 5,500+ GitHub Repositories in 6 Hours

Key Takeaways Over 5,500 GitHub repositories were compromised in a rapid, automated supply chain attack dubbed “Megalodon.” Malicious CI/CD backdoors were injected, designed to steal...

Jennifer sherman
Jennifer sherman
May 22, 2026 4 Min Read
72 0

Key Takeaways

  • Over 5,500 GitHub repositories were compromised in a rapid, automated supply chain attack dubbed “Megalodon.”
  • Malicious CI/CD backdoors were injected, designed to steal credentials and facilitate cloud identity impersonation.
  • The attack leveraged forged identities and camouflaged commit messages to evade detection, impacting projects like Tiledesk.
  • Immediate action, including commit reversion and secret rotation, is crucial for affected organizations.

Widespread Megalodon Attack Hijacks GitHub Repositories, Steals Credentials

On May 18, 2026, a sophisticated and highly aggressive automated supply chain attack, now known as “Megalodon,” compromised more than 5,500 GitHub repositories. The incident, which unfolded in less than six hours, involved the injection of malicious CI/CD backdoors into numerous projects, marking a significant escalation in GitHub Actions poisoning campaigns.

Table Of Content

  • Key Takeaways
  • Widespread Megalodon Attack Hijacks GitHub Repositories, Steals Credentials
  • Megalodon Payload Variants and Credential Theft
  • Impact on Tiledesk and npm Supply Chain
  • Indicators of Compromise (IoC)
  • What You Should Do

Security firm SafeDep meticulously tracked the Megalodon operation, observing 5,718 malicious commits pushed to 5,561 GitHub repositories between approximately 11:36 and 17:48 UTC on May 18, 2026. The attackers utilized ephemeral accounts with randomized eight-character usernames to execute their campaign.

To further obscure their activities, the threat actors employed forged author identities such as “build-bot,” “auto-ci,” “ci-bot,” and “pipeline-bot,” paired with emails like [email protected] and [email protected]. This tactic mimicked legitimate automated CI maintenance processes. Commit messages, including “ci: add build optimization step” and “chore: optimize pipeline runtime,” were crafted to appear innocuous and bypass casual code review.

Megalodon Payload Variants and Credential Theft

The Megalodon campaign deployed two distinct GitHub Actions workflow variants, both communicating with the same command-and-control (C2) server located at 216.126.225.129:8443.

  • SysDiag (Mass Variant): This variant introduced a new .github/workflows/ci.yml file. It was configured to trigger on every push and pull_request_target event, ensuring its automated execution across all branches whenever new code was committed.
  • Optimize-Build (Targeted Variant): This more stealthy variant replaced existing workflows with a workflow_dispatch trigger. This created a dormant backdoor that attackers could activate silently and on-demand via the GitHub API, without generating any visible CI runs or failed builds.

Both malicious workflow variants requested elevated permissions, specifically id-token: write and actions: read. These permissions are critical for OpenID Connect (OIDC) token theft, enabling attackers to impersonate cloud identities.

Upon execution, the base64-encoded bash payload, a 111-line script, initiated an aggressive, multi-phase credential harvesting process. This included:

  • Exfiltration of all CI environment variables, /proc/*/environ contents, and PID 1 environment data.
  • Harvesting of AWS credentials (access keys, secret keys, session tokens) from all configured profiles.
  • Extraction of GCP access tokens via the gcloud auth print-access-token command.
  • Collection of live credentials from AWS IMDSv2, GCP metadata, and Azure IMDS endpoints.
  • Theft of SSH private keys, Docker authentication configurations, .npmrc, .netrc, Kubernetes configurations, Vault tokens, and Terraform credentials.
  • Scanning of source code using over 30 regular expressions to identify and exfiltrate API keys, JSON Web Tokens (JWTs), database connection strings, PEM keys, and various cloud tokens.
  • Theft of GitHub Actions OIDC tokens, directly enabling cloud identity impersonation.

Impact on Tiledesk and npm Supply Chain

The attack had a notable downstream impact on Tiledesk, an open-source live chat platform. The attackers successfully compromised Tiledesk’s GitHub repository, replacing the legitimate Docker build workflow with the “Optimize-Build” backdoor through commit acac5a9. Unaware of the compromise, the maintainer subsequently published versions 2.18.6 through 2.18.12 of the @tiledesk/tiledesk-server package to npm, effectively propagating the backdoor into the package registry. It’s important to note that only the workflow file was altered; the application’s core code remained untouched.

Indicators of Compromise (IoC)

Indicator Value
C2 Server hxxp://216[.]126[.]225[.]129:8443
Campaign ID megalodon
Author Emails build-system@noreply[.]dev, ci-bot@automated[.]dev
Author Names build-bot, auto-ci, ci-bot, pipeline-bot
Mass Workflow .github/workflows/ci.yml (SysDiag)
Targeted Workflow Optimize-Build (workflow_dispatch)
Affected npm Versions @tiledesk/tiledesk-server 2.18.6–2.18.12
Malicious Commit acac5a9854650c4ae2883c4740bf87d34120c038

Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

SafeDep’s Malysis engine initially detected the campaign by flagging the base64-encoded payload within a bundled workflow file in @tiledesk/[email protected]. This highlights the critical role of automated supply chain scanning tools in identifying attacks that can circumvent traditional code review processes.

What You Should Do

Organizations whose repositories received commits from build-system@noreply[.]dev or ci-bot@automated[.]dev on May 18, 2026, must take immediate action:

  • Revert Malicious Commits: Identify and revert any suspicious commits, then thoroughly audit all .github/workflows/ files for unauthorized changes.
  • Rotate All Secrets: Immediately rotate all secrets, tokens, API keys, SSH keys, and cloud credentials accessible to GitHub Actions runners.
  • Audit Cloud Logs: Scrutinize cloud logs for any anomalous OIDC token requests originating from unknown or unexpected workflow runs.
  • Check Actions Tab: Review the GitHub Actions tab for any unexpected workflow_dispatch executions.
  • Pin GitHub Actions: Pin GitHub Actions to specific commit SHAs instead of mutable version tags to prevent unexpected updates.
  • Implement Workflow Approval Gates: Establish workflow approval gates for pull requests, especially those from external contributors, to add an additional layer of review.

Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.

Tags:

AttackBreachMalwarePatchThreat

Share Article

Jennifer sherman

Jennifer sherman

Jennifer is a cybersecurity news reporter covering data breaches, ransomware campaigns, and dark web markets. With a background in incident response, Jennifer provides unique insights into how organizations respond to cyber attacks and the evolving tactics of threat actors. Her reporting has covered major breaches affecting millions of users and has helped organizations understand emerging threats. Jennifer combines technical knowledge with investigative journalism to deliver in-depth coverage of cybersecurity incidents.

Previous Post

TamperedChef Malware Abuses Signed Apps to Deliver Stealers and RATs

Next Post

Discord Rolls Out End-to-End Encryption for All Video and Voice Calls

No Comment! Be the first one.

Leave a Reply Cancel reply

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

Popular Posts
CISA Warns of Progress LoadMaster Command Injection Vulnerability Exploited in Attacks
August 10, 2026
Critical Red Hat ACM Vulnerability Lets Attackers Gain Cluster-Admin Access
August 10, 2026
GitHub Expands Malware Detection to 8 Package Registries
August 10, 2026
Top Authors
Marcus Rodriguez
Marcus Rodriguez
Jennifer sherman
Jennifer sherman
Emy Elsamnoudy
Emy Elsamnoudy
Let's Connect
156k
2.25m
285k

Related Posts

Jennifer sherman
By Jennifer sherman
Threats

GlassWorm Attacks macOS via Malicious VS Code…

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Attacks

ClickFix Attack Hides Malicious Code via Stegan Security

January 1, 2026
Sarah simpson
By Sarah simpson
Vulnerabilities

MongoBleed Detector Tool Released to Detect MongoDB Vulnerability(CVE-2025-14847)

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Breaches

Conti Ransomware Gang Leaders & Infrastructure Exposed

January 1, 2026
Hackers News Hackers News
  • [email protected]

Quick Links

  • Contact Us
  • Privacy Policy
  • Terms of service

Categories

Attacks
Breaches
Comparisons
CyberSecurity News
Threats
Vulnerabilities

Let's keep in touch

receive fresh updates and breaking cyber news every day and week!

All Rights Reserved by HackersRadar ©2026

Follow Us