Skip to content
Skillpedia
Security12k Β· #11476

security-audit

What it does

It guides the AI through auditing network traffic for signs of compromise, such as suspicious connections and data leaks. It is for security staff who run Kubernetes clusters.

When to use it

  • βœ“When you want to check a cluster for signs that a workload was compromised.
  • βœ“When you suspect data is leaving the cluster for an unknown destination.
  • βœ“When you want to look for command-and-control traffic or cryptomining.

Skill link

https://github.com/kubeshark/kubeshark/blob/master/skills/security-audit/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/kubeshark/kubeshark/blob/master/skills/security-audit/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œCan you check our Kubernetes traffic for any sign that a workload is talking to an unknown server?”

5 new skills a week. 1 minute to read.

How it works

The AI confirms the tools are ready, runs traffic queries across several threat categories and reports the suspicious patterns it finds.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Kubernetes Network Security Audit with Kubeshark MCP

You are a Kubernetes network security specialist. Your job is to systematically audit cluster traffic for indicators of compromise, malicious behavior, and security threats β€” using network traffic as the ground truth.

Network traffic cannot lie. Logs can be tampered with, metrics can be spoofed, but packets on the wire reveal what workloads actually do β€” what they connect to, what protocols they speak, what data they send. Your audit leverages this by examining DNS queries, HTTP requests, L4 flows, and protocol-level payloads across every dimension of the MITRE ATT&CK framework.

Prerequisites

Before starting any audit, verify the environment is ready.

Tool: check_kubeshark_status

Confirm Kubeshark is deployed and tools are available. You need at minimum: list_api_calls, list_l4_flows, list_workloads, get_api_call.

KFL requirement: This skill uses KFL filters for all queries. Before constructing any filter, load the KFL skill (skills/kfl/). KFL is statically typed β€” incorrect field names will fail silently. If the KFL skill is not loaded, only use the exact filter examples shown in this skill.

KFL error resilience: If a KFL filter returns undeclared reference or similar errors, do not give up on that phase. Fall back to:

  1. Port-based filtering: dst.port == 5432 instead of protocol flags
  2. Name-based filtering: dst.name.contains("db") or src.name.contains("pod-name")
  3. Browsing entries with get_api_call on IDs from list_l4_flows A KFL error means the filter syntax is wrong, not that the data doesn't exist.

Audit Methodology

A security audit is NOT an incident investigation. You are not responding to a known event β€” you are proactively searching for threats that may be hiding in normal traffic. This requires a systematic sweep across all threat categories, not a single focused query.

The audit has two sections that run in sequence:

SECTION A: Real-Time Analysis       β†’ Instant, uses live dissected traffic
SECTION B: Snapshot Deep Dive       β†’ Immutable evidence, protocol-level inspection

Why Two Sections?

Kubeshark has two modes of data access:

  1. Real-time dissection β€” traffic is dissected as it flows through the cluster. Provides instant access to L7 data (DNS, HTTP, etc.) that is already captured and indexed. However, real-time dissection is resource- intensive and may not be enabled, or may have gaps in coverage.

  2. Snapshots β€” immutable captures of raw traffic within a time window. Must be created explicitly, then dissected separately. Guarantees complete coverage of all packets in the window, but takes time to create and index.

Section A uses whatever is already available β€” fast, immediate, but possibly incomplete. Section B creates snapshots for thorough, evidence-grade analysis.

Severity Classification

Classify every finding using this framework:

Severity Criteria Examples
CRITICAL Active data exfiltration, credential theft in progress, confirmed C2 DNS tunneling, IMDS credential harvest, mining pool connections
HIGH Reconnaissance with cluster-wide scope, confirmed unauthorized access K8s API secret enumeration, port scanning, cluster-admin abuse
MEDIUM Suspicious patterns requiring investigation, limited-scope recon Cross-namespace probes, outdated User-Agents, unusual external connections
LOW Anomalies that may be benign, single-instance events Unknown workloads, new external destinations, noisy but not malicious

Timezone

Kubeshark returns timestamps in UTC. Always convert to local time before presenting to the user. Detect the local timezone at the start (e.g., date +%Z). Present local time as primary, with UTC in parentheses: 15:03:22 IST (12:03:22 UTC).

Conversion: Kubeshark timestamps are Unix milliseconds. To convert: ms / 1000 β†’ Unix seconds β†’ datetime β†’ format with timezone offset. Example: 1778534735974 β†’ 2026-05-11 14:05:35 PDT (21:05:35 UTC).


SECTION A: Real-Time Analysis

Goal: Fast initial sweep using live data that's already available. No waiting for snapshot creation or dissection.

Step 1: Check What's Available

Tool: check_kubeshark_status

Confirm Kubeshark is running and which tools are available.

Step 2: Query Live Traffic

Tool: get_l7_data_boundaries

Check the time boundaries of d

FAQ

What framework does its audit follow?

It organizes its checks across the MITRE ATT&CK framework.

Does it check DNS and HTTP traffic?

Yes, it looks at DNS queries, HTTP requests and layer 4 flows.

Does it prove a workload is compromised?

No. It points to suspicious patterns that a person still needs to review.

Details

Original description by the author

Kubernetes network security audit skill powered by Kubeshark MCP. Use this skill whenever the user wants to audit a cluster for security threats, detect compromised workloads, find malicious traffic patterns, hunt for indicators of compromise (IOCs), check for data exfiltration, identify C2 (command and control) communication, detect cryptomining, find lateral movement, discover credential theft attempts, assess network security posture, or perform threat hunting in Kubernetes. Also trigger when the user mentions security audit, threat detection, compromise assessment, vulnerability scan, "is

repo: kubeshark/kubeshark

Popularity

GitHub stars
12k
Ranking position
#11476
License
Apache-2.0
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills