defender-for-containers

defender-for-containers is a skill for Claude Code, Codex from vinayaklatthe/microsoft-security-skills. It costs 209 tokens per session (1,911 once invoked), scanned A, original, MIT.

Guidance for securing Kubernetes, a system for running containers, across cloud, on-premises, and connected environments with Microsoft Defender for Cloud.

In plain words
What is it for?
Use it to plan discovery, vulnerability scanning, registry checks, admission controls, and runtime threat response for AKS, EKS, GKE, OpenShift, and Azure Arc-connected clusters.
Why use it?
It helps identify cluster weaknesses, vulnerable container images, runtime threats, and deployments that should be blocked by policy.

Skill for Claude CodeCodex

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

Good fit Use it to plan discovery, vulnerability scanning, registry checks, admission controls, and runtime threat response for AKS, EKS, GKE, OpenShift, and Azure Arc-connected clusters.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vinayaklatthe/microsoft-security-skills/defender-for-containers
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 vinayaklatthe/microsoft-security-skills --skill defender-for-containers
Clone the repo
git clone --depth 1 https://github.com/vinayaklatthe/microsoft-security-skills

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 defender-for-containers

README.md
[![agentmods](https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/defender-for-containers/github.svg)](https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/defender-for-containers)
Your own site
<a href="https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/defender-for-containers"><img src="https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/defender-for-containers/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 defender-for-containers

Your own site · 80×15
<a href="https://agentmods.dev/skills/vinayaklatthe/microsoft-security-skills/defender-for-containers"><img src="https://agentmods.dev/badge/skills/vinayaklatthe/microsoft-security-skills/defender-for-containers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 209 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,911 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.00209 $0.01911
Opus 5 $0.00105 $0.00955
Sonnet 5 $0.00042 $0.00382
Haiku 4.5 $0.00021 $0.00191

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

Security

Grade A, and why

defender-for-containers 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 11d 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/defender-for-containers/SKILL.md · 128 lines

How it starts

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

Microsoft Defender for Containers

Defender for Containers is the Kubernetes-aware plan in Microsoft Defender for Cloud. It covers AKS, Azure Arc-enabled Kubernetes (on-prem, EKS, GKE, OpenShift), and the container registries that feed them, providing posture, image vulnerability assessment, runtime threat detection, and admission control.

When to use

Securing Kubernetes clusters and the registries that supply them. Use this skill for plan rollout, sensor vs agentless trade-offs, registry scanning, admission policy design, and runtime alert response.

Do not use this skill for VM/host hardening (defender-for-servers), cluster networking design (azure-network-security-design), or generic AKS operations (azure-kubernetes).

Capability map

Capability How it works Coverage
Agentless discovery API-based cluster inventory, control-plane misconfig, K8s API audit log analytics AKS, EKS, GKE, Arc
Agentless vulnerability assessment Snapshots node disks; scans images in registries and running containers AKS, EKS, GKE
Registry scanning Pull-time, push-time, and continuous scan of images ACR, ECR, GAR
Runtime threat detection Defender sensor (DaemonSet, eBPF on Linux) — fileless, lateral movement, crypto-miner detections AKS, Arc, EKS, GKE
Kubernetes data plane hardening Azure Policy add-on (OPA/Gatekeeper) AKS, Arc-enabled K8s
Attack path analysis Combines posture + vuln + runtime to surface internet → pod → cloud-IAM paths All

Approach

  1. Enable Defender for Containers at subscription scope. Auto-provisioning installs:

    • Defender sensor (DaemonSet) for runtime detection on Linux nodes.
    • Azure Policy for Kubernetes add-on for admission control.
    • Connects ACR scanning automatically. Verify: kubectl get ds -n kube-system shows microsoft-defender-collector-ds; AKS shows Defender profile = enabled.
  2. Connect non-Azure clusters via Arc. EKS/GKE need a connector at the AWS/GCP cloud account level + Arc onboarding for runtime sensor (agentless features work without sensor).

Read the full file on GitHub · 128 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. 11d ago First seen · 128 lines · 209 tokens per session scan A a5bef605b8af

Subscribe to this mod's changes

defender-for-containers is a skill published in the GitHub repository vinayaklatthe/microsoft-security-skills (173 stars, last pushed 2mo ago), licensed MIT. It adds 209 tokens to every session and 1,911 once invoked, about $0.0010 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-30.

Related

Other skills, from other repositories

michel-run-local-dev-stack

The canonical recipe for starting, checking, and stopping the Packmind local dev stack with Docker Compose — the single source of truth other skills and the Michel agent defer to. Covers bringing the full stack (PostgreSQL, Redis, NestJS API, React/Vite frontend on :4200, MCP server, nginx) up in the background, the…

PackmindHub/packmind · 275 tokens

harness

To build an AI harness: run, observe, validate, automate repeated work faster — CLI/MCP actions, devcontainers, skills, subagents, hooks, pipelines, automations.

griddynamics/rosetta · 40 tokens

power-automate

Use when operating Microsoft Power Automate cloud flows from code — create, enable, update, list or delete via the Dataverse Web API (workflow table, category 5) with Entra ID OAuth2, plus run-history debugging. NOT designing the flow definition (that is automation-flows), NOT picking a platform by billing model (that…

ericrisco/rsc-harness · 82 tokens

docker-packaging

This skill should be used when the user says "create Dockerfile", "dockerize project", "Docker packaging", "container setup", "multi-stage build", "Docker Compose", "containerize application", "create docker-compose.yml", "create .dockerignore", "optimize Docker image", or wants to containerize their project or create…

neuromechanist/research-skills · 75 tokens

azure-prepare

WORKFLOW SKILL — Prepare Azure apps for deployment (Bicep/Terraform, azure.yaml, Dockerfiles). WHEN: "create app", "build web app", "create API", "deploy to Azure", "generate Bicep", "generate Terraform", "function app", "add authentication", "managed identity". DO NOT USE FOR: cross-cloud migration…

jonathan-vella/apex-accelerator · 101 tokens

devops

You are the DevOps Specialist -- the single authority on version control, CI/CD pipelines, platform operations (GitHub, Azure DevOps, GitLab), infrastructure, deployment, backup, and cleanup. If it touches git, pipelines, or production infrastructure, it's yours.

samibs/skillfoundry · 6 tokens