A software security skill that integrates with Project CodeGuard to help AI coding agents write secure code and prevent common vulnerabilities. Use this skill when writing, reviewing, or modifying code to ensure secure-by-default practices are followed.
rule_id: codeguard-0-devops-ci-cd-containers
Secure the build, packaging, and deployment supply chain: protect pipelines and artifacts, harden containers, and use virtual patching and toolchain flags when necessary.
USER in Dockerfile--security-opt=no-new-privileges to prevent privilege escalation.--cap-drop all and add only what you need; never --privileged./var/run/docker.sock-H tcp://0.0.0.0:XXX) without TLS.- "/var/run/docker.sock:/var/run/docker.sock" in docker-compose files.HEALTHCHECK.npm ci --omit=dev; pin base image with digest.ENV NODE_ENV=production.USER node.dumb-init) and implement graceful shutdown handlers..dockerignore.-Wall -Wextra -Wconversion, -fstack-protector-all, PIE (-fPIE/-pie), _FORTIFY_SOURCE=2, CFI (-fsanitize=cfi with LTO).checksec) and fail builds if protections missing..dockerignore maintained.npm ci, NODE_ENV=production, proper init and shutdown.tessl i cisco/software-security@1.2.5evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
rules