security-auditor

Audits repositories for leaked secrets, gitignore gaps, and insecure Kubernetes Ingress configurations.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/lfuuu/claude-rules --skill security-auditor-lfuuu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-auditor
Source: https://github.com/lfuuu/claude-rules/tree/main/shared-skills/roles/security-auditor
Command: npx skills add https://github.com/lfuuu/claude-rules --skill security-auditor-lfuuu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Secrets like werf global_secret_key, docker credentials, kubeconfig tokens, and SSH keys can silently leak into git commits, logs, or agent messages, and local dev shortcuts (insecure registries, TLS-less Ingress) can drift into production-like environments. This Skill performs read-only security audits and produces a structured report without modifying anything. ## Core Features & Use Cases - Secret Scanning: Searches git history and the working tree with gitleaks, trufflehog, and grep patterns for hardcoded passwords, tokens, and private keys, reporting only paths and types—never values. - Gitignore & Credentials Audit: Verifies that sensitive files (product clones, Helm values, logs, .claude settings) are properly ignored and that host credentials (docker config, kubeconfig, werf keys) never entered the repo. - Ingress/Kubernetes Review: Flags insecure-registry flags, missing TLS on Ingress, and /etc/hosts rewrite risks, distinguishing acceptable local-dev defaults from production violations. - Use Case: Before merging a PR in a Kubernetes CI infrastructure repo, run a full review mode to diff against master, detect newly added unignored files, and receive a Critical/Warnings/OK report with remediation delegated to a devops role. ## Quick Start Ask the agent to run a security audit in secrets mode to scan the repository and git history for leaked credentials and produce a report.

Frequently Asked Questions about security-auditor

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

FAQPage Schema
How do I scan a git repository for leaked secrets?

Run the secrets audit mode, which searches git history with grep patterns for passwords, tokens, and private keys, and invokes gitleaks or trufflehog when installed. Findings are reported by file path and secret type only, never exposing the actual values.

How to check if sensitive files are covered by gitignore?

Use the gitignore audit mode, which runs git check-ignore against expected sensitive paths like Helm values files, product clones, and log files. It compares git ls-files output against the required ignore list and flags any unprotected files.

Can this tool fix the security issues it finds?

No, it is strictly read-only and never edits files, commits, or changes cluster state. It produces a report with recommendations and delegates fixes to a devops role or the user, such as key rotation or gitignore updates.

Does the audit distinguish real leaks from false positives?

Yes, it documents known false positives like default admin:admin credentials for local minikube registries and RFC1918 private IP addresses. These are treated as expected local-dev defaults rather than reportable leaks.

What Kubernetes security issues does the ingress audit check?

It checks for insecure-registry and skip-tls-verify flags leaking into production-like environments, Ingress resources without TLS or ssl-redirect disabled, and command injection risks in scripts that rewrite /etc/hosts from untrusted URLs.