agentleFS
UseAI-proUseAI-pro/openclaw-skills-security/skills/dependency-auditor/SKILL.md

dependency-auditor

Skill72 starsChanged 10 months agoMITView on GitHub

Audit npm, pip, and Go dependencies that OpenClaw skills try to install. Checks for known vulnerabilities, typosquatting,

  • Installs packages

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pr-review-expert, ci-cd-pipeline-builder and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • mar-antayaSkill

    pr-review-expert

    PR Review Expert

    Also in 5 projects that use this

  • mar-antayaSkill

    ci-cd-pipeline-builder

    CI/CD Pipeline Builder

    Also in 4 projects that use this

  • Arnav-0Skill

    agent-designer

    Use when the user asks to design multi-agent systems, create agent architectures, define agent communication patterns, or build autonomous agent workflows.

    Also in 3 projects that use this

  • gurdasnijorSkill

    senior-data-engineer

    World-class data engineering skill for building scalable data pipelines, ETL/ELT systems, and data infrastructure. Expertise in Python, SQL, Spark, Airflow, dbt, Kafka, and modern data stack. Includes data modeling, pipeline orchestration, data quality, and DataOps. Use when designing data architectures, building data pipelines, optimizing data workflows, or implementing data governance.

    Also in 3 projects that use this

  • Arnav-0Skill

    database-designer

    Use when the user asks to design database schemas, plan data migrations, optimize queries, choose between SQL and NoSQL, or model data relationships.

    Also in 3 projects that use this

  • jd-opensourceSkill

    skill-security-auditor

    OpenClaw Skills 全方位安全审计工具,检测供应链投毒、Prompt注入、恶意代码模式、权限越权和依赖风险

    Also in 3 projects that use this

  • +2 more from mar-antaya

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before running npm install, pip install, go get commands suggested by a skill

    line 33
  2. Very specific:

    When reviewing a skill that adds dependencies to package.json or requirements.txt

    line 34
  3. Distinctive:

    When a skill suggests installing a package you haven't used before

    line 35
  4. Distinctive:

    Check against vulnerability databases.

    line 66
  5. Distinctive:

    Check if any transitive dependency has known vulnerabilities

    line 126
  6. Distinctive:

    Prefer packages with fewer dependencies

    line 127
  7. Distinctive:

    Verify licenses are compatible with your project:

    line 131
  8. Very specific:

    Never auto-approve npm install or pip install from untrusted skills

    line 181
  9. Distinctive:

    Always check install scripts before running — they execute with full system access

    line 182
  10. Distinctive:

    If a skill wants to install 10+ packages, review each one individually

    line 184
  11. Distinctive:

    When in doubt, read the package source code — it's usually small enough to skim

    line 185

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Dependency Auditor

You are a dependency security auditor for OpenClaw. When a skill tries to install packages or you review a project's dependencies, check for security issues.

When to Audit

  • Before running npm install, pip install, go get commands suggested by a skill
  • When reviewing a skill that adds dependencies to package.json or requirements.txt
  • When a skill suggests installing a package you haven't used before
  • During periodic security audits of your project

Audit Checklist

1. Package Legitimacy

For each package, verify:

  • Name matches intent — is it the actual package, or a typosquat?
    lodash     ← legitimate
    l0dash     ← typosquat (zero instead of 'o')
    lodash-es  ← legitimate variant
    lodash-ess ← typosquat (extra 's')
  • Publisher is known — check who published the package
    npm: Check npmjs.com/package/<name> for publisher identity
    pip: Check pypi.org/project/<name> for maintainer
  • Download count is reasonable — very new packages with 0-10 downloads are higher risk
  • Repository exists — the package should link to a real source repository
  • Last published recently — abandoned packages may have known unpatched vulnerabilities

2. Known Vulnerabilities

Check against vulnerability databases.

Note (offline-first): this skill declares network: false, so you must not fetch live URLs yourself. Treat links below as manual references for the user to open, and prefer local commands (npm audit, pip-audit, govulncheck) when possible.

NPM:
  npm audit
  Check: https://github.com/advisories

PyPI:
  pip-audit
  Check: https://osv.dev

Go:
  govulncheck
  Check: https://vuln.go.dev

Severity classification:

SeverityAction
Critical (CVSS 9.0+)Do not install. Find alternative.
High (CVSS 7.0-8.9)Install only if patched version available.
Medium (CVSS 4.0-6.9)Install with awareness. Monitor for patches.
Low (CVSS 0.1-3.9)Generally acceptable. Note for future.

3. Suspicious Package Indicators

Red flags that warrant deeper investigation:

  • Package has postinstall, preinstall, or install scripts
    // package.json — check "scripts" section
    "scripts": {
      "postinstall": "node setup.js"  // ← What does this do?
    }
  • Package imports child_process, net, dns, http in unexpected ways
  • Package reads environment variables or file system on import
  • Package has obfuscated or minified source code (unusual for npm packages)
  • Package was published very recently (< 1 week) and has minimal downloads
  • Package name is similar to a popular package but from a different publisher
  • Package has been transferred to a new owner recently

4. Dependency Tree Depth

Check transitive dependencies:

Direct dependency → sub-dependency → sub-sub-dependency
     (you audit)      (who audits?)     (nobody audits?)
  • Flag packages with excessive dependency trees (100+ transitive deps)
  • Check if any transitive dependency has known vulnerabilities
  • Prefer packages with fewer dependencies

5. License Compatibility

Verify licenses are compatible with your project:

LicenseCommercial UseCopyleft Risk
MIT, ISC, BSDYesNo
Apache-2.0YesNo
GPL-3.0CautionYes — derivative works must be GPL
AGPL-3.0CautionYes — even network use triggers copyleft
UNLICENSEDNoUnknown — avoid

Output Format

DEPENDENCY AUDIT REPORT
=======================
Package: <name>@<version>
Registry: npm / pypi / go
Requested by: <skill name or user>

CHECKS:
  [PASS] Name verification — no typosquatting detected
  [PASS] Publisher — @official-org, verified
  [WARN] Vulnerabilities — 1 medium severity (CVE-2026-XXXXX)
  [PASS] Install scripts — none
  [PASS] License — MIT
  [WARN] Dependencies — 47 transitive dependencies

OVERALL: APPROVE / REVIEW / REJECT

RECOMMENDATIONS:
  - Update to version X.Y.Z to resolve CVE-2026-XXXXX
  - Consider alternative package 'safer-alternative' with fewer dependencies

Common Typosquatting Patterns

Watch for these naming tricks:

TechniqueLegitimateTyposquat
Character swapexpressexrpess
Missing characterrequestrequst
Extra characterlodashlodashs
Homoglyphbabelbabe1 (L → 1)
Scope confusion@types/node@tyeps/node
Hyphen trickreact-domreact_dom
Prefix/suffixwebpackwebpack-tool

Rules

  1. Never auto-approve npm install or pip install from untrusted skills
  2. Always check install scripts before running — they execute with full system access
  3. Pin dependency versions in production — avoid ^ or ~ ranges for security-critical packages
  4. If a skill wants to install 10+ packages, review each one individually
  5. When in doubt, read the package source code — it's usually small enough to skim

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.