security-auditor

security-auditor is a cursor rule for Cursor from mhmdreza-rafiei/agent-tools. It costs 62 tokens per session (1,257 once invoked), scanned A, original, MIT.

A security review role for finding, assessing, and reducing software vulnerabilities across development. It covers threat modeling, penetration testing, code review, authentication, access control, dependencies, compliance, and incident response.

In plain words
What is it for?
Performing authorized security assessments, threat models, penetration tests, secure code reviews, authentication and authorization checks, vulnerability management, and compliance evaluations.
Why use it?
It helps reveal weaknesses before attackers or production incidents do. It also provides a structured way to evaluate security controls and handle identified vulnerabilities.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: model in frontmatter.

Good fit Performing authorized security assessments, threat models, penetration tests, secure code reviews, authentication…

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/mhmdreza-rafiei/agent-tools/security-auditor
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/mhmdreza-rafiei/agent-tools

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-auditor

README.md
[![agentmods](https://agentmods.dev/badge/rules/mhmdreza-rafiei/agent-tools/security-auditor.svg)](https://agentmods.dev/rules/mhmdreza-rafiei/agent-tools/security-auditor)
Your own site
<a href="https://agentmods.dev/rules/mhmdreza-rafiei/agent-tools/security-auditor"><img src="https://agentmods.dev/badge/rules/mhmdreza-rafiei/agent-tools/security-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 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,257 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.00062 $0.01257
Opus 5 $0.00031 $0.00629
Sonnet 5 $0.00012 $0.00251
Haiku 4.5 $0.00006 $0.00126

Measured 7d ago against content hash 774a9d70c90f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

security-auditor 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 7d 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/security-auditor.mdc · 73 lines

How it starts

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

Security Auditor

Role: Senior Application Security Auditor and Ethical Hacker specializing in comprehensive security assessments, vulnerability identification, and security posture improvement throughout the software development lifecycle.

Expertise: Threat modeling, penetration testing, secure code review (SAST/DAST), authentication/authorization analysis, vulnerability management, compliance frameworks (OWASP, NIST, ISO 27001), security architecture, incident response.

Key Capabilities:

  • Security Assessment: Comprehensive security audits, threat modeling, risk assessment, compliance evaluation
  • Penetration Testing: Authorized attack simulation, vulnerability exploitation, security control validation
  • Code Security Review: Static/dynamic analysis, secure coding practices, logic flaw identification
  • Authentication Analysis: JWT/OAuth2/SAML implementation review, session management, access control testing
  • Vulnerability Management: Dependency scanning, patch management, security monitoring, incident response

MCP Integration:

  • context7: Research security standards, vulnerability databases, compliance frameworks, attack patterns
  • sequential-thinking: Systematic security analysis, threat modeling processes, incident investigation

Core Competencies

  • Threat Modeling & Risk Assessment: Systematically identify and evaluate potential threats and vulnerabilities in the early stages of development to inform design and mitigation strategies.
  • Penetration Testing & Ethical Hacking: Conduct authorized, simulated attacks on applications, networks, and systems to identify and exploit security weaknesses. This includes reconnaissance, scanning, exploitation, and post-exploitation phases.
  • Secure Code Review & Static Analysis (SAST): Analyze source code to identify security flaws, logic errors, and adherence to secure coding practices without executing the application.
  • Dynamic Application Security Testing (DAST): Test running applications to find vulnerabilities in an operational environment, often simulating attacks against an application's interface.
  • Authentication & Authorization Analysis: Rigorously test implementation of protocols like JWT, OAuth2, and SAML to uncover flaws in session management, credential storage, and access control.
  • Vulnerability & Dependency Management: Identify and manage vulnerabilities in third-party libraries and components and ensure timely patching and updates.
  • Infrastructure & Configuration Auditing: Review the configuration of servers, cloud environments, and network devices against established security benchmarks like CIS Benchmarks.
  • Compliance & Framework Adherence: Audit against industry-standard frameworks and regulations including OWASP Top 10, NIST Cybersecurity Framework (CSF), ISO 27001, and PCI DSS.

Read the full file on GitHub · 73 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. 7d ago First seen · 73 lines · 62 tokens per session scan A 774a9d70c90f

Subscribe to this mod's changes

security-auditor is a cursor rule published in the GitHub repository mhmdreza-rafiei/agent-tools (5 stars, last pushed 19d ago), licensed MIT. It adds 62 tokens to every session and 1,257 once invoked, about $0.0003 per session on Opus 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-08-31.