security

security is a cursor rule for Cursor from bordenet/golden-agents. It costs 375 tokens per session, scanned A, original, MIT.

Security rules for commits, dependency scanning, vulnerability upgrades, and secret handling. They require pre-commit hooks to run and say not to place secrets such as API keys in Git.

In plain words
What is it for?
Use them when committing code, scanning Node.js, Go, or Python dependencies, responding to CVEs, or choosing where to store secrets.
Why use it?
They reduce the risk of bypassed checks, exposed credentials, and known vulnerable dependencies. They also define how to validate a security upgrade before committing it.

Cursor rule for Cursor

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

Good fit Use them when committing code, scanning Node.js, Go, or Python dependencies, responding to CVEs, or choosing where to store secrets.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/bordenet/golden-agents/security
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/bordenet/golden-agents

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/bordenet/golden-agents/security/github.svg)](https://agentmods.dev/rules/bordenet/golden-agents/security)
Your own site
<a href="https://agentmods.dev/rules/bordenet/golden-agents/security"><img src="https://agentmods.dev/badge/rules/bordenet/golden-agents/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/bordenet/golden-agents/security"><img src="https://agentmods.dev/badge/rules/bordenet/golden-agents/security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 375 This file is loaded in full into every session.
When invoked 375 The same file — it is already loaded in full.
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.00375 $0.00375
Opus 5.5 $0.00150 $0.00150
Sonnet 5.5 $0.00075 $0.00075
Haiku 4.5 $0.00038 $0.00038

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

Security

Grade A, and why

security 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.

.cursor/rules/security.mdc · 64 lines

What it actually says

Security Workflow

Priority: CRITICAL - a leaked secret is not fixed by rewriting the sentence later.
Source: codebase-reviewer, scripts AGENTS.md, security-upgrade skill

🔒 Pre-Commit Hooks - NEVER BYPASS

Pre-commit hooks exist to protect intellectual property. NEVER disable or bypass them.

# ❌ NEVER DO THIS
git commit --no-verify

# ✅ ALWAYS DO THIS
git commit  # Let hooks run

Security Scanning Tools

Language Tool Command
Node.js npm audit npm audit --json
Go govulncheck govulncheck ./...
Python pip-audit pip-audit -r requirements.txt

Security Upgrade Workflow

  1. Discovery - Identify projects with dependencies
  2. Scan - Run security scanners
  3. Upgrade - Fix vulnerabilities
  4. Validate - Compile, test, verify
  5. Re-scan - Confirm fixes
  6. Commit - Push with green CI

CVE Response Priority

Severity Response Time
Critical Immediate
High Same day
Moderate Within week
Low Next release

Secret Management

  • NEVER commit secrets to git
  • Use environment variables for API keys
  • Store secrets in secure credential managers
  • Use .env.local files (gitignored)
  • Prompt for secrets interactively in setup scripts

For comprehensive security workflows:

  • superpowers-plus/skills/security-upgrade/
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 · 64 lines · 375 tokens per session scan A dba9f916a78b

Subscribe to this mod's changes

security is a cursor rule published in the GitHub repository bordenet/golden-agents (2 stars, last pushed 3d ago), licensed MIT. It adds 375 tokens to every session, about $0.0015 per session on Opus 5.5. 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-11-12.

Related

security compared with cursor rules from other repositories

security next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
securitybordenet/golden-agentsCursor rule23d agoMITA375Cursor
commitsm3au/playwright-bdd-cursor-templateCursor rule26d agoMITA0Cursor
no-ai-contributorsuwaserver/uwasCursor rule1383d agononeA177Cursor
git-workflowuseshape/ShapeCursor rule34yesterdaynoneA174Cursor
conventional-commitsssoriche/dotfilesCursor rule77d agononeA0Cursor
git-disciplinemennyg19-cmyk/MasterGenAIInstructionsCursor rule2todaynoneA656Cursor
git-commit-standardsivangrynenko/cursorrulesCursor rule881y agoMITA0Cursor