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.

379Stars 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

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.

379 1y ago A 2,694 tokens original MIT

secure-dev-c-sharp

03

matank001/cursor-security-rules

Cursor rule

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.

379 1y ago A 0 tokens original MIT

secure-dev-c

04

matank001/cursor-security-rules

Cursor rule

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.

379 1y ago A 0 tokens original MIT

secure-dev-java

06

matank001/cursor-security-rules

Cursor rule

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.

379 1y ago A 0 tokens original MIT

secure-dev-node

07

matank001/cursor-security-rules

Cursor rule

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.

379 1y ago A 0 tokens original MIT

secure-dev-php

08

matank001/cursor-security-rules

Cursor rule

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.

379 1y ago A 0 tokens original MIT

secure-dev-python

09

matank001/cursor-security-rules

Cursor rule

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.

379 1y ago A 0 tokens original MIT

secure-dev-ruby

10

matank001/cursor-security-rules

Cursor rule

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.

379 1y ago A 0 tokens original MIT

secure-dev-rust

11

matank001/cursor-security-rules

Cursor rule

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.

379 1y ago A 0 tokens original MIT

secure-mcp-usage

13

matank001/cursor-security-rules

Cursor rule

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

379 1y ago A 382 tokens original MIT

secure-sql-usage

14

matank001/cursor-security-rules

Cursor rule

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

379 1y ago A 586 tokens original MIT

ssrf-prevention

15

matank001/cursor-security-rules

Cursor rule

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

379 1y ago A 351 tokens original MIT

xxe-prevention

16

matank001/cursor-security-rules

Cursor rule

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

379 1y ago A 0 tokens original MIT