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/06-insufficient-credential-hygiene.md
title: 'CICD-SEC-6: Insufficient Credential Hygiene' description: OWASP CI/CD Top 10 reference for credential hygiene vulnerabilities including hardcoded secrets and unrotated credentials in pipelines
06 Insufficient Credential Hygiene
Identifier: CICD-SEC-6:2025 Category: Credential Management
Description
Insufficient credential hygiene risks deal with an attacker's ability to obtain and use various secrets and tokens spread throughout the pipeline due to flaws having to do with access controls around credentials, insecure secret management, and overly permissive credentials.
CI/CD environments are built of multiple systems communicating and authenticating against each other, creating challenges around protecting credentials due to the large variety of contexts in which credentials can exist. Application credentials are used at runtime, credentials to production systems are used by pipelines to deploy infrastructure, and engineers use credentials in testing environments and within their code and artifacts.
Major flaws affecting credential hygiene include credentials committed to SCM repositories (remaining visible in commit history even after deletion), credentials used insecurely inside build and deployment processes, credentials left in container image layers, credentials printed to console output and log management systems, and unrotated credentials that accumulate exposure over time.
Risk
Credentials are the most sought-after object by adversaries seeking access to high-value resources or to deploy malicious code and artifacts.
Engineering environments provide attackers with multiple avenues to obtain credentials.
Credentials committed to code repositories persist in commit history indefinitely.
Secrets printed to build console output are exposed to anyone with access to build results and may flow to centralized log management systems.
Credentials embedded in container image layers are accessible to anyone who can download the image.
Unrotated credentials allow a constantly growing number of people and artifacts to hold valid credentials.
Shared credentials increase exposure footprint and reduce accountability.
Vulnerability checklist
Credentials are present in code committed to SCM repository branches, including in commit history.
Secrets are used in CI/CD builds without scoping to specific pipelines and steps.
Pipeline credentials can be accessed by unreviewed code flowing through the pipeline.
Credentials are injected into the build in a manner that makes them accessible outside runtime.
Secrets exist in container image layers.
Credentials are printed to pipeline console output in cleartext.
Static credentials exist that have not been rotated within the defined rotation period.
The same set of credentials is shared across multiple contexts.
Credentials lack usage conditions such as source IP restrictions or identity binding.
No automated scanning exists for secrets in code repositories.
Prevention controls
Establish procedures to continuously map credentials across the engineering ecosystem and ensure each set follows the principle of least privilege.
Avoid sharing the same credentials across multiple contexts.
Prefer temporary credentials over static credentials. For static credentials, establish periodic rotation procedures and detect stale credentials.
Configure credential usage conditions such as scoping to specific source IPs or identities.
Detect secrets pushed to code repositories using IDE plugins, push-time scanning, and periodic repository scans covering past commits.
Scope secrets in CI/CD systems so each pipeline and step accesses only the secrets it requires.
Use built-in vendor options or third-party tools to prevent secrets from being printed to pipeline console outputs and audit existing outputs for secret exposure.
Verify that secrets are removed from all artifact types including container image layers, binaries, and Helm charts.
Example attack scenarios
Scenario A — Credentials in commit history
A developer accidentally commits AWS access keys to a repository. The keys are removed in a subsequent commit, but remain visible in the commit history. An attacker with read access to the repository browses the commit history, extracts the keys, and uses them to access the organization's cloud infrastructure and exfiltrate data from production S3 buckets.
Scenario B — Secrets exposed in build logs
A CI pipeline prints environment variables to the console output during a debugging step that was never removed. The build logs, including plaintext credentials for the production database, flow to the centralized log management system. An attacker who gains access to the logging platform discovers the credentials and uses them to access the production database.
Detection guidance
Scan all repositories for secrets in current branches and historical commits using automated secret detection tools.
Audit CI/CD pipeline configurations for secrets injected as environment variables and assess their scope.
Review pipeline console outputs for exposed credentials.
Inspect container images layer by layer to detect embedded secrets.
Monitor credential usage patterns and alert on access from unexpected sources or contexts.
Track credential rotation dates and alert on credentials that exceed the defined rotation period.
Remediation
Rotate all credentials known or suspected to have been exposed.
Remove secrets from repository commit history using history-rewriting tools and invalidate the exposed credentials.
Implement automated secret scanning in pre-commit hooks, CI pipelines, and periodic repository scans.
Re-scope all pipeline secrets to the minimum set of pipelines and steps that require them.
Mask or redact all secrets in pipeline console outputs.
Rebuild container images to eliminate secrets from intermediate layers using multi-stage builds.
Establish and enforce a credential rotation policy with automated tracking and alerting.
Replace shared credentials with dedicated, individually-scoped credentials.
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