container-security

container-security is a skill for Claude Code, Codex from JustineDevs/premortem. It costs 118 tokens per session (2,373 once invoked), scanned A, a copy of container-security, Apache-2.0.

A security assessment guide for containers and Kubernetes, the system commonly used to package and run applications at scale.

In plain words
What is it for?
It is for scanning Docker or OCI images, creating and comparing software bills of materials, auditing Kubernetes clusters, reviewing RBAC and NetworkPolicies, and writing runtime detection rules.
Why use it?
It helps identify vulnerable images, unsafe cluster permissions, missing network controls, and risks in container runtime behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; installed under .agents/ (shared by several agents).

Good fit It is for scanning Docker or OCI images, creating and comparing software bills of materials, auditing Kubernetes clusters, reviewing RBAC and NetworkPolicies, and writing runtime detection rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/justinedevs/premortem/container-security
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add JustineDevs/premortem --skill container-security
Clone the repo
git clone --depth 1 https://github.com/JustineDevs/premortem

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for container-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/justinedevs/premortem/container-security/github.svg)](https://agentmods.dev/skills/justinedevs/premortem/container-security)
Your own site
<a href="https://agentmods.dev/skills/justinedevs/premortem/container-security"><img src="https://agentmods.dev/badge/skills/justinedevs/premortem/container-security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for container-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/justinedevs/premortem/container-security"><img src="https://agentmods.dev/badge/skills/justinedevs/premortem/container-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,373 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.02373
Opus 5 $0.00059 $0.01187
Sonnet 5 $0.00024 $0.00475
Haiku 4.5 $0.00012 $0.00237

Measured 9d ago against content hash d4deb1dfae87, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

container-security scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| Kubescape | K8s security platform | `curl -s https://raw.githubusercontent.com/kubescape/kubescape/master/install.sh \| /bin/bash` |
Origin

This is a copy

92% identical to container-security — 10 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/security/container-security/SKILL.md · 196 lines

How it starts

The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Container Security

Thin router for container and Kubernetes security assessments. Load the reference, workflow, or payload file you need — do not read all of them.

When to Use

  • Scanning Docker/OCI images for CVEs (single image or pipeline)
  • Generating or attesting SBOMs (Syft / CycloneDX / SPDX)
  • Diffing SBOMs across releases to flag newly-introduced CVEs
  • Auditing a live Kubernetes cluster (CIS / NSA / MITRE)
  • Mapping K8s RBAC and finding privilege-escalation paths
  • Reviewing NetworkPolicy coverage
  • Authoring Falco / Tetragon runtime rules
  • Analyzing or testing container escape vectors (authorized only)
  • Docker daemon / host hardening review

Trigger Phrases

"scan this image", "trivy / grype / syft", "audit k8s cluster", "kube-bench", "kubescape", "run CIS benchmark", "check RBAC", "networkpolicy coverage", "falco rule", "container escape", "SBOM diff", "new CVEs since last release".

When NOT to Use This Skill

Request Use instead
Static scan of K8s YAML / Helm / Kustomize before deploy iac-security
Terraform / CloudFormation / Pulumi misconfig iac-security
EKS / GKE / AKS control-plane or managed-service misconfig cloud-security
Cloud IAM misconfiguration (beyond K8s RBAC) cloud-security
Application-code vulns inside the container sast-orchestration
Third-party library CVEs at source-code level sca-security
API endpoints exposed by containerized services api-security

Rule of thumb: pre-deployment YAML → iac-security; running cluster or built image → this skill.

Decision Tree

Target?
|
|-- Built/registry image ----------> workflows/image_scan.md
|     \-- two images to compare? --> workflows/sbom_diff.md    (FLAGSHIP)
|
|-- Dockerfile source -------------> examples/vulnerable_dockerfile.md
|                                    + hadolint (references/image_scanning.md)
|
|-- Live K8s cluster --------------> workflows/cluster_audit.md
|     |-- RBAC deep-dive ----------> workflows/rbac_analysis.md
|     |-- Network policy gap ------> workflows/network_policy_review.md
|     \-- CIS benchmark only ------> references/kubernetes_hardening.md
|
|-- Runtime monitoring ------------> references/runtime_security.md
|                                    + examples/falco_custom_rule.yaml
|
\-- Escape testing (authorized) --> references/container_escape.md
                                     + payloads/container_escape_poc.md

Read the full file on GitHub · 196 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 196 lines · 118 tokens per session scan A d4deb1dfae87

Subscribe to this mod's changes

container-security is a skill published in the GitHub repository JustineDevs/premortem (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 118 tokens to every session and 2,373 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 92% identical to container-security, differing in 10 lines, and is treated as a copy.

Related

Other skills, from other repositories

aws-cli

CLI-first AWS orchestration skill for Lambda, ECS/Fargate, and S3 workflows rooted in .☁️ runbooks.

elasticdotventures/_b00t_ · 31 tokens

azure-kubernetes-app-deploy

Use when deploying an existing web application or API to an already-running Azure Kubernetes Service cluster. Detects the framework, generates a Dockerfile and Kubernetes manifests, validates against AKS Deployment Safeguards, and deploys with verification. WHEN: deploy app to AKS, deploy to existing AKS cluster…

microsoft/skills · 166 tokens

atmos-container

Atmos container components: components.container, Docker Compose migration, build/run/push/pull/up/down/list/ps/logs/exec, stack-scoped persistent containers, container workflow steps, compositions, and hooks.

cloudposse/atmos · 45 tokens

atmos-emulator

Atmos emulator components: local AWS/GCP/Azure/Kubernetes/Vault/OpenBao/registry emulators, components.emulator, !emulator, identities, persistence, health checks, and emulator commands.

cloudposse/atmos · 44 tokens

ak-cloud-deploy

Deploy an Agent Kernel project to AWS, Azure, or GCP using Terraform modules, or to any Kubernetes cluster (on-prem, baremetal, EKS) using the official Helm chart. Supports serverless and containerized modes for all three clouds. AWS supports execution modes (restsync, restasync, async, stream), queue-based scalable…

yaalalabs/agent-kernel · 146 tokens

provisioning-infrastructure

Cloud-native infrastructure knowledge reference covering Kubernetes, Helm, Kustomize, Operators, CRDs, GitOps (ArgoCD, Flux), and IaC (Terraform, Pulumi, CDK). Use when provisioning infrastructure, managing clusters, or working with GitOps workflows.

telagod/code-abyss · 61 tokens