analyzing-kubernetes-audit-logs

analyzing-kubernetes-audit-logs is a skill for Claude Code, Codex from andycungkrinx91/konoha. It costs 71 tokens per session (555 once invoked), scanned A, a copy of analyzing-kubernetes-audit-logs, MIT.

A procedure for reading Kubernetes audit logs, which record requests made to a Kubernetes cluster's API. It focuses on events such as entering a running container, accessing secrets, changing permissions, and creating privileged workloads.

In plain words
What is it for?
Use it to parse JSON log lines, find suspicious API actions, investigate cluster compromise, and create rules for a security monitoring system.
Why use it?
It helps investigators identify unauthorized cluster activity and build detections for attacks against Kubernetes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to parse JSON log lines, find suspicious API actions, investigate cluster compromise, and create rules for a security monitoring system.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andycungkrinx91/konoha/analyzing-kubernetes-audit-logs
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 andycungkrinx91/konoha --skill analyzing-kubernetes-audit-logs
Clone the repo
git clone --depth 1 https://github.com/andycungkrinx91/konoha

Made for: Claude Code, Codex.

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 analyzing-kubernetes-audit-logs

README.md
[![agentmods](https://agentmods.dev/badge/skills/andycungkrinx91/konoha/analyzing-kubernetes-audit-logs/github.svg)](https://agentmods.dev/skills/andycungkrinx91/konoha/analyzing-kubernetes-audit-logs)
Your own site
<a href="https://agentmods.dev/skills/andycungkrinx91/konoha/analyzing-kubernetes-audit-logs"><img src="https://agentmods.dev/badge/skills/andycungkrinx91/konoha/analyzing-kubernetes-audit-logs/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 analyzing-kubernetes-audit-logs

Your own site · 80×15
<a href="https://agentmods.dev/skills/andycungkrinx91/konoha/analyzing-kubernetes-audit-logs"><img src="https://agentmods.dev/badge/skills/andycungkrinx91/konoha/analyzing-kubernetes-audit-logs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 555 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 100% copy Near-identical to another mod 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.00071 $0.00555
Opus 5.5 $0.00028 $0.00222
Sonnet 5.5 $0.00014 $0.00111
Haiku 4.5 $0.00007 $0.00056

Measured today against content hash 76c6fec70d8e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

analyzing-kubernetes-audit-logs 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 today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/agent.py), 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.

Origin

This is a copy

100% identical to analyzing-kubernetes-audit-logs — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/akatsuki-skill/references/anthropic-cybersecurity-skills-assets/skills/analyzing-kubernetes-audit-logs/SKILL.md · 83 lines

What it actually says

Analyzing Kubernetes Audit Logs

When to Use

  • When investigating security incidents that require analyzing kubernetes audit logs
  • When building detection rules or threat hunting queries for this domain
  • When SOC analysts need structured procedures for this analysis type
  • When validating security monitoring coverage for related attack techniques

Prerequisites

  • Familiarity with container security concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Instructions

Parse Kubernetes audit log files (JSON lines format) to detect security-relevant events including unauthorized access, privilege escalation, and data exfiltration.

import json

with open("/var/log/kubernetes/audit.log") as f:
    for line in f:
        event = json.loads(line)
        verb = event.get("verb")
        resource = event.get("objectRef", {}).get("resource")
        user = event.get("user", {}).get("username")
        if verb == "create" and resource == "pods/exec":
            print(f"Pod exec by {user}")

Key events to detect:

  1. pods/exec and pods/attach (shell into containers)
  2. secrets access (get/list/watch)
  3. clusterrolebindings creation (RBAC escalation)
  4. Privileged pod creation
  5. Anonymous or system:unauthenticated access

Examples

# Detect secret enumeration
if verb in ("get", "list") and resource == "secrets":
    print(f"Secret access: {user} -> {event['objectRef'].get('name')}")
Files

What ships with it

2 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. today First seen · 83 lines · 71 tokens per session scan A 76c6fec70d8e

Subscribe to this mod's changes

analyzing-kubernetes-audit-logs is a skill published in the GitHub repository andycungkrinx91/konoha (12 stars, last pushed today), licensed MIT. It adds 71 tokens to every session and 555 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to analyzing-kubernetes-audit-logs, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

analyzing-kubernetes-audit-logs

Parses Kubernetes API server audit logs (JSON lines) to detect exec-into-pod, secret access, RBAC modifications, privileged pod creation, and anonymous API access. Builds threat detection rules from audit event patterns. Use when investigating Kubernetes cluster compromise or building k8s-specific SIEM detection rules.

balsm-health/Balsm-AI · 71 tokens

analyzing-kubernetes-audit-logs

Parses Kubernetes API server audit logs (JSON lines) to detect exec-into-pod, secret access, RBAC modifications, privileged pod creation, and anonymous API access, and builds SIEM detection rules from the event patterns. Use when investigating a suspected cluster compromise, reconstructing what an attacker did through…

mukul975/Anthropic-Cybersecurity-Skills · 133 tokens

analyzing-kubernetes-audit-logs

Parses Kubernetes API server audit logs (JSON lines) to detect exec-into-pod, secret access, RBAC modifications, privileged pod creation, and anonymous API access. Builds threat detection rules from audit event patterns. Use when investigating Kubernetes cluster compromise or building k8s-specific SIEM detection rules.

26zl/cybersec-toolkit · 71 tokens

analyzing-kubernetes-audit-logs

Parses Kubernetes API server audit logs (JSON lines) to detect exec-into-pod, secret access, RBAC modifications, privileged pod creation, and anonymous API access. Builds threat detection rules from audit event patterns. Use when investigating Kubernetes cluster compromise or building k8s-specific SIEM detection rules.

Youngmaidainon/Agent-Level-Up · 71 tokens

kubernetes-rbac-exploitation

Exploit misconfigured Kubernetes Role-Based Access Control (RBAC) to escalate privileges within a cluster. This skill covers identifying overly permissive roles and bindings, and leveraging them to gain cluster-admin access or compromise the host nodes.

ShulkwiSEC/bb-huge · 54 tokens

auditing-kubernetes-rbac-privilege-escalation

Find over-permissive RBAC roles and service-account token abuse paths in Kubernetes using kubectl auth can-i, rbac-police, kubectl-who-can, and rakkess during authorized cluster security reviews.

Youngmaidainon/Agent-Level-Up · 57 tokens