Skip to content

Guide · Agent skill

How to use the Offensive CI/CD Pipeline Exploitation agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The offensive-cicd-pipeline skill is a security playbook for an AI agent. It covers how attackers abuse the automated build and deployment systems software teams use, including GitHub Actions, Jenkins, GitLab CI and Azure DevOps. It is aimed at security professionals on authorised engagements, students in lab environments, and defenders testing their own pipelines. After this guide you will know how to install the skill, how to ask for it in plain language, and what it needs before you run it.

Offensive CI/CD Pipeline ExploitationSnailSploit/Claude-Red · MIT

Quick start

  1. 1Download the ZIP. Download the offensive-cicd-pipeline skill ZIP from this page. The skill is MIT licensed and lives under Skills/cicd/offensive-cicd-pipeline in the SnailSploit/Claude-Red repository.
  2. 2Install the skill. Unzip it into ~/.claude/skills/ for personal use or into a project's .claude/skills/ folder, or upload the ZIP under Settings → Capabilities → Skills in the Claude apps.
  3. 3Confirm scope. Check that you have written permission to test the target pipelines before making any request.
  4. 4Install the required tools. Install gato for GitHub examples and jenkins-attack-framework for Jenkins examples, as needed for your engagement.
  5. 5Ask in plain language. Describe the platform, the files you want reviewed and the authorised scope. Claude loads the skill when your request matches its description.
  6. 6Review commands before running. Replace placeholders such as ATTACKER_IP and TARGET_IP deliberately and read each command before execution.
  7. 7Record findings with defences. Ask for detection indicators and countermeasures alongside each finding so the output is useful to the system owner.

What the skill makes the agent do

An agent skill is a folder containing a SKILL.md file with instructions that Claude loads when a request matches the skill's description. This one contains a methodology for attacking CI/CD pipelines. The agent can enumerate pipeline configuration files such as .github/workflows/, Jenkinsfile, .gitlab-ci.yml and azure-pipelines.yml, find places where attacker-controlled input reaches code execution, map token scopes and secrets, and write exploit payloads for each platform.

The source's quick workflow runs in seven steps: enumerate repositories and pipeline configs, identify which events trigger pipelines and which carry attacker-controlled input, map token scopes, select an injection vector for your access level, craft the payload, execute and capture output, then pivot using captured credentials. Each technique is paired with detection indicators and defensive countermeasures.

  • GitHub Actions: expression injection via PR titles and issue bodies, workflow_run abuse, GITHUB_TOKEN over-scoping, composite action supply chain compromise
  • Jenkins: Groovy sandbox escape, script console RCE, Java remoting deserialization, credential dumping, shared library injection
  • GitLab CI: YAML anchor injection, runner registration token abuse, CI variable extraction, protected branch bypass via merge request pipelines
  • Azure DevOps: pipeline agent compromise and service connection theft
  • Mapped to MITRE ATT&CK T1195.002 (Supply Chain Compromise: Compromise Software Supply Chain)

How do you install the offensive-cicd-pipeline skill?

The skill is published in the SnailSploit/Claude-Red repository under Skills/cicd/offensive-cicd-pipeline and is licensed MIT. Download the skill ZIP from this page, then choose one of the two install routes below.

For a personal install, unzip the file into ~/.claude/skills/ so the folder containing SKILL.md sits there. For a single project, unzip it into the project's .claude/skills/ folder instead. In the Claude apps you can instead upload the ZIP under Settings → Capabilities → Skills.

  • Personal: ~/.claude/skills/ (available across your projects)
  • Project: .claude/skills/ inside the project folder (available only there)
  • Claude apps: Settings → Capabilities → Skills, then upload the ZIP

How do you trigger the skill with a natural request?

You do not need a special command. Describe the task in plain language and mention the platform and the authorised scope. Claude loads the skill when the request matches its description, which covers pipeline exploitation, injection vectors, token scope mapping and CI/CD attack paths.

State the engagement context early. The skill expects a authorised test or lab, and naming that context makes the agent's output more focused.

  • "We have written permission to test the CI/CD pipelines of example-org. Enumerate the GitHub Actions workflows in this repo and list any expression injection sinks."
  • "In our lab Jenkins instance, explain how the script console could expose stored credentials and how to detect that access."
  • "Review our azure-pipelines.yml for risky service connection usage and tell me how to defend against theft."

Examples of what the skill covers

