GitHub Actions Workflow Compromises Expose CI/CD Secrets and Enable RCE
Supply Chain Risk · 5 sources · Updated 3mo ago · First seen Sep 5, 2025

The GhostAction supply-chain campaign compromised 327 GitHub users and inserted malicious workflows into 817 repositories, stealing 3,325 CI/CD secrets. Workflows masquerading as “Github Actions Security” sent PyPI, npm, DockerHub, GitHub, AWS, database, and Cloudflare credentials by HTTP POST to attacker infrastructure, including 45.139.104.115; a later wave added exfiltration domains and hundreds of commits. Although no malicious package releases had been confirmed at disclosure, 24 affected packages—nine npm and 15 PyPI—remained at immediate risk, while some stolen credentials were reportedly already abused.
CI/CD workflows are also vulnerable to remote-code-execution exposure from unsafe pull_request_target configurations, artifact-token leaks such as ArtiPACKED, and attacks including HackerBot-Claw. Elastic Security Labs released the open-source cicd-abuse-detector to review GitHub Actions, GitLab CI, and Azure DevOps changes before merge or deployment, extracting more than 50 signals from pipeline files and analyzing diffs for secret exfiltration, privileged pull-request triggers, permission escalation, self-hosted-runner targeting, supply-chain manipulation, and timestamp abuse. The tool can issue pull-request, issue, Slack, and Elasticsearch alerts and optionally block risky pull requests.
Why it matters
Impact assessment
GhostAction demonstrated high-impact compromise of CI/CD identities: 327 GitHub users and 817 repositories were affected, with 3,325 secrets stolen. Affected organizations include maintainers and users of npm, PyPI, DockerHub, GitHub, AWS, database, and Cloudflare-integrated projects; stolen publishing and cloud credentials can enable package backdoors, cloud access, data theft, and downstream supply-chain compromise.
- Known abuse: affected developers reported active exploitation of stolen AWS access keys and database credentials.
- Package exposure: 24 packages were at immediate risk at disclosure, comprising nine npm and 15 PyPI packages. No malicious package release was confirmed in the disclosed GhostAction window.
- Scope: GhostAction was widespread across public repositories and likely included private repositories owned by compromised maintainers. The initial account-compromise vector was not established.
- Operational consequence: unsafe GitHub Actions configurations can convert an untrusted pull request into code execution on privileged runners, exposing repository secrets, cloud credentials, release credentials, and self-hosted-runner environments.
- Related exposure: artifact uploads containing the full workspace can expose
.git/configand aGITHUB_TOKEN; developer environment files such as.vscode/tasks.jsoncan execute code when a repository is opened.
Affected populations
- Organizations operating GitHub Actions, GitLab CI, or Azure DevOps pipelines.
- Teams using long-lived repository, package-registry, cloud, database, DockerHub, or Cloudflare credentials in CI/CD.
- Projects using
pull_request_target, self-hosted runners, broad workflow permissions, unpinned third-party actions, or full-workspace artifact uploads. - Package maintainers whose CI credentials can publish to npm or PyPI.


