pipeline-security

pipeline-security is a skill for Claude Code, Codex from hasithaishere/buildkite-developer-toolkit. It costs 135 tokens per session (1,442 once invoked), scanned A, original, MIT.

A security-review guide for Buildkite pipelines and self-hosted agents. Buildkite is a continuous-integration system, and its agents are machines that run automated build and test jobs.

In plain words
What is it for?
Use it to review Buildkite configuration and agents for exposed secrets, unsafe plugins, weak identity controls, untrusted code, and missing security protections.
Why use it?
It helps identify ways untrusted pipeline code, plugins, secrets, or shared agents could be used to run unauthorised commands or access protected systems.

Skill for Claude CodeCodex

Part of the buildkite-developer-toolkit plugin — 7 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hasithaishere/buildkite-developer-toolkit/pipeline-security
Any agent
npx skills add hasithaishere/buildkite-developer-toolkit --skill pipeline-security
Clone the repo
git clone --depth 1 https://github.com/hasithaishere/buildkite-developer-toolkit

Made for: Claude Code, Codex.

Or install buildkite-developer-toolkit, the plugin that ships this one along with the rest of its 7 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 pipeline-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/hasithaishere/buildkite-developer-toolkit/pipeline-security.svg)](https://agentmods.dev/skills/hasithaishere/buildkite-developer-toolkit/pipeline-security)
Your own site
<a href="https://agentmods.dev/skills/hasithaishere/buildkite-developer-toolkit/pipeline-security"><img src="https://agentmods.dev/badge/skills/hasithaishere/buildkite-developer-toolkit/pipeline-security.svg" alt="Measured on agentmods" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,442 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00135 $0.01442
Opus 5 $0.00068 $0.00721
Sonnet 5 $0.00027 $0.00288
Haiku 4.5 $0.00014 $0.00144

Measured 4d ago against content hash fb8b3ba037ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pipeline-security scanned grade A with 1 finding 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scan-pipeline.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`privileged`, `propagate-environment`, build-metadata injection, `curl|bash`)
skills/pipeline-security/SKILL.md · 111 lines

How it starts

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

Buildkite pipeline & CI/CD security review

You are a security engineer auditing a Buildkite pipeline and its agents. The guiding rule: secrets never live in YAML or logs, code from untrusted sources never reaches secrets or privileged infrastructure, and the agent enforces what it will run.

Verify specifics against the docs:

Threat model

  • Pipeline YAML and pipeline upload can come from untrusted contributors (fork/PR builds). Assume an attacker can propose steps, commands, env, and plugin refs.
  • Agents are shared, privileged infrastructure — they hold (or can mint) secrets and can reach your cloud/registries and other jobs' state.
  • Plugins and the pipeline are a supply chain — a moved tag or smuggled step is RCE on your agents.

How to run the scan

bash "${CLAUDE_SKILL_DIR}/scripts/scan-pipeline.sh" <repo-or-pipeline-path>

Static checks (unpinned/mutable plugins, inline secrets, Docker socket, privileged, propagate-environment, build-metadata injection, curl|bash) plus gitleaks when installed. Exits non-zero on any HIGH (--no-fail to report-only). Wire it into CI. Full catalog: reference/vulnerability-catalog.md.

1. Secrets

  • Never in pipeline.yml, step env:, or command strings; never echoed.
  • Prefer OIDC (short-lived, keyless) over static credentials; bind the cloud trust policy to specific claims (org / pipeline slug / branch).
  • Otherwise fetch at runtime from a managed store (AWS/GCP Secrets Manager, Vault) or the Buildkite secrets feature, in an environment/pre-command hook, scoped to where needed. Rely on agent redaction as a backstop, not a primary control.

Read the full file on GitHub · 111 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 111 lines · 135 tokens per session scan A fb8b3ba037ae

Subscribe to this mod's changes

pipeline-security is a skill published in the GitHub repository hasithaishere/buildkite-developer-toolkit (2 stars, last pushed 1mo ago), licensed MIT. It adds 135 tokens to every session and 1,442 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories