This repo provides essential security rules for Cursor.
โ ๏ธ Why do you need these rules?By default, Cursor can generate unsafe codeโsuch as exposing secrets or running dangerous commands. These rules act as guardrails to help you avoid risky patterns and enforce best practices automatically.
These rules aim to enforce safe coding practices, control sensitive operations, and reduce risk in AI-assisted development.
โจ Simply add these rules to your .cursor/rules
directory (or your main directory) and you'll instantly be safer.
- ๐ Secure Development Principles
- ๐ค Secure MCP Usage
- ๐ Python Security Best Practices
- ๐ต๏ธโโ๏ธ No Secrets in Frontend
- ๐ซ No Unsafe System Commands
- โ Enforce safe coding practices
- ๐ Prevent accidental exposure of secrets
- ๐ฎโโ๏ธ Control sensitive operations
- ๐ค Foster a security-first development culture
Are you a security researcher or developer passionate about AI safety? If you have ideas to improve these rules or want to add new ones, we encourage you to contribute! Your expertise can help make AI-assisted development safer for everyone ๐
We are Matan Kotick and Amit Ziv, security researchers specializing in the field of AI Agents.
Contact us if you have any questions about this interesting topic!