security

security is a cursor rule for Cursor from rajitsaha/100xprism. It costs 5 tokens per session (1,106 once invoked), scanned A, original, MIT.

Instructions for acting as a security engineer who scans a project for vulnerable dependencies and accidentally exposed secrets.

In plain words
What is it for?
Use it to detect package managers, check dependencies and secrets, apply suitable fixes, and document remaining risks.
Why use it?
It helps find security risks in package files and source code, then separate fixable issues from those that need reporting.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./venv/bin/pip-audit 2>/dev/null || (./venv/bin/pip install pip-audit && ./venv/bin/pip-audit).

Good fit Use it to detect package managers, check dependencies and secrets, apply suitable fixes, and document remaining risks.

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/rajitsaha/100xprism
agentmods
npx agentmods add rules/rajitsaha/100xprism/security

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 security

README.md
[![agentmods](https://agentmods.dev/badge/rules/rajitsaha/100xprism/security/github.svg)](https://agentmods.dev/rules/rajitsaha/100xprism/security)
Your own site
<a href="https://agentmods.dev/rules/rajitsaha/100xprism/security"><img src="https://agentmods.dev/badge/rules/rajitsaha/100xprism/security/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 security

Your own site · 80×15
<a href="https://agentmods.dev/rules/rajitsaha/100xprism/security"><img src="https://agentmods.dev/badge/rules/rajitsaha/100xprism/security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,106 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00005 $0.01106
Opus 5 $0.00003 $0.00553
Sonnet 5 $0.00001 $0.00221
Haiku 4.5 $0.00001 $0.00111

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

Security

Grade A, and why

security scanned grade A with 1 finding 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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

. | grep -v node_modules | grep -v venv | grep -v dist | grep -v ".claude/" \

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

.cursor/rules/security.mdc · 139 lines

How it starts

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

Suggested model tier: balanced (moderate reasoning)

Security — Vulnerability Scanner & Secret Audit

You are a security engineer. Auto-detect package managers, scan for vulnerabilities and leaked secrets, fix what's fixable, report the rest.

Do NOT ask for permission — scan everything, fix what you can, report the rest.


Step 1 — Detect package managers

PROJECT_ROOT=$(git rev-parse --show-toplevel)
cd "$PROJECT_ROOT"
ls package.json api/package.json requirements.txt pyproject.toml 2>/dev/null

Step 2 — Load project-specific known exceptions

Read the project instruction file for any documented known exceptions before determining what is blocking:

# Detect project instruction file
INSTRUCTION_FILE=$(for f in CLAUDE.md AGENTS.md .cursorrules; do [ -f "$PROJECT_ROOT/$f" ] && echo "$PROJECT_ROOT/$f" && break; done)
[ -n "$INSTRUCTION_FILE" ] && grep -A3 -i "known exception\|security exception\|audit exception" "$INSTRUCTION_FILE" 2>/dev/null | head -30

In addition, the following patterns are universally non-blocking across all projects (install-time only, not runtime risks):

  • tar, node-gyp, @mapbox/node-pre-gyp, cacache, make-fetch-happen — native addon compilation during npm install
  • undici via Firebase SDK when fix requires --force (breaks Vite/other deps)
  • sqlite3 install-time compilation deps

Any high/critical vulnerability NOT matching the above patterns → BLOCKING.


Step 3 — Dependency vulnerability scan

npm projects:

# Root (frontend)
npm audit --json 2>/dev/null

# Backend (if api/ exists)
cd api && npm audit --json 2>/dev/null

Build severity summary per project:

Project Critical High Moderate Low Total

Detail each critical/high: package, severity, advisory title, fix available, dependency chain, exception status.

Python projects:

./venv/bin/pip-audit 2>/dev/null || (./venv/bin/pip install pip-audit && ./venv/bin/pip-audit)

Read the full file on GitHub · 139 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 · 139 lines · 5 tokens per session scan A c497935b2b83

Subscribe to this mod's changes

security is a cursor rule published in the GitHub repository rajitsaha/100xprism (10 stars, last pushed 8d ago), licensed MIT. It adds 5 tokens to every session and 1,106 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.