Skip to content

Guide · Agent skill

How to use the Offensive CI/CD Secrets agent skill: install and scope

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

The offensive-cicd-secrets skill is an MIT-licensed attack methodology file for an AI agent. It covers how secrets can be extracted from CI/CD pipelines on platforms such as GitHub Actions, GitLab CI, Jenkins and Azure DevOps, and it maps the material to MITRE ATT&CK T1552. This guide is for authorized penetration testers, red team operators and security engineers who need to know what the skill does, how to install it and how to keep its use inside written permission. After reading, you will be able to install the skill, ask for work in plain language and set the boundaries that should apply every time.

Offensive CI/CD Secrets ExtractionSnailSploit/Claude-Red · MIT

Quick start

  1. 1Download the ZIP. Get the offensive-cicd-secrets ZIP from this page. The skill is a single SKILL.md file.
  2. 2Unzip into a skills folder. Extract it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder for one project.
  3. 3Or upload in the Claude apps. In the Claude apps, open Settings, go to Capabilities, then Skills, and upload the ZIP.
  4. 4Confirm written scope. Before any request, write down the systems, pipelines and accounts that are in scope under your signed authorization.
  5. 5Ask in plain language. Describe the authorized task, the platform and the goal, then review each command the agent proposes before it runs.

What the skill makes the agent do

An agent skill is a folder containing a SKILL.md file. When a skill is installed, the agent reads that file as guidance when a request matches its description. This skill is written from an attacker's point of view. Its SKILL.md describes a workflow: gain code execution in a pipeline, enumerate the runner environment, check environment variables and secrets managers, review build logs and caches, test OIDC trust where cloud integration exists, validate what is recovered, and then consider pivoting.

The source lists coverage areas including environment variable exposure in build contexts, misconfigured vault and secrets-manager integrations, runner and agent token abuse, OIDC federation trust between CI/CD providers and clouds, build log leakage, cache poisoning, platform credential stores, Azure DevOps and GCP service connections, and Docker registry credentials. The file's own description says each section covers enumeration, extraction and post-exploitation guidance.

This page does not reproduce the skill's commands or exfiltration techniques. Read the SKILL.md itself if you need the detail, and only use it on systems you are authorized to test.

Install the skill from the ZIP

Download the ZIP for the skill from this page. The skill has a single file, SKILL.md, so the archive is small. Unzip it so that the skill folder sits inside the skills directory that applies to you.

For a personal install across your projects, place the folder in your user skills directory. For a single project, place it in that project's own .claude folder so it is available only there. You can also upload the ZIP through the Claude apps under Settings, then Capabilities, then Skills.

  • Personal install: unzip into ~/.claude/skills/
  • Project install: unzip into the project's .claude/skills/ folder
  • Claude apps: Settings, then Capabilities, then Skills, then upload the ZIP
~/.claude/skills/

Trigger the skill with natural requests

You do not need a special command. Describe the task in plain language that matches the skill's subject, such as reviewing secrets exposure in a CI/CD pipeline you have been authorized to test. Include the scope, the platform and the goal, so the agent can keep its work tied to the engagement.

Good requests name the authorization and the outcome. Vague requests about getting into someone's pipeline should be refused, and the agent should ask for scope before doing anything that touches a live environment.

  • Under our signed statement of work, map which secrets in the GitHub Actions pipeline for the staging repo are exposed to untrusted pull requests, and report the findings.
  • Review how our GitLab CI jobs read Vault secrets and flag over-permissioned tokens for the client report.
  • Explain which T1552 sub-techniques apply to our Jenkins credential setup so we can write detection rules for them.

Keep use inside written authorization

The skill is a detailed attack playbook. Its own description states that it is not meant for systems you do not own or lack written authorization to test, and that using it against others is illegal. Treat written scope as a precondition, not a formality. Confirm which repositories, pipelines, runners and cloud accounts are in scope before the agent runs anything.

Avoid running recovered secrets against systems outside the agreed scope. Record what you touched and why, and stop when the engagement rules say to stop.

  • Confirm written scope and rules of engagement before the first request
  • Use test or staging pipelines where the client agrees to it
  • Do not exfiltrate real credentials outside the engagement's agreed channels
  • Report and rotate any real secrets you find

Requirements and runtime behaviour

The source lists no prerequisites. The skill does not run scripts and does not use the network by itself. It is a set of written instructions. Any commands the agent runs will execute in whatever environment you give it, so the real requirements depend on your own tools and access, and the blast radius depends on what you allow.

Because the file is guidance rather than code, the main safety question is what the agent is permitted to execute. Run it in a sandboxed, authorized test environment, and review each command before it runs.

  • Listed requirements: none
  • Runs scripts: no
  • Uses network: no (the skill file itself)

Tips for defenders and detection engineers

If your goal is detection, use the skill to understand attacker paths, then build alerts around the observable events: unexpected reads of secret stores, unusual OIDC token requests, unexpected outbound traffic from build jobs, and secrets appearing in logs or caches. Test those alerts in a lab you own.

If your goal is remediation, the skill is a poor starting point. It focuses on exploitation and gives little guidance on fixing the weaknesses it describes. Look for platform hardening guides from the CI/CD vendor and your cloud provider instead.

  • Map each attack path to a log source you can monitor
  • Validate alerts in a lab you own
  • Use vendor hardening guidance for fixes

What people use it for

  • Mapping which CI/CD secrets are exposed to untrusted pull requests during an authorized assessment
  • Reviewing Vault or cloud secrets-manager permissions for over-scoped CI tokens
  • Building detection rules for T1552 credential access in build pipelines
  • Explaining credential theft paths to a red team before a scoped exercise

Frequently asked questions

Is the offensive-cicd-secrets skill free?

The source file is released under the MIT licence. The licence is listed on the item page, so check the licence text there for the exact terms.

How do I install an agent skill like this?

Download the ZIP, then unzip it into ~/.claude/skills/ for personal use or into a project's .claude/skills/ folder. You can also upload the ZIP in the Claude apps under Settings, then Capabilities, then Skills.

What does the offensive-cicd-secrets skill require?

The source lists no requirements. It does not run scripts and does not use the network itself. Any commands the agent runs depend on the tools and access in your own environment.

Does this skill help me secure my CI/CD pipelines?

Not directly. It is written from an attacker's perspective and gives little guidance on remediation. For secure pipeline setup, use the CI/CD platform's and cloud provider's hardening documentation.

Can I use it on a client's pipeline without permission?

No. The skill's own description says it should not be used on systems you do not own or lack written authorization to test, and that using it against others is illegal.

What is a good alternative if I only want to learn about CI/CD security?

Start with defensive material from your CI/CD vendor and cloud provider, and with MITRE ATT&CK T1552 as a reference for credential access. These cover prevention and detection rather than step-by-step exploitation.

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 are an authorized penetration tester, red team operator or detection engineer who needs a structured view of how CI/CD secrets get stolen, and you can keep every action inside written scope. Pick something else if you want to learn secure pipeline setup or need remediation steps, since this file focuses on exploitation and offers little on fixing it.

Download the skill