hunt-cicd is a skill for Claude covering CI/CD pipeline security: GitHub Actions workflow injection through pull_request_target and template expansion into a shell step, self-hosted runner poisoning, OIDC trust-policy abuse against cloud IAM roles, Jenkins script-console RCE and the CVE-2024-23897 file-read chain, GitLab CI runner-token registration, Terraform state file leakage, and secrets leaking through build logs and artifacts.
The skill opens with a proof gate that lists the most common over-reported false positives in this class, such as a login page mistaken for an open script console, before walking through each platform in its own phase with fingerprinting, exploitation and validation steps. It names the specific CVEs and research write-ups behind each technique and gives a chain table from finding to severity. It is for assets covered by a program or engagement you are authorized to test.
What You Get
- A proof gate naming the most common CI/CD false positives before any testing begins, such as a Jenkins login page mistaken for an open script console
- Phased methods for Jenkins script-console RCE and CVE-2024-23897, GitHub Actions template injection and runner poisoning, OIDC trust-policy abuse, GitLab CI runner tokens, and Terraform state exposure
- A distinction between template-expansion injection and environment-variable exfiltration in GitHub Actions, including the correct shell commands for reading a token versus a file
- A reconnaissance script pattern for enumerating an organization’s workflows for dangerous trigger and sink combinations
- A validation discipline section and chain table tying each finding, from an open script console to a leaked Terraform secret, to its likely severity
Common Use Cases
- Checking whether a GitHub Actions workflow using pull_request_target passes untrusted pull request data into a shell step
- Testing whether a Jenkins instance exposes an unauthenticated script console or is vulnerable to the CVE-2024-23897 file-read chain
- Reviewing an organization’s OIDC trust policy for a wildcard subject claim that lets any workflow assume a privileged cloud role
What Makes It Unique
The skill opens with its own false-positive gate before any exploitation guidance, naming four specific over-reported patterns in this class, and repeats a validation discipline section at the end that lists exactly what counts as proof for each finding type. It also draws out a distinction that catches many CI/CD testers off guard: a GitHub Actions secret is a shell variable, read with printenv, and a payload that tries to cat it as a file produces nothing.
Under The Hood
The skill is a single SKILL.md of guidance with no bundled scripts. Following it, the agent sends HTTP requests to Jenkins endpoints such as /script and /scriptText, reads an organization’s workflow files and run logs through the GitHub API and gh CLI, probes cloud storage endpoints for exposed Terraform state, and may pull and inspect container image layers. It can also run external tools such as Jenkins CLI, trufflehog, actionlint and zizmor against the target. Use it only against assets you are authorized to test.