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/01-insufficient-flow-control-mechanisms.md
title: 'CICD-SEC-1: Insufficient Flow Control Mechanisms' description: OWASP CI/CD Top 10 reference for insufficient flow control vulnerabilities including unauthorized code changes and deployment bypass
01 Insufficient Flow Control Mechanisms
Identifier: CICD-SEC-1:2025 Category: Flow Control
Description
Insufficient flow control mechanisms refer to the ability of an attacker that has obtained permissions to a system within the CI/CD process (SCM, CI, artifact repository) to single-handedly push malicious code or artifacts down the pipeline, due to a lack of mechanisms that enforce additional approval or review.
CI/CD flows are designed for speed. New code can be created on a developer's machine and reach production within minutes, often with full reliance on automation and minimal human involvement. Since CI/CD processes are the highway to highly gated and secured production environments, organizations must introduce measures and controls to ensure that no single entity (human or application) can push code or artifacts through the pipeline without undergoing a strict set of reviews and approvals.
Risk
An attacker with access to the SCM, CI, or downstream systems can deploy malicious artifacts potentially all the way to production without any approval or review.
Pushing code to a repository branch that is automatically deployed through the pipeline to production.
Abusing auto-merge rules that automatically merge pull requests meeting a predefined set of requirements, pushing malicious unreviewed code.
Abusing insufficient branch protection rules, such as excluding specific users or branches, to bypass protections and push malicious unreviewed code.
Uploading artifacts to a repository in the guise of a legitimate artifact created by the build environment, which may be picked up by a deploy pipeline and deployed to production.
Directly changing application code or infrastructure in production without additional verification.
Vulnerability checklist
Repository branches hosting production code lack branch protection rules.
Users or branches are excluded from branch protection rules.
Auto-merge rules exist that can be bypassed or manipulated.
Pipeline triggers do not require additional approval for production deployments.
Artifacts uploaded by non-CI service accounts are not blocked or reviewed before flowing through the pipeline.
No drift detection exists between code running in production and its CI/CD origin.
Single accounts have both push-to-repository and trigger-deployment permissions.
Prevention controls
Configure branch protection rules on branches hosting code used in production and other sensitive systems.
Avoid excluding user accounts or branches from branch protection rules.
Ensure accounts with permission to push unreviewed code do not also have permission to trigger deployment pipelines connected to the repository.
Limit auto-merge rule usage and ensure they apply to the minimal number of contexts.
Review auto-merge rule code thoroughly to prevent bypass and avoid importing third-party code in the auto-merge process.
Prevent accounts from triggering production build and deployment pipelines without additional approval or review.
Allow artifacts to flow through the pipeline only when created by a pre-approved CI service account.
Detect and prevent drifts between code running in production and its CI/CD origin, and modify any resource that contains a drift.
Example attack scenarios
Scenario A — Unprotected branch deployment
An attacker gains access to a developer account on the SCM. The main branch lacks branch protection rules. The attacker pushes malicious code directly to the main branch, triggering an automated pipeline that deploys the code to production without any review or approval gate.
Scenario B — Auto-merge rule bypass
An organization uses auto-merge rules to merge pull requests that pass automated checks. An attacker crafts a pull request that satisfies the auto-merge criteria while containing a malicious payload hidden in an overlooked file type. The PR is automatically merged and deployed to production without human review.
Detection guidance
Audit branch protection rule configurations across all repositories hosting production code.
Review auto-merge rule logic and history of auto-merged pull requests for anomalies.
Monitor pipeline triggers and correlate them with code review and approval records.
Detect configuration drifts between deployed resources and their CI/CD source definitions.
Alert on artifacts flowing through deployment pipelines that were not produced by approved CI service accounts.
Remediation
Enable and enforce branch protection rules on all branches linked to production deployments.
Remove all user and branch exclusions from branch protection rules.
Separate push-to-repository and trigger-deployment permissions across distinct accounts.
Audit and harden all auto-merge rules, removing those that are overly permissive.
Implement artifact provenance validation to ensure only CI-produced artifacts enter deploy pipelines.
Deploy drift detection tooling to identify and alert on unauthorized production changes.
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