analyzing-kubernetes-audit-logs

Parse Kubernetes audit logs to detect high-risk events and generate structured JSON findings.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Axxxxxxaaann/KAIRI-Skills --skill analyzing-kubernetes-audit-logs-axxxxxxaaann
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyzing-kubernetes-audit-logs
Source: https://github.com/Axxxxxxaaann/KAIRI-Skills/tree/main/skills/analyzing-kubernetes-audit-logs
Command: npx skills add https://github.com/Axxxxxxaaann/KAIRI-Skills --skill analyzing-kubernetes-audit-logs-axxxxxxaaann

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Kubernetes auditing generates verbose logs; this Skill parses and highlights high-risk events to accelerate incident response.

Core Features & Use Cases

  • Detects pod exec/attach events, secret access, RBAC changes, privileged pod creation, and anonymous access from Kubernetes audit logs.
  • Produces structured findings with timestamps, users, resources, and severities suitable for SIEM and threat hunting workflows.
  • Real-world use case: when investigating a suspected cluster compromise, run the analyzer to surface relevant events for containment and remediation.

Quick Start

Run the agent against a Kubernetes audit log file to generate a structured 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 analyze Kubernetes audit logs for security threats?

Analyzing Kubernetes audit logs involves parsing JSON lines to detect threats like pod exec, secret access, and RBAC changes, producing a structured JSON report with severities for incident response and threat hunting.

What high-risk Kubernetes events should I look for in audit logs?

High-risk Kubernetes audit events include pod exec/attach, anonymous access, privileged pod creation, secret access, and RBAC changes. This analyzer parses logs to highlight these events for incident response.

How do I detect unauthorized pod exec commands in Kubernetes?

Detect unauthorized pod exec commands by parsing Kubernetes audit logs. This Skill identifies pod exec/attach events and structures findings with timestamps, users, and resources for threat hunting workflows.

Does this Kubernetes audit log analyzer require Python?

Yes, this Kubernetes audit log analyzer requires Python 3.8 or higher. It reads audit events from a file or stream to produce a structured JSON report containing findings and severities.

Can I use Kubernetes audit logs for threat hunting and SIEM workflows?

Yes, Kubernetes audit logs support threat hunting and SIEM workflows. This analyzer produces structured findings with timestamps, users, resources, and severities suitable for security monitoring and incident response.