dependency-audit

dependency-audit is a cursor rule for Cursor from briiirussell/cybersecurity-skills. It costs 164 tokens per session (7,692 once invoked), scanned B, original, MIT.

A security review of a project's packages, frameworks, programming languages, runtimes, and development tools. It checks for known vulnerabilities called CVEs and unsafe supply-chain practices.

In plain words
What is it for?
Use it to inspect package manifests, lock files, framework versions, language runtimes, Docker bases, infrastructure providers, and CI/CD tools.
Why use it?
It helps identify outdated or compromised components before they create security problems.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: reads .claude/ paths; mentions AGENTS.md.

Good fit Use it to inspect package manifests, lock files, framework versions, language runtimes, Docker bases, infrastructure providers, and CI/CD tools.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/briiirussell/cybersecurity-skills/dependency-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/briiirussell/cybersecurity-skills

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dependency-audit

README.md
[![agentmods](https://agentmods.dev/badge/rules/briiirussell/cybersecurity-skills/dependency-audit/github.svg)](https://agentmods.dev/rules/briiirussell/cybersecurity-skills/dependency-audit)
Your own site
<a href="https://agentmods.dev/rules/briiirussell/cybersecurity-skills/dependency-audit"><img src="https://agentmods.dev/badge/rules/briiirussell/cybersecurity-skills/dependency-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dependency-audit

Your own site · 80×15
<a href="https://agentmods.dev/rules/briiirussell/cybersecurity-skills/dependency-audit"><img src="https://agentmods.dev/badge/rules/briiirussell/cybersecurity-skills/dependency-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 164 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,692 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00164 $0.07692
Opus 5.5 $0.00066 $0.03077
Sonnet 5.5 $0.00033 $0.01538
Haiku 4.5 $0.00016 $0.00769

Measured today against content hash 3a407f5ead55, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

dependency-audit scanned grade B with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

| 6 | Checksum or signature fetched from the same origin as the artifact; `curl \| sh` | `grep -rnE "(curl\|wget).*(\.sha256\|checksums\|\.sig\|\.asc)"` and `grep -rnE "(curl\|wget)[^\|]*\|\s*(ba)?sh"` |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Reads MCP configurationlowAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

grep -nE '"docker"' -A8 .mcp.json .cursor/mcp.json 2>/dev/null | grep -vE ':[0-9][^"]*"|@sha256:'

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| 6 | Checksum or signature fetched from the same origin as the artifact; `curl \| sh` | `grep -rnE "(curl\|wget).*(\.sha256\|checksums\|\.sig\|\.asc)"` and `grep -rnE "(curl\|wget)[^\|]*\|\s*(ba)?sh"` |
adapters/cursor/dependency-audit.mdc · 423 lines

How it starts

The opening of the file, as written. The whole thing — 423 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Dependency Audit — Framework, Package, and Toolchain Security

Audit project dependencies, frameworks, language runtimes, and dev tools for known vulnerabilities (CVEs), security anti-patterns, and supply chain risks.

Cross-references: patch-sweep for patching the same advisory across many repos; scanner-pipeline for running osv-scanner / trivy in CI across every lockfile at once; agent-supply-chain-audit for reviewing the content of MCP servers, skills, and plugins this skill inventories; cloud-audit "PaaS" for platform runtime and config checks behind Mitigated (platform/config); secrets-audit for tokens found in .npmrc or CI; iam-audit for the cloud roles CI assumes via OIDC; finding-triage for dispositioning individual findings.

Authorization

Confirm the user owns or is authorized to audit the repo, CI system, and registries before running anything. Audit tools are read-only, but fix commands (audit fix, bundle update) rewrite lockfiles. Run them only when asked, on a branch, never on the production branch directly.

Methodology

Step 0: Confirm What Ships

Before inventorying anything, confirm you are auditing the code that is actually deployed:

  • Production branch: the branch the platform or deploy workflow builds from (Vercel/Netlify production branch, Heroku pipeline, on: push: branches: in the deploy workflow). It is not always main. In one field sweep, main held only a README.
  • Monorepos: which app or package is deployed, and its lockfile or workspace slice.
  • Package manager: which lockfile is committed and the packageManager field. This decides the audit command in Step 2.

If the deployed branch can't be confirmed from the repo, say which branch you audited and mark it needs_validation. Details: references/fixing-safely.md §10.

Step 1: Inventory the Stack

Identify everything in use — not just direct dependencies but the full chain:

Package manifests — read and catalog:

Node/JS:    package.json, package-lock.json, yarn.lock, pnpm-lock.yaml
Python:     requirements.txt, Pipfile.lock, pyproject.toml, poetry.lock
Ruby:       Gemfile, Gemfile.lock
Go:         go.mod, go.sum
Rust:       Cargo.toml, Cargo.lock
Java:       pom.xml, build.gradle
PHP:        composer.json, composer.lock
.NET:       *.csproj, packages.config

Read the full file on GitHub · 423 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +142 lines · +72 tokens per session scan A → B 3a407f5ead55
  2. 1mo ago First seen · 281 lines · 92 tokens per session scan A 31936d650517

Subscribe to this mod's changes

dependency-audit is a cursor rule published in the GitHub repository briiirussell/cybersecurity-skills (435 stars, last pushed today), licensed MIT. It adds 164 tokens to every session and 7,692 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it B with 3 findings (downloads and executes remote code, reads mcp configuration, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.