Skip to content
Back to skills

Cicd Pipeline

ASecurity

CI/CD pipeline attacks — Poisoned Pipeline Execution (PPE), GitHub Actions expression/script injection, pull_request_target "pwn requests", self-hosted runner compromise, cache/artifact poisoning, and OIDC-to-cloud abuse. Tier 2 (modifies pipelines / may run attacker code with secrets — gated). Use on accessible CI/CD (GitHub Actions, GitLab CI, Jenkins).

  • 16 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added November 17, 2026
securityrustexpressazuregitapibackendci/cd

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill cicd-pipeline --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cicd Pipeline?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cicd Pipeline
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-cicd-pipeline/badge)](https://www.skillsdirectory.com/skills/anandjogawade-cicd-pipeline)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cicd-pipeline
description: CI/CD pipeline attacks — Poisoned Pipeline Execution (PPE), GitHub Actions expression/script injection, pull_request_target "pwn requests", self-hosted runner compromise, cache/artifact poisoning, and OIDC-to-cloud abuse. Tier 2 (modifies pipelines / may run attacker code with secrets — gated). Use on accessible CI/CD (GitHub Actions, GitLab CI, Jenkins).
---

# CI/CD Pipeline Attacks (PPE, pwn requests, runner compromise)

CI systems run code with privileged tokens and secrets. Attacker-controllable workflow inputs (PR code, issue titles, branch names) can execute in that privileged context — the modern "build is the new prod" attack surface.

## Trigger phrases
`cicd, ci/cd, github actions, pipeline, ppe, poisoned pipeline, pwn request, pull_request_target, self-hosted runner, workflow injection, oidc, gitlab ci`

## Execution gate (Tier 2 — runs code with repo secrets / modifies pipelines)
Ask (a) "authorized to trigger workflows (PRs/commits) that may execute with repo secrets on in-scope repos?" → if yes, run the PoC with a benign OAST callback. If no, (b) "static review only (read workflow YAML, token perms, runner config — no triggering)?" → if yes, audit without execution. Record repos + answers in `./.zazy/scope.md`. Never exfiltrate real secrets — prove with a callback / masked indicator only.

## Method
1. **Enumerate pipelines:** `.github/workflows/*.yml`, `.gitlab-ci.yml`, `Jenkinsfile`, Azure Pipelines YAML, CircleCI. Note triggers, `permissions:`, secret usage, runner labels (`self-hosted`). Tools: `gh api`, `octoscan`, `poutine`, `zizmor` for GitHub Actions static analysis.
2. **Expression / script injection (GitHub Actions):** untrusted fields interpolated into `run:` — `${{ github.event.issue.title }}`, `.pull_request.title/body`, `.head_ref` (branch name), `.comment.body`. A branch named `$(curl <id>.OAST)` or a PR title with backticks executes on the runner. Static grep: inline `${{ github.* }}` inside `run:`.
3. **`pull_request_target` pwn request:** workflow runs with **write token + secrets** but checks out untrusted PR head → PR author gets code exec. Look for `pull_request_target` + `actions/checkout` with `ref: ${{ github.event.pull_request.head.sha }}` + running PR-controlled scripts/build. PoC (gated): PR that edits a script the workflow runs or references `${{ secrets.* }}` into an OAST callback.
4. **Self-hosted runner abuse:** non-ephemeral runners on public repos → persistence, cross-job contamination, secret harvesting from the host. Fork-PR jobs landing on self-hosted runners are high-risk.
5. **Cache / artifact poisoning:** write to a shared cache key or upload a poisoned artifact a later privileged job consumes.
6. **OIDC-to-cloud abuse:** over-broad `sub`/audience trust on the cloud role lets a workflow (or forked PR) assume a cloud identity → `cloud-pentest`.

## Modern / rare techniques
- **Dependabot/bot-triggered pwn requests** — bot context carries write perms; untrusted metadata flows into `run:`.
- **Composite/third-party actions pinned by tag (not SHA)** — upstream tag repoint = code swap; check `uses: org/action@v1` vs `@<sha>`.
- **`GITHUB_TOKEN` over-permission** (default write) → push, release, or packages tampering.
- **Secret exfil via logs** masked only by name — encoded/split values slip past masking (→ `cicd-secrets`).

## Bypass / evasion
Keep PoCs benign (OAST only); test on a fork/branch within scope; log-masking evasion is for demonstrating the gap, not real exfil.

## Escalation / chaining
Runner RCE → repo write/supply-chain (`supply-chain`, `dependency-confusion`), secret theft (`cicd-secrets`), OIDC → `cloud-pentest`, release/package poisoning to downstream users.

## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP). `gh` CLI, zizmor/octoscan/poutine for static analysis, interactsh for callbacks. See `zazy-orchestrator`.

## Verification (background, before reporting)
Confirm execution with an OAST callback from the runner and reproduce; for static-only review, cite the exact YAML lines. Report true positives only.

## Evidence
Workflow file + vulnerable lines, trigger used, OAST callback from runner (if gate allowed), token permissions/runner type. Remediation: use `pull_request` not `_target` for untrusted code, pass untrusted input via `env:` not inline `${{ }}`, least-priv `permissions:`, pin actions by SHA, ephemeral/isolated runners, scope OIDC trust tightly, require approval for fork workflows.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.