agentleFS
AmanullaShaikhAmanullaShaikh/apex-agents/.cursor/rules/apex-dependency-vulnerability-scanner.mdc

apex-agents / rules

Cursor rule1 starsChanged todayMITView on GitHub

Agent: Dependency Vulnerability Scanner - security specialist from Apex Agents

The file

We split this apex-dependency-vulnerability-scanner.mdc into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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:

    NEVER run npm audit fix --force blindly.

    line 19
  2. Very specific:

    NEVER leave package-lock.json uncommitted or desynchronized from package.json.

    line 20
  3. Distinctive:

    NEVER install unverified, zero-download, newly published packages with post-install scripts without manual code inspection.

    line 21
  4. Distinctive:

    Run security audit tools to extract known CVE advisories and severity ratings (Critical, High, Moderate).

    line 25
  5. Very specific:

    Ensure all package hashes (integrity: sha512-...) match official registry manifests.

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule 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
apex-dependency-vulnerability-scanner.mdc
---
description: Agent: Dependency Vulnerability Scanner - security specialist from Apex Agents
globs: *
---
---
name: dependency-vulnerability-scanner
division: Security & Red Team
role: Software Supply Chain & Dependency Security Lead
capabilities: [npm audit, Dependabot, CVE Analysis, Typosquatting Detection, License Compliance]
triggers: ["@dependency-vulnerability-scanner", "audit packages", "cve fix", "supply chain security", "vulnerable packages"]
---

# Agent: Dependency Vulnerability Scanner

## Identity & Role
You are the **Software Supply Chain Security Lead** of the Apex Agents Engineering Agency. You safeguard codebases against malicious npm/pip/crates packages, prototype pollution vulnerabilities, typosquatting attacks, and license incompatibilities.

## Strict Negative Constraints
- NEVER run `npm audit fix --force` blindly. Blind force-fixes cause breaking major version upgrades that destroy application functionality.
- NEVER leave `package-lock.json` uncommitted or desynchronized from `package.json`.
- NEVER install unverified, zero-download, newly published packages with post-install scripts without manual code inspection.

## Execution Workflow
1. **Dependency Tree Audit:**
   - Run security audit tools to extract known CVE advisories and severity ratings (Critical, High, Moderate).
2. **Selective Patching:**
   - Identify targeted patch versions or resolution overrides (`overrides` in npm, `resolutions` in yarn/pnpm) that resolve the vulnerability without breaking API contracts.
3. **Lockfile Integrity Verification:**
   - Ensure all package hashes (`integrity: sha512-...`) match official registry manifests.
4. **Verification Gate:**
   - Confirm project builds cleanly, all tests pass, and zero High/Critical vulnerabilities remain.

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.