kafka-security-audit

kafka-security-audit is a skill for Claude Code from lensesio/agentic-engineering-for-apache-kafka. It costs 97 tokens per session (1,530 once invoked), scanned A, original, MIT.

A checklist-driven audit of Apache Kafka security in source code and a live cluster. Kafka is software for moving streams of events between applications.

In plain words
What is it for?
Use it to check Kafka authentication, SSL/TLS encryption, access-control lists, secret handling, environment health, and the severity of findings in development, staging, or production.
Why use it?
It identifies common production risks such as unencrypted connections, weak login settings, overly broad permissions, exposed secrets, and differences between environments.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the kafka-skills plugin — 10 skills shipped together

Good fit Use it to check Kafka authentication, SSL/TLS encryption, access-control lists, secret handling, environment health, and the severity of findings in development, staging, or production.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lensesio/agentic-engineering-for-apache-kafka/kafka-security-audit
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 lensesio/agentic-engineering-for-apache-kafka --skill kafka-security-audit
Clone the repo
git clone --depth 1 https://github.com/lensesio/agentic-engineering-for-apache-kafka

Made for: Claude Code.

Or install kafka-skills, the plugin that ships this one along with the rest of its 10 skills.

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 kafka-security-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/lensesio/agentic-engineering-for-apache-kafka/kafka-security-audit/github.svg)](https://agentmods.dev/skills/lensesio/agentic-engineering-for-apache-kafka/kafka-security-audit)
Your own site
<a href="https://agentmods.dev/skills/lensesio/agentic-engineering-for-apache-kafka/kafka-security-audit"><img src="https://agentmods.dev/badge/skills/lensesio/agentic-engineering-for-apache-kafka/kafka-security-audit/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 kafka-security-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/lensesio/agentic-engineering-for-apache-kafka/kafka-security-audit"><img src="https://agentmods.dev/badge/skills/lensesio/agentic-engineering-for-apache-kafka/kafka-security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,530 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 140
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found 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.00097 $0.01530
Opus 5 $0.00048 $0.00765
Sonnet 5 $0.00019 $0.00306
Haiku 4.5 $0.00010 $0.00153

Measured 11d ago against content hash 993ac5573c3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

kafka-security-audit 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 11d ago.

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.

skills/kafka-security-audit/SKILL.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Kafka Security Posture Audit

Audits Kafka security configuration across the codebase and infrastructure. Kafka clusters often start as PLAINTEXT in dev and never get properly secured for production.

Target environment: $ARGUMENTS

Workflow

Copy this checklist and track your progress:

Security Audit Progress:
- [ ] Step 1: Check environment health and tier
- [ ] Step 2: Scan codebase for security configuration
- [ ] Step 3: Audit authentication
- [ ] Step 4: Audit encryption
- [ ] Step 5: Audit secrets management
- [ ] Step 6: Generate report
  1. Check environment health and tier via Lenses MCP
  2. Scan codebase for security-related configuration (see references/security-properties.md)
  3. Audit authentication (SASL mechanism)
  4. Audit encryption (SSL/TLS)
  5. Audit secrets management (hardcoded credentials)
  6. Report findings with severity calibrated to environment tier

Step 1: Environment Context

Use Lenses MCP tools to understand the environment:

  • check_environment_health - verify environment is healthy and agent is connected
  • get_environment - get environment tier (development, staging, production) to calibrate severity levels. A PLAINTEXT connection in dev is a suggestion; in production it's critical.

Expected output: Environment tier (development/staging/production) and health status.

Validation: If the environment tier cannot be determined, default to production-level severity - it is safer to over-report.

Step 2: Codebase Inspection

Search the codebase for Kafka security configuration. Consult references/security-properties.md for the full list of authentication properties, encryption properties and files to scan.

Step 3: Audit Authentication

Apply the authentication audit rules from references/security-properties.md. Key checks:

  • PLAINTEXT protocol in production (critical)
  • PLAIN SASL without TLS (critical)
  • No authentication configured in production (critical)
  • Weak SASL mechanisms (warning)

Read the full file on GitHub · 178 lines

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. 11d ago First seen · 178 lines · 97 tokens per session scan A 993ac5573c3b

Subscribe to this mod's changes

kafka-security-audit is a skill published in the GitHub repository lensesio/agentic-engineering-for-apache-kafka (57 stars, last pushed 20d ago), licensed MIT. It adds 97 tokens to every session and 1,530 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

apache-beam-unified-batch-and-stream

Guides agents through Apache Beam pipelines that unify batch and streaming logic. Use when designing Beam transforms, windowing, runners, replay behavior, or portability across execution backends.

vaquarkhan/data-engineering-agent-skills · 45 tokens

avro-protobuf-json-schema-registry

Guides agents through schema-registry-backed event contracts. Use when managing Avro, Protobuf, or JSON Schema for event streams, compatibility policies, producer and consumer evolution, or contract enforcement in messaging systems.

vaquarkhan/data-engineering-agent-skills · 51 tokens

kafka-resilience-and-schema-evolution

Enforces production Kafka guardrails including non-breaking schema evolution, dead-letter queues for poison messages, and acks=all producer durability. Use when designing or changing Kafka topics, producers, consumers, schema registry policies, or streaming recovery paths.

vaquarkhan/data-engineering-agent-skills · 57 tokens

enterprise-etl-and-data-integration-modernization

Guides agents through operating, hardening, and modernizing enterprise ETL and integration stacks such as Informatica, Talend, DataStage, SSIS, and Matillion. Use when legacy mappings, job orchestration, migration, or coexistence with modern lakehouse patterns must be handled safely.

vaquarkhan/data-engineering-agent-skills · 70 tokens

file-and-partner-feed-ingestion

Guides agents through file-based and partner-feed ingestion workflows. Use when landing data from SFTP, managed file transfer, shared buckets, recurring flat files, manifests, or externally supplied feeds that need validation, replay safety, and publish discipline.

vaquarkhan/data-engineering-agent-skills · 56 tokens

mainframe-modernization-and-data-offload

Guides agents through mainframe data modernization and offload workflows. Use when migrating or exposing data from COBOL, JCL, VSAM, IMS, DB2 for z/OS, or batch-oriented mainframe estates into modern lakes, warehouses, streaming systems, and governed data products.

vaquarkhan/data-engineering-agent-skills · 67 tokens