agentleFS
jhonatan-oliveiradevjhonatan-oliveiradev/agent-skills/skills/auditing-dependency-risk/SKILL.md

auditing-dependency-risk

Skill1 starsChanged 3 months agoMITView on GitHub

Use when a project needs software-supply-chain or third-party dependency risk assessed from manifests, lockfiles, advisories, provenance, maintenance signals, and realistic runtime exposure before upgrades or release.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the ecosystem's existing audit/advisory tooling when available and capture exact package, installed version, advisory/CVE, affected …

    line 17
  2. Very specific:

    Verify after remediation by regenerating the dependency graph/audit output and running the affected application's tests/build/security …

    line 27
  3. Distinctive:

    treat a clean vulnerability scan as proof that the supply chain is trustworthy.

    line 47
  4. Distinctive:

    After the chosen remediation, confirm the vulnerable resolved version/path is gone or mitigated, the lockfile is deterministic, and the …

    line 50

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Auditing Dependency Risk

Core principle

A dependency alert is evidence to investigate, not a complete risk decision. Prioritize by what is actually installed, reachable, privileged, exposed, and fixable in this application.

Scope rule

Audit only the project's authorized dependency graph, build chain, repositories, registries, and CI configuration. Prefer lockfile/SBOM evidence and the package ecosystem's established audit tooling. Do not execute untrusted package scripts merely to inspect a dependency.

Workflow

  1. Identify the dependency sources of truth: manifests, lockfiles, workspace configuration, containers/base images where relevant, generated SBOMs, package registries, and CI install commands.
  2. Separate direct, transitive, development, build-time, and runtime dependencies. Record where each high-risk component is used rather than treating the entire graph as equally exposed.
  3. Run the ecosystem's existing audit/advisory tooling when available and capture exact package, installed version, advisory/CVE, affected range, fixed range, and dependency path.
  4. Triage each material advisory by:
    • exploit preconditions and vulnerable feature/path;
    • runtime versus development/build exposure;
    • data/privilege/network access available to the component;
    • whether untrusted input can reach the vulnerable behavior;
    • known fix or mitigation availability.
  5. Review provenance and integrity controls: lockfile enforcement, immutable/pinned CI installs, registry configuration, package name/source ambiguity, checksum/signature/provenance support, and unexpected install scripts.
  6. Review dependency hygiene without equating age with vulnerability. Flag abandoned or opaque components when lack of maintenance materially increases future response risk.
  7. Choose the smallest safe remediation: patch/minor upgrade, dependency override, vulnerable feature removal, configuration mitigation, replacement, or temporary documented acceptance. Avoid blind major-version upgrades.
  8. Verify after remediation by regenerating the dependency graph/audit output and running the affected application's tests/build/security checks.
  9. Record residual risk and a re-check trigger for accepted findings, especially when no fixed version exists.

Finding format

For each material dependency risk, capture:

  • package and resolved version;
  • direct/transitive path and usage context;
  • advisory/source;
  • vulnerable behavior and reachability evidence;
  • application impact and privileges;
  • fix/mitigation options and compatibility risk;
  • verification evidence;
  • residual risk and owner.

Quality checks

Do not:

  • equate CVSS alone with application risk;
  • mark a dependency safe only because it is transitive or dev-only;
  • upgrade broad portions of the graph without proving necessity;
  • suppress advisories without documenting reachability and residual risk;
  • treat a clean vulnerability scan as proof that the supply chain is trustworthy.

Verification

After the chosen remediation, confirm the vulnerable resolved version/path is gone or mitigated, the lockfile is deterministic, and the application's relevant tests/build still pass. Keep evidence of any intentionally accepted risk.

References

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.