dependency-audit

dependency-audit is a cursor rule for Cursor from GktuOktay/ai-skills. It costs 0 tokens per session (730 once invoked), scanned A, original, MIT.

A security review rule for third-party packages such as npm, pip, and Maven libraries. CVEs are publicly recorded software vulnerabilities.

In plain words
What is it for?
It is for listing direct and indirect packages, scanning for CVEs, assessing risk, checking lockfiles, and setting up automated dependency checks.
Why use it?
It helps find vulnerable or tampered dependencies before they become a path into the application or its build process.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit It is for listing direct and indirect packages, scanning for CVEs, assessing risk, checking lockfiles, and setting up automated dependency checks.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/gktuoktay/ai-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/GktuOktay/ai-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/gktuoktay/ai-skills/dependency-audit/github.svg)](https://agentmods.dev/rules/gktuoktay/ai-skills/dependency-audit)
Your own site
<a href="https://agentmods.dev/rules/gktuoktay/ai-skills/dependency-audit"><img src="https://agentmods.dev/badge/rules/gktuoktay/ai-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/gktuoktay/ai-skills/dependency-audit"><img src="https://agentmods.dev/badge/rules/gktuoktay/ai-skills/dependency-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 730 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00000 $0.00730
Opus 5 $0.00000 $0.00365
Sonnet 5 $0.00000 $0.00146
Haiku 4.5 $0.00000 $0.00073

Measured 5d ago against content hash 8c202a56af84, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

dependency-audit scanned grade A with 0 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 5d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/cursor/rules/dependency-audit.mdc · 68 lines

How it starts

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

Software Composition & Dependency Auditing

Overview

This skill focuses on managing the security of third-party libraries and tools used in your project. It covers Software Composition Analysis (SCA), auditing dependencies, handling Common Vulnerabilities and Exposures (CVEs), preventing lockfile poisoning, and establishing automated update strategies.

Core Principles

1. Software Composition Analysis (SCA)

Understand what comprises your application.

  • Inventory: Maintain an accurate inventory of all direct and transitive dependencies (e.g., SBOM - Software Bill of Materials).
  • Continuous Monitoring: Regularly scan your dependency tree for known vulnerabilities.

2. Auditing Dependencies

Ensure that libraries pulled from package managers (npm, pip, Maven, etc.) are safe.

  • Run audits regularly: Use built-in tools like npm audit, pip-audit, or third-party tools like Snyk or OWASP Dependency-Check in your CI/CD pipeline.
  • Assess risk: Evaluate the severity of CVEs. A high-severity vulnerability in a dev dependency might pose a lower risk than a medium-severity one in production code, but both should be addressed.

3. Supply Chain Security and Lockfile Poisoning

Prevent malicious packages from entering your build process.

  • Lock files: Always commit your lock files (package-lock.json, yarn.lock, Pipfile.lock, requirements.txt with hashes) to ensure deterministic builds.
  • Verify integrity: Ensure package managers are configured to check integrity hashes. Watch out for unauthorized changes to lock files during PR reviews (lockfile poisoning).
  • Typosquatting: Double-check package names before installation to avoid typosquatting attacks (e.g., electro instead of electron).

4. Automated Dependency Updates

Keep dependencies up-to-date to patch vulnerabilities proactively.

  • Automation tools: Use tools like Dependabot or Renovate to automatically create PRs for dependency updates.
  • Testing: Ensure you have a robust automated test suite so you can confidently merge dependency updates.

Read the full file on GitHub · 68 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. 5d ago First seen · 68 lines · 730 tokens per session scan A 8c202a56af84

Subscribe to this mod's changes

dependency-audit is a cursor rule published in the GitHub repository GktuOktay/ai-skills (2 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 730 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.