hunt-cicd
Installation
SKILL.md
Hunt: CI/CD Pipeline Attacks
Assumes hunt-core for the scope gate, two-account rule, confirmation gate, enumeration limits, stop conditions, wiki protocol, FIND output, and Deadends. Do not re-derive any of that here.
Wiki
qmd_query "CI/CD GitHub Actions pull_request_target pwn request script injection self-hosted runner OIDC cache poisoning" via wiki-search MCP
Hub: [[cloud-moc]] (live index). Primary page: [[cicd-github-actions]]. Payload arsenal: wiki/payloads/cicd.md.
Anchors: [[supply-chain-attacks]], [[cloud-oidc-trust-abuse]] (OIDC role assumption off-box), [[cicd-attacks]] (cross-platform CI/CD).
Attack surface (ranked)
- Pwn requests (
pull_request_target/workflow_run) - the highest-value bug. A workflow that runs onpull_request_target, checks out the fork HEAD, and holds secrets executes attacker code in the trusted (secret-bearing) context. Fork, inject a build step, open a PR, exfilenv/ secrets /GITHUB_TOKEN. - Script injection via untrusted
${{ }}-github.event.*values (PR title, branch name, issue body, review comment) interpolated directly into arun:step. Attacker controls the string, so the string becomes shell. - Self-hosted runner takeover - non-ephemeral runners persist state between jobs and are shared across a repo/org pool. A pwn request or script injection landing on one is persistence and cross-repo reach, not a one-shot.
- OIDC-to-cloud token theft -
permissions: id-token: writemints a cloud-assumable JWT. Weak trust-policysubscoping (wildcard repo/ref) lets a fork job assume the role off-box. Chains tohunt-cloud.