# Analyzing kubernetes audit logs

> Analyzing kubernetes audit logs is an open-source agent skill for developer tools. Parses Kubernetes API server audit logs (JSON lines) to detect exec-into-pod, secret access, RBAC modifications, privileged pod creation, an. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/plurigrid/asi/tree/main/plugins/asi/skills/analyzing-kubernetes-audit-logs
- **Repository:** https://github.com/plurigrid/asi
- **GitHub stars:** 72
- **License:** Apache-2.0
- **Skill name:** analyzing-kubernetes-audit-logs
- **Collection:** https://github.com/plurigrid/asi
- **Categories:** developer tools, security
- **Listing updated:** 2026-11-17

## About

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.

## When your agent uses it

> 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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/plurigrid/asi/tree/HEAD/plugins/asi/skills/analyzing-kubernetes-audit-logs)
- [License: Apache-2.0](https://github.com/plurigrid/asi/tree/HEAD/plugins/asi/skills/analyzing-kubernetes-audit-logs)

## Install

### Claude Code

This skill ships in the `asi` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add plurigrid/asi
/plugin install asi@asi
```

Or copy only this skill to `~/.claude/skills/analyzing-kubernetes-audit-logs`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/plurigrid/asi.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/analyzing-kubernetes-audit-logs &&
cp -R "$tmp/plugins/asi/skills/analyzing-kubernetes-audit-logs" ~/.claude/skills/analyzing-kubernetes-audit-logs &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/analyzing-kubernetes-audit-logs` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/analyzing-kubernetes-audit-logs` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/plurigrid/asi.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/analyzing-kubernetes-audit-logs &&
cp -R "$tmp/plugins/asi/skills/analyzing-kubernetes-audit-logs" ~/.agents/skills/analyzing-kubernetes-audit-logs &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/analyzing-kubernetes-audit-logs` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/analyzing-kubernetes-audit-logs` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/plurigrid/asi.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/analyzing-kubernetes-audit-logs &&
cp -R "$tmp/plugins/asi/skills/analyzing-kubernetes-audit-logs" ~/.cursor/skills/analyzing-kubernetes-audit-logs &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/analyzing-kubernetes-audit-logs` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/plurigrid/asi.git --path plugins/asi/skills/analyzing-kubernetes-audit-logs
```

Or copy the folder to `~/.gemini/skills/analyzing-kubernetes-audit-logs` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/analyzing-kubernetes-audit-logs`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/plurigrid/asi.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/analyzing-kubernetes-audit-logs &&
cp -R "$tmp/plugins/asi/skills/analyzing-kubernetes-audit-logs" ~/.copilot/skills/analyzing-kubernetes-audit-logs &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/analyzing-kubernetes-audit-logs` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/plurigrid/asi.git
```

Then copy `asi/plugins/asi/skills/analyzing-kubernetes-audit-logs` into your agent's skills folder as `analyzing-kubernetes-audit-logs`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Analyzing kubernetes audit logs in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/analyzing-kubernetes-audit-logs to use it in all your projects, or to .claude/skills/analyzing-kubernetes-audit-logs in one project. Or install the asi plugin, which includes it: /plugin marketplace add plurigrid/asi, then /plugin install asi@asi.

### Does Analyzing kubernetes audit logs run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Analyzing kubernetes audit logs?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Analyzing kubernetes audit logs?

The closest alternatives to Analyzing kubernetes audit logs are Rea changelog update, Code review, Gem devops guidelines, SQL code review and Create github issues feature from implementation plan.

## Alternatives

- [Rea changelog update](https://ai-powered.com/skills/rea-changelog-update): Rea changelog update is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-mattpocock): Code review is an open-source agent skill for developer tools.
- [Gem devops guidelines](https://ai-powered.com/skills/gem-devops-guidelines): Gem devops guidelines is an open-source agent skill for cloud and infrastructure.
- [SQL code review](https://ai-powered.com/skills/sql-code-review): SQL code review is an open-source agent skill for databases.
- [Create github issues feature from implementation plan](https://ai-powered.com/skills/create-github-issues-feature-from-implementation-plan): Create github issues feature from implementation plan is an open-source agent skill for developer tools.
- [Brag sheet](https://ai-powered.com/skills/brag-sheet): Brag sheet is an open-source agent skill for developer tools.
- [Spring security](https://ai-powered.com/skills/spring-security): Spring security is an open-source agent skill for security.
- [Github actions hardening](https://ai-powered.com/skills/github-actions-hardening): Github actions hardening is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/analyzing-kubernetes-audit-logs