The GitHub Actions section includes a grep search that flags workflow lines where event data such as github.event.pull_request.title, github.head_ref or github.event.issue.body is interpolated into ${{ }} expressions. It also shows a vulnerable workflow that uses pull_request_target with a PR title in a run step, and the secure alternative of pinning actions to a commit SHA rather than a tag.

The source includes a command that queries the GitHub API to check token permissions, which helps you see what a compromised workflow could do. Use these examples to learn what to look for in your own workflows, and to write detection rules for them.

grep -rn '\${{.*github\.event\.' .github/workflows/

What do you need before running it?

The skill depends on several tools and inputs. For GitHub examples you need gato, a GitHub Actions attack tool. Jenkins examples need jenkins-attack-framework. Live enumeration needs a GitHub personal access token or other platform credentials. Reverse-shell and exfiltration examples need an attacker-controlled listener host.

The skill runs scripts and uses the network. Treat it as a tool that can touch live systems.

  • gato (GitHub examples)
  • jenkins-attack-framework (Jenkins examples)
  • GitHub personal access token or other platform credentials for live enumeration
  • An attacker-controlled listener host for reverse-shell and exfiltration examples

Safety notes: scripts and network access

Only point this skill at pipelines you own or have written permission to test. The skill supplies exploit code and credential-theft techniques that can cause real breaches and legal liability. Its framing is offensive, so keep your scope document open while you work.

Run it in a lab or an isolated test environment first. Do not paste real production tokens into prompts you would not want logged, and revoke any test credentials when the engagement ends. The skill's examples include placeholders such as ATTACKER_IP and TARGET_IP that you must replace deliberately, so check every command before executing it.

  • Confirm written authorisation and scope before any live request
  • Use lab or isolated environments for practice
  • Rotate or revoke tokens and credentials used during testing
  • Review every generated command before running it

Tips for getting useful results

Give the agent the actual pipeline files. Enumeration and injection-point identification work much better on real YAML or Jenkinsfile content than on descriptions. Name the platform, because the skill covers four and the techniques differ.

Ask for detection and defence alongside each attack. The skill includes detection indicators and countermeasures for each technique, which are often the most useful output for a defender.

  • Paste or attach the specific workflow file rather than describing it
  • Name one platform per request to keep answers focused
  • Ask for detection indicators and countermeasures with every technique
  • Check the skill's requirements before asking for live enumeration

What people use it for

  • Enumerating GitHub Actions workflows in an authorised repository to find expression injection sinks in PR titles or issue bodies.
  • Reviewing a Jenkinsfile or shared library in a lab Jenkins instance to understand script console and credential exposure risks.
  • Checking a GitLab CI configuration for runner registration token handling and protected branch exposure during a red-team exercise.
  • Auditing an azure-pipelines.yml for service connection usage and writing defensive controls against theft.
  • Building detection rules for artifact poisoning and workflow_run abuse in your own pipelines.

Frequently asked questions

How do I install the offensive-cicd-pipeline skill?

Download the skill ZIP from this page and unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder. In the Claude apps you can upload the ZIP under Settings → Capabilities → Skills instead.

Is the offensive-cicd-pipeline skill free?

The skill is licensed under MIT, according to the listing. Check the license file in the repository for the full terms before you reuse or redistribute it.

What tools do I need to use this skill?

GitHub examples need gato, Jenkins examples need jenkins-attack-framework, live enumeration needs a GitHub personal access token or other platform credentials, and reverse-shell or exfiltration examples need an attacker-controlled listener host.

Is this skill safe to use?

It runs scripts and uses the network, and it supplies exploit and credential-theft techniques. Only use it on pipelines you own or have written permission to test, and in lab environments when learning.

Can beginners use the offensive-cicd-pipeline skill to set up CI/CD?

No. The skill assumes security expertise and is not a build or setup tutorial. For general CI/CD configuration, use platform documentation instead.

How is this different from gato or jenkins-attack-framework?

gato and jenkins-attack-framework are attack tools that the skill references for enumeration and exploitation. The skill provides the methodology, payloads, detection indicators and countermeasures that guide how the agent uses them.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you run authorised penetration tests or red-team work against CI/CD systems, are studying pipeline supply-chain attacks in a lab, or want concrete attack paths to test your own pipelines. Skip it if you are looking for general CI/CD setup help or if you are not authorised to test the target, because the content assumes security expertise and supplies working exploit code.

Download the skill