Megalodon Campaign Injected Malicious Workflows Into 5,561 GitHub Repositories

· Original article ↗

Summary

SafeDep reported that Megalodon pushed 5,718 malicious commits to 5,561 GitHub repositories in six hours, adding workflows designed to steal CI/CD secrets. The article also describes related TeamPCP activity and fake Polymarket npm packages targeting wallet keys.

Key points

  • SafeDep reported 5,718 malicious commits across 5,561 repositories on May 18, 2026, within a six-hour period.
  • The workflows used forged author identities and base64-encoded bash payloads to collect CI secrets, cloud credentials, SSH keys, tokens, and configuration data.
  • Two variants were reported: SysDiag, triggered on pushes and pull requests, and Optimize-Build, triggered manually through workflow_dispatch.
  • The article describes broader TeamPCP supply-chain activity and says npm invalidated certain write tokens that bypassed two-factor authentication while urging maintainers to use Trusted Publishing.
  • Nine fake Polymarket npm packages reportedly used a postinstall prompt to trick users into entering Ethereum or Polygon private keys, which were sent to an attacker-controlled endpoint.

Article Details

Event Type
Automated software supply-chain campaign targeting GitHub repositories, alongside a separate campaign using fake Polymarket npm packages to steal private keys.
Impact
Megalodon reportedly pushed 5,718 malicious commits to 5,561 repositories in six hours. Its workflows were designed to steal CI secrets, cloud credentials, SSH keys, tokens, and source-code secrets. Separately, nine fake npm packages prompted users to enter Ethereum or Polygon private keys and sent them to an attacker-controlled endpoint.

Indicators of compromise

TypeIndicatorContext
IPV4216[.]126[.]225[.]129C2 server identified by SafeDep as the destination for secrets exfiltrated by the malicious GitHub Actions workflows.
URLhxxps[:]//polymarketbot[.]polymarketdev[.]workers[.]dev/v1/wallets/keysAttacker-controlled endpoint used by the fake npm packages to POST users’ Ethereum or Polygon private keys in plaintext.

MITRE ATT&CK

People

Threat Actors

Malware

Vendors

Products

Countries

Related Articles