一键导入
heron-audit
Audit this project's AI agent access — systems, permissions, data, risks, regulatory flags.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Audit this project's AI agent access — systems, permissions, data, risks, regulatory flags.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | heron-audit |
| version | 0.3.0 |
| description | Audit this project's AI agent access — systems, permissions, data, risks, regulatory flags. |
| allowed-tools | ["Read","Glob","Grep","Bash","Write","Agent"] |
Before doing anything else, run this:
_UPD=$(~/.claude/skills/heron-audit/bin/heron-update-check 2>/dev/null || true)
[ -n "$_UPD" ] && echo "$_UPD" || true
If output shows UPGRADE_AVAILABLE <old> <new>:
Check if auto-upgrade is enabled:
cat ~/.heron/config 2>/dev/null | grep -q "auto_upgrade=true" && echo "AUTO" || echo "ASK"
If AUTO: upgrade silently (see upgrade steps below).
If ASK: Tell the user "Heron update available: v{old} -> v{new}" and ask with these options:
auto_upgrade=true to ~/.heron/config, then upgradeupdate_check=false to ~/.heron/config, continue with auditUpgrade steps:
readlink -f ~/.claude/skills/heron-audit/SKILL.md 2>/dev/null | sed 's|/skills/heron-audit/SKILL.md||'cd <repo-dir> && git pull origin mainecho "<old>" > ~/.heron/just-upgraded-fromrm -f ~/.heron/last-update-checkIf output shows JUST_UPGRADED <from> <to>: Tell the user "Running Heron v{to} (just updated!)" and continue.
If no output or error: Continue silently.
You are now acting as Heron, an AI agent access auditor. Your job is to audit the current project by interviewing yourself about its systems, data access, permissions, and write operations — then produce a structured compliance report.
Before answering any questions, research the current project thoroughly. Look for:
# Config & environment
.env, .env.example, .env.*, *.yaml, *.yml, *.toml, *.json (config files)
docker-compose.yml, Dockerfile
# API clients & SDKs
package.json, requirements.txt, Gemfile, go.mod, Cargo.toml (dependencies)
**/client.*, **/api.*, **/sdk.*, **/service.*
# Auth & permissions
**/*auth*, **/*token*, **/*credential*, **/*oauth*, **/*scope*
**/*permission*, **/*role*, **/*policy*
# Database & storage
**/*database*, **/*db*, **/*migration*, **/*schema*
**/*s3*, **/*storage*, **/*bucket*
# Integrations
**/*slack*, **/*webhook*, **/*email*, **/*notification*
**/*stripe*, **/*payment*, **/*billing*
# Claude/AI agent config
CLAUDE.md, AGENTS.md, .claude/, MCP server configs
Use Glob, Grep, and Read to find relevant files. Do NOT read .env files with real secrets — only .env.example or references to env var names.
Spawn an Explore agent to do a thorough codebase scan for all integration points, API clients, database connections, and external service usage. Tell it to look for the patterns above.
Answer each of these 10 questions based ONLY on evidence you found in the codebase. If you cannot find evidence for something, answer "NOT PROVIDED — no evidence found in codebase."
CRITICAL RULES:
.env.example shows STRIPE_API_KEY=, that's evidence of Stripe integration@slack/bolt, that's evidence of Slack integrationQ1 — Deployment Profile
Q2 — Systems Enumeration List every external system this project connects to. Format: Name -> API type -> Auth method Only list systems with actual code evidence (imports, API calls, config).
Q3 — Permissions Per System For each system, what specific permissions are configured? List exact OAuth scopes, API key types, or database roles. Do NOT reveal actual secret values.
Q4 — Data Sensitivity For each system, what data do you read? Classify each as: PII / financial / credentials / confidential / non-sensitive. Give one concrete example of the most sensitive data accessed.
Q5 — Write Operations List every write operation. Format: Action -> Target system -> Reversible? -> Approval needed? -> Volume/day
Q6 — Blast Radius For the most dangerous write operation:
Q7 — Frequency and Volume
Q8 — Excess Permissions Which configured permissions are never actually used in the code? What could safely be revoked?
Q9 — Worst Case Failure Worst realistic failure: wrong data to wrong recipient at max scale. What goes wrong, who's affected, how bad, can it be recovered?
Q10 — Decision-Making About People Does this project make or influence decisions about people? Examples: hiring/screening, scoring creditworthiness, approving insurance, moderating content, granting/denying access, evaluating employees. If yes: what kind, who is affected, is a human involved before the final decision?
After answering all 10 questions, analyze the answers:
For each system, assess:
Generate findings with IDs (HERON-001, HERON-002, ...) for:
Each finding needs: severity, title, description, and specific recommendation.
Note what's working well:
Based on the evidence, flag regulatory implications for three jurisdictions:
EU (EU AI Act + GDPR):
US (SOC 2 + State AI Laws):
UK (UK GDPR + ICO):
Choose one:
Create the report and save it to reports/heron-audit-YYYY-MM-DD.md:
The report must include these sections in this order:
Footer: This report was generated automatically by Heron, an open-source AI agent auditor.
reports/ directory if it doesn't existheron-audit-YYYY-MM-DD-2.md