Skip to main content
Mallory
Back to intelligence
build-pipeline-compromisevendor-distribution-compromiseleaked-secret-api-keythreat-infrastructure-tracking

Megalodon GitHub Supply Chain Attack Injected Malicious Actions into 5,561 Repos

Updated 6h agoFirst seen May 22, 202612 sources

Researchers disclosed a large-scale automated supply chain attack dubbed Megalodon that pushed 5,718 malicious commits into 5,561 GitHub repositories in less than six hours, using forged CI/CD bot identities and benign-looking commit messages to slip in malicious GitHub Actions workflow files. The workflows requested elevated permissions and carried base64-encoded bash payloads that executed after maintainers merged the changes, harvesting CI/CD environment data, cloud credentials, SSH keys, Docker and Kubernetes secrets, Vault and Terraform credentials, GitHub OIDC tokens, and other source-code and developer secrets. Investigators said the stolen data was exfiltrated over HTTP POST requests to 216.126.225[.]129:8443, with two workflow variants observed, including payloads labeled SysDiag and Optimize-Build.

The most visible downstream impact was a compromise of the Tiledesk repository, where a malicious workflow change led to the publication of poisoned @tiledesk/tiledesk-server npm versions 2.18.6 through 2.18.12. Reporting tied the activity to a broader pattern of software supply chain abuse associated with TeamPCP, whose earlier incidents affected major open-source and commercial projects and prompted npm to invalidate some write-capable granular access tokens that could bypass 2FA protections. Security firms urged organizations to review repositories for unauthorized workflow changes, block the identified command-and-control infrastructure, rotate exposed secrets and keys, and inspect cloud and CI logs for signs of credential theft or cloud impersonation.

Share:
Megalodon GitHub Supply Chain Attack Injected Malicious Actions into 5,561 Repos
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

7 events from the most recent confirmed update back to the earliest known activity.

7 EVENTS
May 22, 20265d ago

Additional Megalodon victims Black-Iron-Project and WISE-Community identified

StepSecurity reported that Black-Iron-Project and WISE-Community were among the confirmed repositories compromised in the Megalodon campaign, expanding the list of specifically named victims beyond Tiledesk. The report placed these victim disclosures in the context of the May 18 mass GitHub Actions workflow compromise affecting 5,561 repositories.

Megalodon: Mass GitHub Actions Secret Exfiltration Across 5,500+ Public Repositories - StepSecurity

Researchers identify malicious Polymarket-themed npm packages tied to same activity

SafeDep separately identified a throwaway npm publisher, polymarketdev, that uploaded nine malicious Polymarket-themed packages intended to trick users into submitting Ethereum or Polygon private keys to a Cloudflare Worker endpoint. The packages were reported in coverage of the broader Megalodon and related supply chain activity.

May 21, 20266d ago

SafeDep discloses Megalodon campaign and links it to widespread repo abuse

By 2026-05-21, SafeDep had publicly reported the Megalodon campaign, stating that thousands of repositories were affected and detailing the malicious workflow techniques and credential theft behavior. Reporting also connected the activity to a broader software supply chain abuse wave associated with TeamPCP.

May 18, 20269d ago

Tiledesk repository compromise leads to poisoned npm package releases

As a downstream impact of the GitHub compromises, a malicious workflow change in the Tiledesk repository resulted in the maintainer publishing compromised @tiledesk/tiledesk-server npm versions 2.18.6 through 2.18.12. SafeDep identified the embedded payload in the Tiledesk package and linked it to the broader Megalodon campaign.

Malicious workflows steal CI/CD and cloud secrets via Megalodon payloads

The implanted GitHub Actions workflows deployed base64-encoded bash payloads that harvested CI environment data, cloud credentials, SSH keys, Docker and Kubernetes secrets, Vault and Terraform credentials, GitHub OIDC tokens, and other source-code-related secrets. Researchers said the stolen data was exfiltrated to 216.126.225.129:8443, including via HTTP POST requests using the parameter string "megalodon."

Megalodon campaign compromises thousands of GitHub repositories

On 2026-05-18, an automated supply chain attack dubbed Megalodon pushed 5,718 malicious commits into 5,561 GitHub repositories within roughly six hours. The commits used fake CI/CD bot-style identities and inserted malicious GitHub Actions workflow files designed to run after merges or remain dormant for later activation.

Mar 2, 20263mo ago

Claude-powered AI bot compromises five GitHub repositories

A separate supply chain incident reportedly involved a Claude-powered AI bot compromising five major GitHub repositories. This predates the May 2026 Megalodon campaign and represents a distinct repository compromise event.

AI bot compromises five major GitHub repositories​ | Cybernews
The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.

Megalodon GitHub Supply Chain Attack Injected Malicious Actions into 5,561 Repos | Mallory