setup-container-security

Harden container images with digest pinning, verified fetches, and grype/syft scanning.

12|Updated Dec 26, 2025
One-click install
npx skills add https://github.com/jrjsmrtn/project-orchestration-skills --skill setup-container-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-container-security
Source: https://github.com/jrjsmrtn/project-orchestration-skills/tree/main/skills/setup-container-security
Command: npx skills add https://github.com/jrjsmrtn/project-orchestration-skills --skill setup-container-security

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires grype, syft, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures container images are secure against supply-chain attacks by implementing hardening practices and SBOM scanning.

Core Features & Use Cases

  • Supply-Chain Hardening: Implements digest-pinning for base images, verified artifact fetches, and non-root runtimes.
  • SBOM Scanning: Generates and validates SBOM for built images.
  • Use Case: For a project that builds container images, this Skill hardens the image by following best practices before publication to a registry.

Quick Start

Use the /setup-container-security skill to harden your project's container image.

Frequently Asked Questions about setup-container-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I harden container images against supply-chain attacks?

Container hardening secures images by pinning base images by digest, verifying artifact fetches, and enforcing non-root runtimes. This Skill automates those practices alongside SBOM scanning to protect projects before publication to a registry.

How do I generate an SBOM and scan for CVEs in my container images?

You can generate an SBOM and scan for CVEs using grype and syft. This Skill orchestrates both tools to validate the built image's software bill of materials and identify vulnerabilities before the image is published.

Why should I pin base images by digest when building containers?

Pinning base images by digest guarantees you pull the exact, verified image version rather than a mutable tag. This prevents supply-chain attacks where a registry tag is silently updated with malicious or vulnerable layers.

Do I need grype and syft installed to use this container security setup?

Yes, grype and syft are required dependencies for this Skill. Grype handles CVE vulnerability scanning while syft generates the SBOM needed to validate the software supply chain of your built container images.

Can I apply container security hardening to any project that builds container images?

Yes, this container security hardening applies to any project that builds container images. It standardizes supply-chain security practices, making it suitable for diverse codebases aiming to secure images before registry publication.

What is the best way to secure container images against supply-chain vulnerabilities?

The best way to secure container images combines digest-pinning for base images, verified artifact fetches, non-root runtimes, and automated SBOM scanning. This Skill integrates these hardening practices to mitigate supply-chain attacks.