skill-security-auditor

Scans AI agent skill directories for malicious code, prompt injection, and supply chain risks.

Updated May 21, 2025
One-click install
npx skills add https://github.com/nielslataire/Group-LN --skill skill-security-auditor-nielslataire
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: skill-security-auditor
Source: https://github.com/nielslataire/Group-LN/tree/main/.claude/skills/skill-security-auditor
Command: npx skills add https://github.com/nielslataire/Group-LN --skill skill-security-auditor-nielslataire

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Installing AI agent skills from untrusted sources can introduce malicious code, prompt injection, credential theft, or data exfiltration into your environment. This Skill performs static security audits on skill directories or git repos before installation, producing a clear PASS, WARN, or FAIL verdict. ## Core Features & Use Cases - Code Pattern Scanning: Detects dangerous patterns in Python, Bash, and JavaScript files such as os.system, eval, subprocess with shell=True, base64 obfuscation, network exfiltration, and credential harvesting. - Prompt Injection Detection: Scans SKILL.md and markdown references for system prompt overrides, role hijacking, safety bypass directives, hidden zero-width characters, and data extraction instructions. - Supply Chain & Filesystem Checks: Flags typosquatted dependencies, unpinned versions, runtime pip installs, hidden files, binaries, symlinks, and writes outside the skill boundary. - Use Case: Before installing a community skill from GitHub, run the auditor against the repo URL to receive a severity-grouped report with remediation guidance for each finding. ## Quick Start Audit a local skill directory by asking the agent to run the skill_security_auditor.py script against the target path and report the verdict.

Frequently Asked Questions about skill-security-auditor

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

FAQPage Schema
How do I audit an AI agent skill for security before installing it?▼

Run the skill_security_auditor.py script against the skill directory or git repo URL. It statically scans scripts, markdown files, and dependencies, then returns a PASS, WARN, or FAIL verdict with findings grouped by severity and remediation guidance.

How to detect prompt injection in a SKILL.md file?▼

The auditor scans SKILL.md and all markdown reference files for patterns like 'ignore previous instructions', role hijacking, safety bypass directives, zero-width characters, and HTML comments containing hidden directives, flagging each with severity and fix guidance.

What dangerous Python patterns does a skill security scan detect?▼

It detects os.system, eval, exec, subprocess with shell=True, base64 and hex obfuscation, requests.post exfiltration, socket connections, reads of ~/.ssh or ~/.aws credentials, pickle and unsafe yaml.load deserialization, sudo usage, and cron manipulation.

Can I use this security audit in a CI/CD pipeline?▼

Yes. Run the script with --strict and --json flags in a CI step such as GitHub Actions. Exit code 0 means PASS, 1 means FAIL, and 2 means WARN, so the pipeline can block installation when the audit fails.

What are the limitations of static skill security scanning?▼

Static analysis cannot detect logic bombs, time-delayed payloads, or novel obfuscation that evades pattern matching, and it does not execute code. Dependency checks use local pattern matching rather than live CVE databases, so borderline results need manual review.