mizazhaider-ceh/agentarsenal/container-image-security

Claude Code and agent skill by mizazhaider-ceh/agentarsenal

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when assessing container image security on an

Install

npx vskill@latest install mizazhaider-ceh/agentarsenal/container-image-security

SKILL.md

The same SKILL.md was published earlier as mizazhaider-ceh/agentarsenal/container-image-security.

Container images ship the whole userspace: vulnerable libraries, leaked secrets in layers, and malware in base images. This skill covers the assessment and hardening: scanning, minimal bases, layer forensics, and signing. Work on images you own or are authorized to assess.

Quick Workflow

  1. Inventory the images: where they come from, how they are built,

and where they are stored.

  1. Scan for vulnerabilities with a scanner and triage by

exploitability, not just CVE count.

  1. Inspect layers for secrets: history, env, and files in every

layer.

  1. Check the base image: minimal, pinned, and from a trusted

source.

  1. Verify the build: reproducible, no network at build surprises,

and SBOM generated.

  1. Check signing: Cosign signatures verified at deploy time.
  2. Review runtime config: non root, read only filesystem, dropped

capabilities.

  1. Gate the pipeline: block on criticals with a documented

exception process.

1. Scanning and layer forensics

bash
# Scan with trivy (as assessment tooling)
trivy image --severity HIGH,CRITICAL myregistry/app:1.2.3 2>/dev/null | head -40
# Triage: focus on reachable, network exposed packages first
bash
# Secrets in layers: history shows build time values, layers keep deleted files
docker history --no-trunc myregistry/app:1.2.3 | head -20
# Extract every layer and grep for secrets
mkdir -p /tmp/img && cd /tmp/img
docker save myregistry/app:1.2.3 -o app.tar && tar xf app.tar
grep -rhoE "AKIA[0-9A-Z]{16}|xox[bap]-[A-Za-z0-9-]{10,}" . 2>/dev/null | sort -u | head
# Any hit = secret baked into the image; rotate it and fix the build
bash
# Base image check: distroless or minimal, pinned by digest
docker inspect myregistry/app:1.2.3 --format '{{.Config.Image}}' | head -2
# Pinned by digest (sha256:...) not by floating tag (latest)

2. Signing with Cosign

bash
# Sign at build time (pipeline)
cosign sign --key cosign.key myregistry/app:1.2.3
# Verify at deploy time (admission controller or manual check)
cosign verify --key cosign.pub myregistry/app:1.2.3
# Unsigned or badly signed images must not deploy

Edge cases

  • The scanner flags hundreds of CVEs in a language runtime. Triage

by the app's actual exposure; a CVE in an unused binary is noise.

  • The image is from a vendor and cannot be rebuilt. Scan it, sign

your approval, and isolate it at runtime.

  • Secrets found in a public image. Rotate immediately; the secret

is already compromised.

Escalation

  • Critical RCE in an internet facing image: patch and redeploy on

an emergency timeline, then fix the pipeline gate that missed it.

  • Signing missing everywhere: propose the rollout in stages (warn,

then enforce) to avoid breaking deploys.

Detection and defender view

Defenders detect image attacks with registry scanning on push, admission controllers that block unsigned or vulnerable images, and runtime monitoring for unexpected processes. They defend with minimal bases, automated rebuilds, and signed pipelines. The durable practice is treating images as build artifacts with full provenance: source, SBOM, scan results, and signature, all the way to the cluster.

Key references

  • CWE-798 (Use of Hard-coded Credentials): layer secrets.
  • CWE-1104 (Use of Unmaintained Third Party Components).
  • Sigstore/Cosign documentation.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mizazhaider-ceh/agentarsenal/container-image-security/badge)](https://verified-skill.com/skills/mizazhaider-ceh/agentarsenal/container-image-security)

Something wrong with this skill or its page? Tell us.