/engineering-advanced-skills:skill-security-auditorfrom engineering-advanced-skills
Scans AI agent skills for security risks before install: prompt injection, dangerous code, exfiltration, credential harvesting, and supply chain issues. Produces PASS/WARN/FAIL verdicts with remediation guidance.
Ships in engineering-advanced-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Scan and audit AI agent skills for security risks before installation. Performs static analysis on Python files for dangerous patterns, scans markdown, text and YAML for prompt injection, and checks dependency manifests. Produces a PASS / WARN / FAIL verdict with findings by severity and remediation guidance.
What a verdict means. The scanners match regular expressions line by line. They catch the common, unobfuscated forms of each attack and are easy to evade (string building, encoding, indirection through helpers). PASS means "nothing obvious was found", not "safe". For any skill from an untrusted source, read the scripts yourself after a PASS, and treat WARN as "read these lines before installing".
os.system, subprocess shell=True, backticks), eval/exec/compile, obfuscation (base64/hex/chr()), network exfiltration, credential harvesting (~/.ssh, ~/.aws), privilege escalation.requirements*.txt and package.json, inline pip/npm install. Pinned versions are not checked against advisories; run pip-audit, npm audit or OSV-Scanner for CVEs.references/audit-output-and-workflow.md, not automated) — out-of-scope paths, hidden or credential files, unexpected binaries, escaping symlinks, oversized payloads.Before the audit, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
| Tool | Purpose | Command |
|---|---|---|
code_scanner.py | Scan Python scripts for eval/exec, subprocess, network exfiltration, credential harvesting, obfuscation, unsafe imports | python scripts/code_scanner.py <target> --strict --json |
prompt_injection_scanner.py | Scan markdown/text for prompt-injection patterns and hidden directives | python scripts/prompt_injection_scanner.py <target> --strict --json |
supply_chain_checker.py | Check imports/requirements for typosquatting, unpinned versions, inline installs | python scripts/supply_chain_checker.py <target> --strict --json |
All tools take a target (file or directory), and support --strict (any HIGH → FAIL) and --json.
Exit codes: 0 PASS or WARN, 1 FAIL (any CRITICAL, or any HIGH with --strict), 2 target
does not exist. A directory with nothing scannable exits 0 with a note on stderr.
Samples: assets/sample_malicious_skill/ (hidden override comment, credential read with a
clause asking the assistant to hide it, os.system concatenation, ~/.ssh exfiltration, a typosquatted
reqeusts pin) fails all three scanners; assets/sample_benign_skill/ passes all three.
python scripts/code_scanner.py assets/sample_malicious_skill # exit 1
python scripts/prompt_injection_scanner.py assets/sample_malicious_skill # exit 1
python scripts/supply_chain_checker.py assets/sample_benign_skill # exit 0
Load the reference that matches the task — keep this file lean and pull detail on demand:
This skill covers:
requirements*.txt and package.json, plus inline installs in .py and .sh filesThis skill does NOT cover:
skill-tester for runtime validation)dependency-auditor for active CVE scanning)infrastructure-compliance-auditor in ra-qm-team)information-security-manager-iso27001 and gdpr-dsgvo-expert in ra-qm-team)| Skill | Integration | Data Flow |
|---|---|---|
dependency-auditor | Feed audit findings into live CVE scanning for flagged dependencies | Security audit report → dependency-auditor for real-time vulnerability lookup |
ci-cd-pipeline-builder | Embed the audit workflow as a required check in generated CI/CD pipelines | Pipeline template ← audit job YAML from this skill's CI/CD section |
skill-tester | Run dynamic runtime tests on skills that pass static analysis | PASS verdict from this skill → skill-tester for behavioral validation |
infrastructure-compliance-auditor | Extend auditing scope from skill-level to infrastructure-level security controls | Skill audit findings → infrastructure auditor for environment-wide posture review |
env-secrets-manager | Cross-reference credential harvesting findings with secrets management policy | Credential-access flags from audit → env-secrets-manager for policy verification |
pr-review-expert | Surface audit findings as inline PR review comments on flagged lines | Audit report line references → PR review annotations for developer visibility |
Mistake: Installing an untrusted skill because all three scanners returned PASS. Why it happens: A green verdict reads like a clearance. Instead: The scanners are regex tripwires. Read every script in an untrusted skill, look for string-built commands, encoded blobs and network calls, and only then install.
Mistake: Executing a suspicious skill's scripts (or its test runner) to "see what it does". Why it happens: Dynamic testing feels more thorough. Instead: Audit statically first. Run code only in a disposable sandbox with no credentials and no network, and only after the static pass is clean.
Mistake: Accepting a dependency list because every version is pinned. Why it happens: The checker's unpinned warnings disappear. Instead: Pinning makes builds reproducible, not safe. Run the ecosystem's advisory scanner on the pinned set.
| File | Purpose |
|---|---|
scripts/code_scanner.py | Python code patterns: command injection, eval/exec, obfuscation, exfiltration, credential harvesting |
scripts/prompt_injection_scanner.py | Prompt-injection patterns in markdown, text and YAML |
scripts/supply_chain_checker.py | Typosquats, unpinned versions, inline installs |
assets/sample_malicious_skill/ | Hostile fixture (all scanners exit 1) |
assets/sample_benign_skill/ | Benign fixture (all scanners exit 0) |
references/*.md | Threat model and patterns, report format and CI wiring, limitations and checklists |
assets/sample_benign_skill/INSTRUCTIONS.md (opens in a new tab)assets/sample_benign_skill/formatter.py (opens in a new tab)assets/sample_benign_skill/requirements.txt (opens in a new tab)assets/sample_malicious_skill/INSTRUCTIONS.md (opens in a new tab)assets/sample_malicious_skill/helper.py (opens in a new tab)assets/sample_malicious_skill/package.json (opens in a new tab)assets/sample_malicious_skill/requirements.txt (opens in a new tab)references/audit-output-and-workflow.md (opens in a new tab)references/quality-and-best-practices.md (opens in a new tab)references/threat-model-and-patterns.md (opens in a new tab)scripts/code_scanner.py (opens in a new tab)scripts/prompt_injection_scanner.py (opens in a new tab)scripts/supply_chain_checker.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
/agenthubRuns a multi-agent job as a dependency graph: validates the DAG, tracks each agent's state on a board, then ranks and merges their outputs. Use when spawning parallel agents, monitoring a run, or merging results.
/agentic-evaluation-frameworkBuilds LLM and agent evals: weighted rubrics, LLM-as-judge design, inter-rater agreement and pairwise ranking (Elo, Bradley-Terry) from scores you collect. Use when setting up a judge, scoring outputs, or comparing model or prompt variants.
/agent-protocolDesign AI agent communication protocols: MCP tool schemas, A2A, function calling, and inter- agent messaging. Use when building multi-agent systems, defining tool interfaces, or implementing agent-to-agent communication.
Other plugins' skills for the same job