sekolah76/syadagentic/cicd-security
Claude Code and agent skill by sekolah76/syadagentic
- community
Checking that the SKILL.md file is still in the repository.
CI/CD pipeline security hunting — GitHub Actions workflow injection, secret exfiltration, self-hosted runner poisoning, dependency confusion, OIDC token theft, and supply chain attacks. Covers sisakulint scanning, manual workflow analysis, and chaining CI/CD bugs into critical findings. Use when a target has public repos, GitHub Actions, CircleCI, Jenkins, or GitLab CI.
Install
npx vskill@latest install sekolah76/syadagentic/cicd-securitySKILL.md
The same SKILL.md was published earlier as shuvonsec/claude-bug-bounty/cicd-security.
CI/CD SECURITY — Pipeline Attack Surface
CI/CD pipelines are high-value targets — a single workflow injection can give you code execution on the build server, read ALL org secrets, and push backdoored releases to production.
0. QUICK KILL CHECKLIST
1. TOOL — cicd_scanner.sh
Output: findings/<target>/cicd/scan_results.txt + summary.txt
What sisakulint finds:
- Script injection via untrusted context
- Unpinned actions (tag instead of SHA)
pull_request_targetmisuse- Dangerous patterns (
eval,curl | bash, etc.) - Exposed secret names in
run:blocks
2. WORKFLOW INJECTION (Critical — Most Common Paid Bug)
What It Is
GitHub Actions exposes PR/issue data as context variables. If injected into a run: block without sanitization, an attacker controls shell code.
Vulnerable Pattern
Safe Pattern
Injectable Contexts (always check these)
PoC Payload
Detection Grep
3. pull_request_target MISUSE (Critical)
What It Is
pull_request_target runs in the context of the BASE repo (has secrets) but can be tricked into checking out and running attacker code.
Vulnerable Pattern
Why It's Critical
pull_request_targethas access to secrets- Checkout uses the PR's code
- Any
run:step executes attacker-controlled code with access to all org secrets
Detection
4. SECRET EXFILTRATION
Secrets That Appear in Logs
GITHUB_TOKEN Abuse
The auto-generated GITHUB_TOKEN can be used to:
- Push code to branches
- Create releases
- Read all private repo content
- Approve PRs (if permissions allow)
PoC — Exfil via DNS
5. SELF-HOSTED RUNNER POISONING
Why It Matters
Public repos with self-hosted runners allow ANY fork to queue jobs on internal machines.
Detection
Exploit Path
- Fork public repo that uses self-hosted runners
- Open PR with malicious workflow step
- Job runs on internal self-hosted runner
- Access internal network, read instance metadata, exfil secrets
PoC Workflow Addition
6. OIDC TOKEN THEFT / CLOUD CREDENTIAL ABUSE
What It Is
GitHub Actions can request short-lived cloud credentials via OIDC. Misconfigured trust policies allow any branch/repo to claim elevated AWS/GCP/Azure roles.
Detection
Exploit: Overly Broad AWS Trust Policy
→ Any branch in the org can assume this role.
What to Check
7. DEPENDENCY CONFUSION / SUPPLY CHAIN
Unpinned Actions
Dependency Confusion Attack
- Find
package.jsonorrequirements.txtthat references internal packages - Check if the internal package name is published on npm/PyPI
- Publish a malicious package with a higher version number
- Build server installs the public (malicious) one instead
Detection
8. BUG CLASS TABLE
| Bug | Trigger | Severity | CVSS Range | |
|---|---|---|---|---|
| Workflow injection via PR title | ${{ github.event.pull_request.title }} in run: | Critical | 9.0–10.0 | |
pull_request_target + checkout | Accepts PRs from forks | Critical | 9.0–10.0 | |
| Self-hosted runner on public repo | runs-on: self-hosted + public repo | High | 7.5–9.0 | |
| OIDC trust too broad | Any-branch/any-repo claim | High | 7.5–8.5 | |
| Secret in log | echo ${{ secrets.X }} | Medium | 5.5–7.0 | |
| Unpinned action | @main / @v1 tag | Low–Medium | 3.0–5.5 | |
| Artifact poisoning | Unsigned artifact download + exec | Medium | 5.5–7.0 | |
GITHUB_TOKEN write abuse | Push to protected branch | Medium | 5.5–7.0 | |
| Dependency confusion | Internal pkg not on public registry | High | 7.5–9.0 | |
workflow_dispatch injection | Unvalidated inputs in run: | Medium–High | 6.0–8.0 |
9. CHAINING CI/CD BUGS
Chain A: IDOR → CI/CD Secret Read
Chain B: XSS → GitHub Token Theft
Chain C: Supply Chain → Production Push
10. REPORT TEMPLATE
11. SCOPE NOTES
- Most bug bounty programs scope public repos only — confirm before touching private org repos.
- Self-hosted runner attacks require a successful workflow run, which means opening a real PR — confirm the program allows this.
- Never trigger a workflow that could affect production infrastructure without explicit written permission.
- Always check
SECURITY.mdor the program policy for CI/CD-specific scope language.
12. TOOLS REFERENCE
| Tool | Purpose | Install | |
|---|---|---|---|
sisakulint | Lint GitHub Actions workflows for security issues | bash install_tools.sh | |
trufflehog | Find secrets leaked in git history / workflow logs | bash install_tools.sh | |
gitleaks | Scan repos for hardcoded secrets | bash install_tools.sh | |
gh CLI | Download workflow logs, list secrets, trigger runs | brew install gh | |
nuclei | CI/CD-specific templates | -tags cicd | |
secrets_hunter.sh | Wrapper for all three secret scanners | bash tools/secrets_hunter.sh |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingarsenal-skills/skills-lengkap/bug-bounty/bug-bounty/skills/cicd-security/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sekolah76/syadagentic/cicd-security)