bartek-filipiuk

AI Agent Audit — Security skill for Claude Code

Security community

Read-only audit of a local developer machine for AI-agent-related security risks (Linux + macOS).

How to install AI Agent Audit

This entry records only its repository, not the path inside it, so there is no exact command to give. Open bartek-filipiuk/ai-agent-audit and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What AI Agent Audit does

Read-only audit of a local developer machine for AI-agent-related security risks (Linux + macOS). Ten modules covering credentials, AI tool config, token scope, supply-chain compromise indicators, sessions, and history.

Alternatives in Security

  • Security Ownership Map — Map people-to-file ownership, compute bus factor, and identify risks 14.6k ★
  • Skills Audit Report — Date: 2026-02-15 Auditor: Automated Skill Quality Audit Scope: Recently added skills in business-growth/, fina 5.3k ★
  • Agentseal — Security toolkit for AI agents 344 ★

README

ai-agent-audit

Read-only security audit of a local developer machine, focused on the attack surface that AI coding agents can reach.

This tool answers a single question: **"What can an AI coding agent see and do on this machine right now, and how bad would it be if one of them went off the rails?"**

It scans for credentials, tool configuration, hooks, MCP servers, agent skills, IDE extensions, session artifacts, and supply-chain compromise indicators that AI agents (Cursor, Claude Code, Gemini CLI, Cline, Aider, Codex, Windsurf, Amazon Q, and others) routinely have access to. Every finding maps to a documented incident class.

TL;DR

Read-only scan of `$HOME` for everything an AI coding agent can reach: SSH keys, cloud creds, npm/pip tokens, MCP server configs, AI hooks, repo-level `.claude/.cursor/` configs, agent skills, IDE extensions, plus credential leakage in shell history and session JSONL/SQLite. Outputs a security score (0–100) and five reports — Markdown, JSON, classified secrets inventory with redacted fingerprints, prioritised action plan, and a cyberpunk-themed HTML report that auto-opens in your browser. No network, no auto-remediation, no raw secret values written anywhere.

Quick start

**Install the skill globally** (works from any project, every Claude Code session):

git clone https://github.com/bartek-filipiuk/ai-agent-audit.git ~/.claude/skills/ai-agent-audit
chmod +x ~/.claude/skills/ai-agent-audit/scripts/run-audit.sh \
         ~/.claude/skills/ai-agent-audit/scripts/aggregate.sh \
         ~/.claude/skills/ai-agent-audit/scripts/lib/*.sh \
         ~/.claude/skills/ai-agent-audit/scripts/modules/*.sh

The `SKILL.md` at the repo root is what Claude Code auto-discovers.

**Run directly without an agent:**

bash ~/.claude/skills/ai-agent-audit/scripts/run-audit.sh
# HTML report auto-opens in your browser at the end.

**Or — let Claude Code handle it.** Drop one of these prompts into any session:

Run the ai-