Join our Newsletter — 33% off our NHI Course

Why did GhostAction's GitHub workflows steal 3,325 secrets?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20842
Topic starter  

TL;DR: Malicious GitHub workflows became a secret-theft path across 327 users and 817 repositories, StepSecurity found, exposing 3,325 secrets. CI/CD needs workflow-level trust controls because a merged job can inherit secret access and move beyond code review alone.

Editorial analysis by NHI Mgmt Group, based on content published by StepSecurity: “GhostAction Campaign: Over 3,000 Secrets Stolen Through Malicious GitHub Workflows”.

By the numbers:

  • GhostAction compromised 327 GitHub users across 817 repositories.
  • The campaign exfiltrated 3,325 secrets including PyPI, npm, and DockerHub tokens.

Key questions

Q: Why do compromised developer accounts create outsized risk in software delivery pipelines?

A: Compromised developer accounts are dangerous because pipeline trust often exceeds the visible permissions of the account itself.

Q: What are the signs that a GitHub Actions workflow has been exposed to secret theft?

A: Look for unexpected outbound network requests, secret values appearing in build logs, and workflow runs that reference unfamiliar commit hashes or altered Action tags.

Q: What fails first when a malicious GitHub Actions workflow is merged?

A: The first failure is trust, because the workflow itself becomes executable code with access to secrets before reviewers recognise it as hostile.

Practitioner guidance

  • Require pull request review for workflow changes Block direct merges to workflow files and route every automation change through protected branches so a compromised account cannot silently add secret-exfiltration logic.
  • Restrict secret access by workflow trust level Allow secrets only to reviewed and approved workflows, and deny unreviewed jobs from reading repository-level credentials or deployment tokens.
  • Lock down runner selection paths Prevent workflows from selecting runners outside approved labels and monitor for unexpected GitHub-hosted execution in repositories that should not use it.

Bottom line: GhostAction shows that a trusted-looking workflow can become the delivery mechanism for credential theft inside CI/CD.

Glossary terms: Malicious Workflow, Secrets Exfiltration, Workflow trust boundary, Runner Policy

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 2 weeks ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 21330
 

Workflow trust, not just secret storage, is the real control plane here: GhostAction shows that a repository can remain structurally vulnerable even when secrets are not publicly exposed. If unreviewed workflow changes can execute with secret access, the control failed before the theft began. Practitioners should treat workflow approval as part of identity governance, because it governs which automation is trusted to act.

A few things that frame the scale:

A question worth separating out:

Q: How should teams contain malicious workflow abuse after discovery?

A: Immediately disable the affected workflow, rotate every secret reachable from the repository, review recent runner activity, and check whether the same account modified other repositories. Containment should focus on stopping further secret access and removing the attacker’s ability to reuse the same automation path elsewhere.

👉 Read our full editorial: GhostAction shows how GitHub workflows can turn into secret theft



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.