Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsStudyTraining
ProjectsChecklistsAI RankingsNewsletterStatusTagsAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Study
Training
Projects
Checklists
AI Rankings
Newsletter
Status
Tags
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

1154+ Articles
126+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. News
  3. Megalodon GitHub Attack Targets 5,561 Repos with Malicious CI/CD Workflows
Megalodon GitHub Attack Targets 5,561 Repos with Malicious CI/CD Workflows
NEWS

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

Cybersecurity researchers have uncovered Megalodon, an automated attack campaign that pushed 5,718 malicious commits to over 5,500 GitHub repositories in...

Dylan H.

News Desk

May 24, 2026
3 min read

A newly disclosed automated attack campaign dubbed Megalodon has targeted thousands of GitHub repositories with malicious CI/CD workflow injections, pushing 5,718 malicious commits across 5,561 repositories within a single six-hour window — a pace that dramatically outstrips human defenders' ability to respond.

Attack Mechanics

Researchers report that Megalodon used a network of throwaway GitHub accounts with forged author identities designed to blend into automated pipeline activity. Account names observed include:

  • build-bot
  • auto-ci
  • ci-bot
  • pipeline-bot

These names are deliberately chosen to mimic legitimate CI/CD service accounts commonly found in enterprise development environments, making malicious commits harder to spot in high-volume repositories.

Workflow Injection

The attack's primary payload consists of malicious GitHub Actions workflow files injected into targeted repositories. These rogue workflows are designed to:

  1. Exfiltrate repository secrets — including API keys, tokens, and credentials stored as GitHub Actions secrets
  2. Establish persistence through workflow triggers that fire on every future commit or pull request
  3. Pivot to downstream dependencies to potentially spread the infection further through the software supply chain

Why This Attack Is Alarming

The sheer velocity of the Megalodon campaign — over 5,500 repositories compromised in six hours — represents a new benchmark for automated supply chain attacks. Prior major campaigns, including the 2024 tj-actions/changed-files incident and the 2025 MiniShai-Hulud worm, operated over days or weeks.

Key concerns include:

  • Scale over stealth: By targeting thousands of repositories simultaneously, attackers maximize the probability that at least some targets contain high-value secrets
  • Automated proliferation: Throwaway accounts enable rapid scaling with minimal cost, as each account can be abandoned once detected
  • CI/CD as attack surface: Workflow files run in trusted environments with elevated privileges, making them ideal vectors for credential theft

Affected Repositories

The campaign appears to have targeted public repositories across multiple programming language ecosystems, particularly those with active CI/CD pipelines. Repositories using GitHub Actions for automated testing, deployment, or publishing are at elevated risk, as these typically have access to sensitive environment secrets.

Detection and Response

Organizations should audit their repositories for unexpected workflow file additions or modifications, particularly files in .github/workflows/ created by unfamiliar accounts. Specific indicators include:

  • Workflow files committed by accounts with bot-like names not previously associated with the project
  • Newly added curl, wget, or env commands within workflow steps that were not part of the original pipeline
  • Unexpected workflow run activity in repository audit logs

Recommended Hardening Measures

  1. Review GitHub Actions permissions — use the principle of least privilege; avoid granting write permissions to GITHUB_TOKEN unless necessary
  2. Pin Actions to commit SHAs rather than tags to prevent tag-based supply chain attacks
  3. Enable branch protection rules requiring pull request reviews before merging workflow file changes
  4. Rotate any secrets exposed in repositories that received unsolicited commits
  5. Enable GitHub's secret scanning and push protection to block accidental secret commits
  6. Audit third-party workflow dependencies regularly

Broader Supply Chain Context

Megalodon arrives amid a wave of supply chain attacks targeting developer infrastructure. The campaign shares tactical similarities with the Mini Shai-Hulud worm that compromised TanStack, Mistral AI, and other packages earlier in May 2026, and the Glassworm attacks that hijacked VS Code extensions in March 2026.

The trend points to a systematic effort by threat actors to exploit the trust placed in automated developer tooling — where a single compromised workflow or package can cascade into dozens of downstream victims.

GitHub has been notified and is reportedly working to remove the malicious commits and suspend the associated accounts.

#Supply Chain#GitHub#CI/CD#Malware#DevSecOps

Related Articles

Laravel Lang Packages Hijacked to Deploy Credential-Stealing Malware

A supply chain attack targeting Laravel Lang localization packages has exposed developers to credential-stealing malware after attackers abused GitHub...

3 min read

Living Off the Pipeline: Defending Against CI/CD Subversion

Adversaries are increasingly weaponizing CI/CD pipelines as a living-off-the-land vector — abusing trusted build infrastructure to execute attacks without...

5 min read

Tropic Trooper Uses Trojanized SumatraPDF and GitHub to Deploy AdaptixC2

Zscaler ThreatLabz has uncovered a Tropic Trooper (APT23) campaign that delivers the AdaptixC2 post-exploitation beacon via trojanized SumatraPDF...

4 min read
Back to all News