matank001/cursor-security-rules

This repository contains Cursor Security Rules designed to improve the security of both development workflows and AI agent usage within the Cursor environment. These rules aim to enforce safe coding practices, control sensitive operations, and reduce risk in AI-assisted development.

381Stars on the repository
16Mods indexed here, across every type
1y agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

matank001/cursor-security-rules

Cursor rule Cursor needs its repo

Path traversal attacks occur when user-controlled input is used to construct file paths, allowing attackers to access files outside the intended directory. This can lead to unauthorized file access, data leakage, or system compromise.

not rated 381 +1 1y ago A 2,694 tokens original MIT

secure-dev-c-sharp

02

matank001/cursor-security-rules

Cursor rule Cursor needs its repo

These rules apply to all C#/.NET code in the repository and aim to prevent common security risks through disciplined use of input validation and deserialization, output encoding, and safe APIs.

not rated 381 +1 1y ago A 0 tokens original MIT

secure-dev-c

03

matank001/cursor-security-rules

Cursor rule Cursor

These rules apply to all C source and header files in the repository and aim to prevent memory corruption, code injection, and unsafe system behavior.

not rated 381 +1 1y ago A 0 tokens original MIT

secure-dev-java

05

matank001/cursor-security-rules

Cursor rule Cursor

These rules apply to all Java code in the repository (including Spring, Jakarta EE, and standalone apps) and aim to prevent common security risks through disciplined use of input validation, safe APIs, and secure coding patterns.

not rated 381 +1 1y ago A 0 tokens original MIT

secure-dev-node

06

matank001/cursor-security-rules

Cursor rule Cursor

These rules apply to all Node.js code in the repository and aim to prevent common security risks through disciplined use of input validation, output encoding, and safe APIs.

not rated 381 +1 1y ago A 0 tokens original MIT

secure-dev-php

07

matank001/cursor-security-rules

Cursor rule Cursor

These rules apply to all PHP code in the repository and aim to prevent common security vulnerabilities through strict handling of input, output, and execution.

not rated 381 +1 1y ago A 0 tokens original MIT

secure-dev-python

08

matank001/cursor-security-rules

Cursor rule Cursor

These rules apply to all Python code in the repository and aim to prevent common security risks through disciplined use of input validation, output encoding, and safe APIs.

not rated 381 +1 1y ago A 0 tokens original MIT

secure-dev-ruby

09

matank001/cursor-security-rules

Cursor rule Cursor

These rules apply to all Ruby code in the repository (including Rails apps, scripts, and gems) and aim to prevent common security vulnerabilities through safe coding patterns, input validation, and proper use of the Ruby standard library.

not rated 381 +1 1y ago A 0 tokens original MIT

secure-dev-rust

10

matank001/cursor-security-rules

Cursor rule Cursor

These rules apply to all Rust code in the repository and aim to prevent common security risks through disciplined use of memory safety, input validation, error handling, and safe APIs.

not rated 381 +1 1y ago A 0 tokens original MIT

matank001/cursor-security-rules

Cursor rule Cursor

These rules define essential practices for writing and generating secure code. They apply universally — to manual development, automated tooling, and AI-generated code.

not rated 381 +1 1y ago A 380 tokens original MIT

secure-mcp-usage

12

matank001/cursor-security-rules

Cursor rule Cursor

These rules apply to all code and systems integrating with MCP (Model Context Protocol), including generated actions, scripts, and agentic behavior.

not rated 381 +1 1y ago A 382 tokens original MIT

secure-sql-usage

13

matank001/cursor-security-rules

Cursor rule Cursor

These rules apply to all code that interacts with SQL databases, regardless of language or framework, including generated code.

not rated 381 +1 1y ago A 586 tokens original MIT

ssrf-prevention

14

matank001/cursor-security-rules

Cursor rule Cursor

These rules apply to all code that performs outbound network requests, regardless of language or framework, including generated code.

not rated 381 +1 1y ago A 351 tokens original MIT

xxe-prevention

15

matank001/cursor-security-rules

Cursor rule Cursor

These rules apply to all code that parses or processes XML, regardless of language or framework, including AI-generated code.

not rated 381 +1 1y ago A 0 tokens original MIT

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: