AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The owasp-cicd skill provides a machine-readable reference library derived from the OWASP Top 10 CI/CD Security Risks project. It is designed to assist AI agents in evaluating pipeline security by offering standardized definitions, risk assessments, and remediation strategies for common vulnerabilities such as dependency chain abuse, insufficient flow control, and inadequate identity management. Each vulnerability is documented with specific checklists, attack scenarios, and defensive controls to support security auditing and hardening of CI/CD environments.
What it does
- Provides structured documentation for the 10 most critical CI/CD security risks.
- Offers vulnerability checklists to identify potential exposure in pipeline configurations.
- Details specific prevention controls and remediation steps for each risk category.
- Includes realistic attack scenarios to help visualize potential exploitation paths.
- Supplies detection guidance to help identify security signals within CI/CD systems.
When to use it
- When auditing CI/CD pipeline configurations for security gaps.
- When developing security policies for automated build and deployment processes.
- When assessing the risk profile of existing supply chain and deployment workflows.
- When training or prompting an agent to perform security reviews of infrastructure-as-code or pipeline definitions.
Advantages
- Standardized, machine-readable format facilitates integration into automated security workflows.
- Derived from the authoritative OWASP CI/CD Security project.
- Covers both immediate remediation and long-term defensive strategies.
- Provides clear, actionable guidance for complex security topics like artifact integrity and credential hygiene.
Usage examples
- “What are the risks associated with insufficient flow control in our CI/CD pipeline?”
- The agent retrieves the CICD-SEC-1 reference, outlining risks like unauthorized code pushes and deployment bypasses, and provides a checklist to verify branch protection rules.
- “How can we prevent dependency chain abuse in our build process?”
- The agent accesses the CICD-SEC-3 documentation to provide specific prevention controls and detection methods for securing the software supply chain.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/microsoft/owasp-cicd/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip owasp-cicd.zip -d .agents/skills
Documentation by Microsoft
OWASP® CI/CD Top 10 — Skill Entry
This SKILL.md is the entrypoint for the OWASP CI/CD Top 10 skill.
The skill encodes the OWASP Top 10 CI/CD Security Risks as structured, machine-readable references that an agent can query to identify, assess, and remediate CI/CD pipeline security risks.
Normative references (CI/CD Top 10)
Skill layout
SKILL.md— this file (skill entrypoint).references/— the CI/CD Top 10 normative documents.00-vulnerability-index.md— index of all vulnerability identifiers, categories, and cross-references.01through10— one document per vulnerability aligned with OWASP CI/CD Security numbering.
Third-Party Attribution
Copyright © OWASP Foundation. OWASP® Top 10 CI/CD Security Risks content is derived from works by the OWASP Foundation, licensed under CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/). Source: https://owasp.org/www-project-top-10-ci-cd-security-risks/ Modifications: Vulnerability descriptions restructured into agent-consumable reference documents with added detection and remediation guidance. OWASP® is a registered trademark of the OWASP Foundation. Use does not imply endorsement.
Files
- ATTRIBUTION.mdAdded by AutoGineer975 B
- LICENSEAdded by AutoGineer17.9 KiB
- SKILL.md2.6 KiB
- references/00-vulnerability-index.md2.8 KiB
- references/01-insufficient-flow-control-mechanisms.md5.2 KiB
- references/02-inadequate-identity-access-management.md6.0 KiB
- references/03-dependency-chain-abuse.md5.9 KiB
- references/04-poisoned-pipeline-execution.md6.9 KiB
- references/05-insufficient-pbac.md5.6 KiB
- references/06-insufficient-credential-hygiene.md6.1 KiB
- references/07-insecure-system-configuration.md5.9 KiB
- references/08-ungoverned-usage-of-3rd-party-services.md6.5 KiB
- references/09-improper-artifact-integrity-validation.md5.7 KiB
- references/10-insufficient-logging-visibility.md6.5 KiB
references/05-insufficient-pbac.md
title: 'CICD-SEC-5: Insufficient PBAC' description: OWASP CI/CD Top 10 reference for insufficient pipeline-based access controls including overprivileged execution nodes and shared environments
05 Insufficient PBAC
Identifier: CICD-SEC-5:2025 Category: Access Controls
Description
Pipeline-Based Access Controls (PBAC) refer to the context in which each pipeline, and each step within that pipeline, is running. Given the highly sensitive and critical nature of each pipeline, it is imperative to limit each pipeline to the exact set of data and resources it needs access to.
Pipeline execution nodes carry out commands specified in the pipeline configuration, performing sensitive activities including accessing source code, obtaining secrets from vaults and cloud identity services, creating and deploying artifacts, and connecting to production systems. When running malicious code within a pipeline, adversaries leverage insufficient PBAC to abuse the permissions granted to the pipeline for lateral movement within or outside the CI/CD system.
PBAC includes controls relating to access within the pipeline execution environment (code, secrets, environment variables, other pipelines), permissions to the underlying host and other pipeline nodes, and ingress and egress network filters.
Risk
Malicious code running in the context of a pipeline execution node has the full permissions of the pipeline stage, including access to all available secrets.
Access to the underlying host and ability to connect to any system the pipeline has access to.
Exposure of confidential data through overly broad secret scoping.
Lateral movement within the CI environment and to servers and systems outside the CI environment.
Deployment of malicious artifacts down the pipeline, including to production.
The extent of potential damage from a compromise is directly determined by the granularity of PBAC in the environment.
Vulnerability checklist
Shared pipeline nodes are used for pipelines with different levels of sensitivity or access requirements.
Secrets are not scoped to individual pipelines and steps, allowing broader access than required.
Pipeline execution nodes are not reverted to a pristine state after each execution.
The OS user running pipeline jobs has excessive permissions on the execution node.
Pipeline jobs run on the controller node rather than separate dedicated nodes.
Execution nodes are not regularly patched.
Network segmentation does not restrict execution node access to only required resources.
Build nodes have unrestricted internet access.
Installation scripts execute with access to secrets and sensitive resources from other build stages.
Prevention controls
Do not use shared nodes for pipelines with different levels of sensitivity. Use shared nodes only for pipelines with identical levels of confidentiality.
Scope secrets so that each pipeline and step has access to only the secrets it requires.
Revert the execution node to its pristine state after each pipeline execution.
Ensure the OS user running the pipeline job has permissions granted according to the principle of least privilege.
Run CI and CD pipeline jobs on separate, dedicated nodes rather than the controller node.
Keep execution nodes appropriately patched.
Configure network segmentation so execution nodes can access only the resources they require. Refrain from granting unlimited internet access to build nodes.
Ensure installation scripts execute in a separate context without access to secrets or sensitive resources from other build stages.
Example attack scenarios
Scenario A — Shared node secret leakage
An organization runs all pipeline jobs on a shared pool of nodes. A low-sensitivity open source project pipeline and a high-sensitivity production deployment pipeline share the same nodes. An attacker poisons the open source project's pipeline to enumerate environment variables and filesystem contents on the shared node. Because secrets from the production pipeline persist in memory and on disk from prior executions, the attacker exfiltrates production deployment credentials.
Scenario B — Unrestricted network lateral movement
A build node has unrestricted network access within the corporate environment. An attacker gains code execution on the build node through a compromised dependency. Using the node's network access, the attacker scans internal systems, discovers an unprotected internal service, and pivots to access production databases containing customer data.
Detection guidance
Audit pipeline configurations to identify shared nodes servicing pipelines with differing sensitivity levels.
Review secret scoping across CI/CD systems to detect overly broad access grants.
Monitor execution node state to verify pristine-state restoration after each pipeline run.
Inspect OS user permissions on execution nodes.
Monitor network traffic from execution nodes for connections to unexpected destinations.
Alert on pipeline jobs executing on controller nodes.
Remediation
Segregate pipeline execution nodes by sensitivity level, dedicating node pools to pipelines with matching confidentiality requirements.
Re-scope all secrets to the minimum set of pipelines and steps that require them.
Implement ephemeral pipeline execution nodes that are destroyed and recreated for each job.
Reduce OS user privileges on execution nodes to the minimum required for job execution.
Move all pipeline jobs off the controller node to dedicated worker nodes.
Establish a patch management cadence for all execution nodes.
Implement network segmentation and egress filtering on all build node networks.
Requirements and compatibility
Written for: GitHub Copilot, Claude Code
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Claude Code frontmatter
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- Microsoft
- Publisher
- Microsoft (Official)
- Source
- microsoft/hve-core · .github/skills/security/owasp-cicd · commit f425e94
- Licence
- Creative Commons Attribution-ShareAlike 4.0 International (redistribution allowed)
- LICENSE (written by AutoGineer)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Microsoft.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download owasp-cicd.zip