A large-scale, automated supply chain attack campaign named "Megalodon" has compromised the CI/CD pipelines of over 5,500 public GitHub repositories. In a rapid-fire assault lasting only six hours, the attackers pushed 5,718 malicious commits to 5,561 unique repositories. These commits were designed to modify CI/CD workflow files (e.g., GitHub Actions), injecting malicious steps into the automated build and deployment processes. The initial access vector for this widespread attack was the use of developer credentials harvested by information-stealing malware. This incident demonstrates a significant evolution in supply chain attacks, moving towards highly automated, broad-spectrum campaigns that leverage previously compromised developer accounts at scale. It underscores the critical risk posed by infostealer malware to the entire software development ecosystem.
The "Megalodon" campaign is characterized by its speed and scale. The threat actor automated the process of using stolen GitHub credentials to push malicious code. The core of the attack was not to poison a single popular library, but to backdoor the build process of thousands of individual projects simultaneously.
.github/workflows/*.yml). The specific payload of these malicious workflows was not detailed in the articles, but such attacks typically aim to steal secrets (like GITHUB_TOKEN, AWS_ACCESS_KEY_ID) from the build environment and exfiltrate them to an attacker-controlled server.The attack follows a clear, repeatable pattern that is ideal for automation:
curl or wget) that sends all environment variables—which often contain sensitive secrets—to the attacker's server.T1078 - Valid Accounts: The entire campaign is predicated on the use of legitimate, stolen developer accounts.T1195.001 - Compromise Software Dependencies and Development Tools: By modifying CI/CD workflows, the attacker compromises the development toolchain.T1552.006 - Group Policy Preferences: While this is specific to Windows, the concept of modifying configuration files (CI/CD workflows) to steal credentials is the same.T1059.004 - Unix Shell: The malicious workflow steps likely use basic shell commands to exfiltrate data.T1500 - Compile After Delivery: The malicious code is not executed until the CI/CD pipeline compiles or runs the project.The "Megalodon" campaign represents a shift from targeted supply chain attacks to a high-volume, opportunistic model.
No specific IOCs such as commit hashes, attacker domains, or IP addresses were provided in the source articles.
.github/workflows/ directory. Enable GitHub's push protection and secret scanning features. Monitor account security logs for logins from unusual IP addresses or locations. Use EDR on developer machines to detect the presence of infostealer malware.New analysis attributes Megalodon attack to TeamPCP, revealing a dual motivation including geopolitical disruption with wiper malware deployed against targets in Iran and Israel.
New analysis explicitly attributes the 'Megalodon' supply chain attack to the threat actor TeamPCP. Beyond financial gain, the campaign is now understood to have a geopolitical dimension, with evidence of destructive wiper malware deployed against targets in Iran and Israel. Attackers utilized throwaway GitHub accounts like 'build-bot' and 'ci-bot' to obscure their actions. The update also provides more detailed 'Cyber Observables - Hunting Hints' and expanded detection and mitigation strategies for CI/CD compromises, emphasizing the need for robust log analysis and commit monitoring.
New technical details on the malicious workflow, including a code example for secret exfiltration, and additional mitigation strategies like OIDC.
The new article provides a hypothetical example of the malicious GitHub Actions workflow used for secret exfiltration, showing how attackers collect and send sensitive data to their servers. It also details additional mitigation strategies, such as using OpenID Connect (OIDC) for short-lived credentials and enforcing signed commits, to enhance security against such supply chain attacks. This adds valuable technical depth to the understanding of the attack methodology and defense.
The 'Megalodon' campaign compromises over 5,500 GitHub repositories within a six-hour window.
Hudson Rock publishes analysis linking the attack to credentials stolen by infostealer malware.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.