container-security

container-security is a skill for Claude Code, Codex from LuuOW/meridian-mcp. It costs 33 tokens per session (2,209 once invoked), scanned A, original, MIT.

Security guidance for software running in containers, which package applications and their dependencies into isolated environments. It covers image building, runtime settings, secrets, and checks on where container components come from.

In plain words
What is it for?
Hardening Docker, Docker Compose, and Kubernetes deployments. It helps configure non-root users, read-only filesystems, fewer system permissions, safer secrets handling, image scanning, supply-chain checks, and runtime policies.
Why use it?
It helps reduce damage if an application or container is compromised. It addresses common risks such as running as an administrator, allowing unwanted file changes, exposing secrets, or using untrusted images.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is file: ./secrets/db_password.txt # dev only — gitignored.

Good fit Hardening Docker, Docker Compose, and Kubernetes deployments. It helps configure non-root users, read-only filesystems, fewer system permissions, safer secrets handling, image scanning, supply-chain checks, and runtime policies.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/LuuOW/meridian-mcp
agentmods
npx agentmods add skills/luuow/meridian-mcp/container-security

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/luuow/meridian-mcp/container-security.svg)](https://agentmods.dev/skills/luuow/meridian-mcp/container-security)
Your own site
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/container-security"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/container-security.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,209 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00033 $0.02209
Opus 5 $0.00016 $0.01104
Sonnet 5 $0.00007 $0.00442
Haiku 4.5 $0.00003 $0.00221

Measured 7d ago against content hash 15daaf8c4787, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

container-security scanned grade A with 0 findings 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 7d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/container-security/SKILL.md · 269 lines

How it starts

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

container-security

Security hardening for containerized workloads at every layer: image build time, runtime configuration, secrets handling, and supply-chain verification. Applied in docker-compose, Kubernetes, or bare Docker.

Non-Root User (Always)

Running as root inside a container is a container escape waiting to happen. Enforce non-root at image build time.

# Create a locked-down user — no home dir (unless needed), no shell, known UID
RUN addgroup --system --gid 1001 appgroup && \
    adduser  --system --uid 1001 --ingroup appgroup --no-create-home --shell /sbin/nologin appuser

WORKDIR /app
COPY --chown=appuser:appgroup . .
USER appuser
# For distroless images — use numeric UID (no user database available)
FROM gcr.io/distroless/python3-debian12:nonroot
# The :nonroot tag already runs as uid 65532
# Verify the running container user
docker inspect myapp_api_1 --format '{{.Config.User}}'
# Or from inside:
docker exec myapp_api_1 id

Read-Only Root Filesystem

Prevents an attacker from writing malware or backdoors to the container's filesystem after a compromise.

services:
  api:
    image: myapp:latest
    read_only: true
    tmpfs:
      - /tmp:size=50m,mode=1777    # writable scratch, limited size
      - /app/cache:size=100m
    volumes:
      - /opt/uploads:/app/uploads  # explicit writable mount for user uploads
# Test that read_only is enforced
docker exec myapp_api_1 touch /test 2>&1
# Expected: touch: /test: Read-only file system

Capability Dropping

Docker grants containers a permissive set of Linux capabilities by default. Drop all, add back only what's needed.

services:
  api:
    cap_drop:
      - ALL
    cap_add:
      - NET_BIND_SERVICE   # only if binding to port < 1024 (prefer port > 1024)
    security_opt:
      - no-new-privileges:true    # prevents setuid escalation

  # A service that needs nothing at all (most web apps)
  frontend:
    cap_drop:
      - ALL
    security_opt:
      - no-new-privileges:true

Read the full file on GitHub · 269 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. 7d ago First seen · 269 lines · 33 tokens per session scan A 15daaf8c4787

Subscribe to this mod's changes

container-security is a skill published in the GitHub repository LuuOW/meridian-mcp (0 stars, last pushed 3d ago), licensed MIT. It adds 33 tokens to every session and 2,209 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

bazel-oci-expert

Expert knowledge for building OCI container images with Bazel using rulesoci. Use for containerizing Quarkus/Java applications, multi-arch builds, and image optimization.

kinhluan/rules-quarkus-skills · 42 tokens

buildah

Buildah OCI container image builder reference. Build container images without Docker daemon. Covers Containerfile builds, scripted builds with shell commands, direct filesystem mount, rootless operation, multi-arch manifests, and CI/CD integration.

bytesagain/ai-skills · 47 tokens

performing-container-escape-detection

Detects container escape attempts by analyzing namespace configurations, privileged container checks, dangerous capability assignments, and host path mounts using the kubernetes Python client. Identifies CVE-2022-0492 style escapes via cgroup abuse. Use when auditing container security posture or investigating escape…

xalgorix/xalgorix · 66 tokens

cis-aws-compute-3.5

Ensure 'readonlyRootFilesystem' is set to 'true' for Amazon ECS task definitions.

CyberStrikeus/CyberStrike · 27 tokens

cis-aws-compute-3.6

Ensure secrets are not passed as container environment variables in Amazon ECS task definitions.

CyberStrikeus/CyberStrike · 24 tokens

container-manager-kubernetes-operations

Full operational Kubernetes surface via the container-manager-mcp MCP server — workloads (pods/rollouts/StatefulSets/DaemonSets/ReplicaSets/Jobs/CronJobs), config (ConfigMaps/Secrets/Namespaces/CRDs/patch), networking (Ingress/native Services/NetworkPolicy/DNS), storage (PV/PVC/StorageClass/snapshots/CSI), RBAC…

Knuckles-Team/container-manager-mcp · 189 tokens