Container security

From uw-ssec/rse-plugins · View interactive version

Container security is an AI agent skill from the GitHub repository uw-ssec/rse-plugins. Use when the user asks about container image vulnerabilities, scanning Docker images, generating SBOMs, signing images with cosign, hardening container images, or adding security checks in CI/CD. Performs scan -> triage -> remediate/suppress -> re-scan -> sign -> verify workflow using Trivy/Grype/sy

How to use this skill

Skill file

Container Security

Use When

Primary Actions

End-to-End Workflow With Validation Gates

  1. Scan image (trivy image or grype).
  2. Triage by severity and fix availability.
  3. Remediate or suppress with documented rationale.
  4. Re-scan and confirm policy threshold (for example no CRITICAL/HIGH).
  5. Generate SBOM and attach/store artifact.
  6. Sign image with cosign.
  7. Verify signature and publish.

If any gate fails, return to step 2 before shipping.

Quick Commands

# Scan and fail on high/critical
trivy image --severity HIGH,CRITICAL --exit-code 1 myapp:latest
grype myapp:latest --fail-on high

# SBOM
syft myapp:latest -o spdx-json > sbom.spdx.json

# Sign + verify
cosign sign myregistry/myapp:latest
cosign verify myregistry/myapp:latest

Keep SKILL.md Lean; Use Deep References

references/image-scanning.md

references/hardening-guide.md

references/supply-chain-security.md

references/security-operations.md

Ready-to-Use Assets

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.