Compromised CI/CD workflows can exfiltrate thousands of secrets across hundreds of repositories
Their open-source cicd-abuse-detector reliably identifies malicious CI/CD changes across GitHub Actions, GitLab CI, and Azure DevOps using regex signals and Claude LLM analysis.
Security & privacy Elastic Security Labs 29 Apr 2026 Tooling Prototype evidence
Published as “CI/CD pipeline abuse: the problem no one is watching”
Why it matters
Detecting malicious CI/CD changes early can prevent large-scale credential theft and downstream supply-chain attacks.
Summary
The team built a CI/CD abuse detector that extracts over 50 regex signals from workflow diffs and feeds them, together with the full diff, to Claude via the Claude Code CLI for structured threat analysis. It runs on a default Ubuntu runner with only Bash and the Claude CLI as dependencies and supports GitHub Actions, GitLab CI, and Azure DevOps. Validation against real-world malicious toolkits (e.g., Nord Stream, Gato-X) and incidents (e.g., GhostAction, HackerBot-Claw) shows it can flag credential-stealing workflow changes that have stolen thousands of secrets. Evidence is limited to test suites and example diffs rather than large-scale production deployments.
What they found 3
- GhostAction campaign stole 3,325 secrets from 327 GitHub users across 817 repositories
“The GhostAction campaign in September 2025 demonstrated this at scale, compromising 327 GitHub users across 817 repositories. 3,325 secrets were stolen through injected workflow files that POST'd credentials to attacker endpoints.”
- HackerBot-Claw attack exposed 33,000 secrets on nearly 7,000 machines after compromising Aqua Security's Trivy repository
“In the most severe case, Aqua Security's Trivy repository was fully compromised, leading to a downstream supply chain attack that exposed 33,000 secrets across nearly 7,000 machines.”
- Shai-Hulud npm worm published over 46,000 malicious packages in its first wave
“Over 46,000 malicious packages were published in the first wave alone.”
Caveats 7
- The regex signals are described as advisory and never gate the LLM analysis, which may allow false negatives.
- Detection relies on Claude LLM output, so accuracy depends on the model and prompt engineering.
- The per-file diff size is capped at 10,000 characters, which could truncate large malicious changes.
- Signals are advisory and do not constitute a hard block, so the system may miss patterns.
- Only 19 malicious example diffs are used for testing; broader coverage is not demonstrated.
- The approach depends on the Claude Code CLI and the availability of the Claude model.
- Diffs larger than 10,000 characters are truncated, potentially omitting malicious content.
What’s new here 4
- Open-source detector that combines regex-based signal extraction with LLM reasoning
- Cross-platform support for GitHub Actions, GitLab CI, and Azure DevOps
- Built-in test suite with 19 malicious and 4 benign example diffs from real incidents
- No Python or custom runtimes required; runs entirely in Bash with the Claude Code CLI