analyzing-kubernetes-audit-logs

Parse Kubernetes API server audit logs to detect security-relevant events.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/YukiIto1999/ctf-sleuth --skill analyzing-kubernetes-audit-logs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyzing-kubernetes-audit-logs
Source: https://github.com/YukiIto1999/ctf-sleuth/tree/main/.claude/skills/analyzing-kubernetes-audit-logs
Command: npx skills add https://github.com/YukiIto1999/ctf-sleuth --skill analyzing-kubernetes-audit-logs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Analyzing Kubernetes API server audit logs to detect security-relevant events such as exec-into-pod, secret access, RBAC modifications, privileged pod creation, and anonymous API access, enabling faster investigation and response.

Core Features & Use Cases

  • Detect pod exec/attach events to identify shell access into containers.
  • Flag unauthorized secret access and RBAC changes for rapid investigative triage.
  • Surface anonymous API access and privileged pod creation across namespaces for alerting and containment.
  • Provide structured findings suitable for SIEMs, incident reports, and automation pipelines.

Quick Start

Use the analyzing-kubernetes-audit-logs skill to parse a Kubernetes audit log file and generate a consolidated findings report.

Frequently Asked Questions about analyzing-kubernetes-audit-logs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect pod exec events in Kubernetes audit logs?

To detect pod exec events in Kubernetes audit logs, you can parse JSON lines audit logs to identify shell access into containers and flag security-relevant exec or attach actions for incident response.

What security threats can Kubernetes audit logs reveal?

Kubernetes audit logs can reveal security threats including unauthorized secret access, RBAC modifications, privileged pod creation, anonymous API access, and pod exec or attach events for threat hunting and SOC monitoring.

How do I parse Kubernetes audit logs for RBAC changes and secret access?

You can parse Kubernetes audit logs using Python 3.8+ to process JSON lines, extracting and correlating RBAC modification events and unauthorized secret access to generate structured findings for triage.

Do I need Python to analyze Kubernetes audit logs for threat detection?

Yes, you need Python 3.8+ to run the parsing and event correlation logic that processes Kubernetes audit logs and generates consolidated findings reports for security investigations.

Can I use parsed Kubernetes audit log findings in my SIEM?

Yes, the skill generates structured findings from Kubernetes audit logs that are suitable for ingestion into SIEMs, incident reports, and automation pipelines for alerting and containment.

What's the best way to monitor anonymous API access across Kubernetes namespaces?

The best way to monitor anonymous API access across namespaces is to parse Kubernetes API server audit logs to surface anonymous requests, privileged pod creation, and other suspicious activities for alerting and containment.