security-audit
Skill này làm gì
Skill hướng dẫn AI kiểm toán lưu lượng mạng để tìm dấu hiệu bị xâm nhập, như kết nối đáng ngờ và rò rỉ dữ liệu. Skill dành cho nhân viên bảo mật vận hành cụm Kubernetes.
Khi nào nên dùng
- ✓Khi bạn muốn kiểm tra một cụm để tìm dấu hiệu một workload bị xâm nhập.
- ✓Khi bạn nghi ngờ dữ liệu đang rời cụm đến một đích không rõ.
- ✓Khi bạn muốn tìm lưu lượng command-and-control hoặc đào tiền ảo.
Liên kết skill
https://github.com/kubeshark/kubeshark/blob/master/skills/security-audit/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể kiểm tra lưu lượng Kubernetes của chúng tôi xem có dấu hiệu nào workload đang nói chuyện với một máy chủ không rõ không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI xác nhận các công cụ đã sẵn sàng, chạy truy vấn lưu lượng trên nhiều nhóm mối đe dọa và báo cáo các mẫu đáng ngờ đã tìm thấy.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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:
- Port-based filtering:
dst.port == 5432instead of protocol flags - Name-based filtering:
dst.name.contains("db")orsrc.name.contains("pod-name") - Browsing entries with
get_api_callon IDs fromlist_l4_flowsA 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:
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.
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
Câu hỏi thường gặp
Khung kiểm toán nào được dùng?
Nó sắp xếp các kiểm tra theo khung MITRE ATT&CK.
Nó có kiểm tra lưu lượng DNS và HTTP không?
Có, nó xem truy vấn DNS, request HTTP và các luồng lớp 4.
Nó có chứng minh một workload bị xâm nhập không?
Không. Nó chỉ ra các mẫu đáng ngờ mà người vẫn cần xem xét.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 12k
- Vị trí xếp hạng
- #11476
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
install
12kGiúp agent của bạn cài Kubeshark trên cụm Kubernetes, từ thiết lập CLI nhanh đến cấu hình Helm đầy đủ.
kfl
12kGiúp agent của bạn viết biểu thức lọc KFL đúng, là ngôn ngữ truy vấn Kubeshark dùng để tìm lưu lượng mạng.
network-rca
12kGiúp agent của bạn điều tra một sự cố mạng đã xảy ra trong cụm Kubernetes bằng cách nghiên cứu các snapshot lưu lượng đã lưu.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.