aks-network-capture

aks-network-capture is a skill for Claude Code from Azure/AKS-Skills. It costs 151 tokens per session (1,728 once invoked), scanned A, original, MIT.

A diagnostic workflow that captures network packets across Azure Kubernetes Service nodes. Packet capture records network traffic so engineers can inspect what happened to a connection.

In plain words
What is it for?
It is for collecting filtered packet captures and related Azure network details such as security rules, routes, firewalls, and virtual-network connections.
Why use it?
It helps locate traffic drops when application logs and ordinary connectivity checks do not show whether the problem is in a pod, node, network rule, route, or load balancer.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the aks plugin — 8 skills, 1 MCP server shipped together

Good fit It is for collecting filtered packet captures and related Azure network details such as security rules, routes, firewalls, and virtual-network connections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/azure/aks-skills/aks-network-capture
About the project

Azure/AKS-Skills is a collection of agent skills for operating Azure Kubernetes Service clusters after they are provisioned. It helps compatible coding agents investigate incidents, control costs, assess AKS Automatic readiness, run GPU and inference workloads, capture packet-level evidence, and design clusters. The catalogue entries provide the skills, MCP integration, and plugin configuration for these AKS operations.

Azure/AKS-Skills · 4 stars · on GitHub

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 Azure/AKS-Skills --skill aks-network-capture
Clone the repo
git clone --depth 1 https://github.com/Azure/AKS-Skills

Made for: Claude Code.

Or install aks, the plugin that ships this one along with the rest of its 8 skills, 1 MCP server.

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 aks-network-capture

README.md
[![agentmods](https://agentmods.dev/badge/skills/azure/aks-skills/aks-network-capture/github.svg)](https://agentmods.dev/skills/azure/aks-skills/aks-network-capture)
Your own site
<a href="https://agentmods.dev/skills/azure/aks-skills/aks-network-capture"><img src="https://agentmods.dev/badge/skills/azure/aks-skills/aks-network-capture/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 aks-network-capture

Your own site · 80×15
<a href="https://agentmods.dev/skills/azure/aks-skills/aks-network-capture"><img src="https://agentmods.dev/badge/skills/azure/aks-skills/aks-network-capture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 151 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,728 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.00151 $0.01728
Opus 5 $0.00076 $0.00864
Sonnet 5 $0.00030 $0.00346
Haiku 4.5 $0.00015 $0.00173

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

Security

Grade A, and why

aks-network-capture 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 10d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/collect-azure-network-info.sh, scripts/create-capture.sh, scripts/generate-test-traffic.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/aks-network-capture/SKILL.md · 97 lines

How it starts

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

AKS Network Capture

Capture packet-level evidence on AKS when read-only diagnostics are inconclusive. Use this to prove where a packet is dropped — inside the pod, on the node, at an NSG, on a route, or at the Azure load balancer.

This is an escalation tool. For most networking symptoms (DNS, connectivity, ingress 502s), start with aks-troubleshooting; come here when you need a pcap or wire-level proof.

Safety model

Packet capture requires elevated node access, so these scripts are built to be safe by construction:

  • No shell injection. User-supplied filters and targets are validated against strict allowlists, passed to tcpdump as a single trailing argument (never a shell string), and compile-checked in-pod with tcpdump -d. There is no eval. A negative regression test (evals/tests/aks-network-capture/injection.test.sh) proves malicious inputs are rejected.
  • Scoped access, not privileged. Capture pods use only NET_ADMIN + NET_RAW with hostNetwork. They mount only /var/log/aks-network-captures from the node, never the node root, and never enable hostPID.
  • Pinned images. Capture Jobs use Microsoft Retina's network-tool image from Microsoft Container Registry, pinned by digest; no Docker Hub, no :latest.

The live-cluster smoke test is manual and is not run in CI. Before relying on distributed capture in production, run evals/tests/aks-network-capture/smoke-live-cluster.sh against an AKS cluster you control; it uses an isolated namespace, generates bounded same-node DNS traffic, retrieves the exact run, decodes packet records, and verifies Kubernetes plus host-artifact cleanup.

Capture workflow

Script Purpose
scripts/setup-capture-configmap.sh Deploy the fixed capture runner to a namespace (run once per namespace)
scripts/create-capture.sh Start a bounded capture Job on the selected nodes/pods
scripts/retrieve-captures.sh Pull capture bundles off the nodes and clean up
scripts/generate-test-traffic.sh Drive test traffic from a pod's netns while capturing
scripts/collect-azure-network-info.sh Collect the Azure-side network config for the cluster

Read the full file on GitHub · 97 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 97 lines · 151 tokens per session scan A 54766850a5e7

Subscribe to this mod's changes

aks-network-capture is a skill published in the GitHub repository Azure/AKS-Skills (4 stars, last pushed today), licensed MIT. It adds 151 tokens to every session and 1,728 once invoked, about $0.0008 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

azure-kubernetes-automatic-readiness

Assess Kubernetes workloads and cluster configuration for AKS Automatic compatibility. Identifies incompatibilities, generates fixes, and guides migration from AKS Standard to AKS Automatic. WHEN: migrate to AKS Automatic, check AKS Automatic readiness, validate manifests for Automatic, assess cluster for Automatic…

microsoft/skills · 87 tokens

azure-diagnostics

Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage. WHEN: debug production issues, troubleshoot app service, app service high CPU, app service deployment failure, troubleshoot container apps, troubleshoot functions, troubleshoot AKS, VM RDP, Linux SSH, VM black…

microsoft/skills · 160 tokens

datadog-ninja

Master orchestrator for 57 official Datadog agent skills from DataDog/pup and datadog-labs/agent-skills. Use when working with ANY Datadog observability task: APM and distributed tracing, log search and pipelines, monitors and alerting, live production debugging, audit trail investigations, browser SDK…

fabricioctelles/jump-skills · 297 tokens

azure-ninja

Master orchestrator for 40 Azure agent skills from Microsoft official and community repositories. Use when working with ANY Azure service, architecture, deployment, operations, security, cost optimization, diagnostics, or development task. Routes to the optimal specialized skill based on context. Triggers: Azure…

fabricioctelles/jump-skills · 128 tokens

alibaba-observability-incident-responder

Respond to Alibaba Cloud incidents using CloudMonitor alarms, SLS log analytics, ARMS APM distributed tracing, and alert governance for ECS, RDS, ACK, and network services.

VincentChuWaiChow/vanguard-frontier-agentic · 47 tokens

azure-resource-health-incident-triage

Use this skill for Azure Resource Health, Service Health, activity-log alert, and first-pass incident triage when the question is whether Azure platform health is part of the problem.

VincentChuWaiChow/vanguard-frontier-agentic · 0 tokens