https://github.com/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.
https://github.com/matank001/cursor-security-rules
agent-security agents ai aiagents cursor cursor-rules cursor-security cursorrules security
Last synced: about 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/matank001/cursor-security-rules
- Owner: matank001
- License: mit
- Created: 2025-06-12T11:20:34.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-06-20T16:14:38.000Z (9 months ago)
- Last Synced: 2025-06-20T17:27:28.948Z (9 months ago)
- Topics: agent-security, agents, ai, aiagents, cursor, cursor-rules, cursor-security, cursorrules, security
- Homepage:
- Size: 43 KB
- Stars: 141
- Watchers: 3
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🛡️ Cursor Security Rules
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.
## 🚀 How to Use These Rules
✨ Simply add these rules to your `.cursor/rules` directory (or your main directory) and you'll instantly be safer.
## 📋 Example Rule Topics
- 🔒 Secure Development Principles
- 🤖 Secure MCP Usage
- 🐍 Python Security Best Practices
- 🕵️♂️ No Secrets in Frontend
- 🚫 No Unsafe System Commands
## 💡 Why Use Cursor Security Rules?
- ✅ Enforce safe coding practices
- 🛑 Prevent accidental exposure of secrets
- 👮♂️ Control sensitive operations
- 🤝 Foster a security-first development culture
## 🤝 Contribute
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 📝
## 👥 About Us
We are [**Matan Kotick**](https://www.linkedin.com/in/matan-kotick-664735252) and [**Amit Ziv**](https://www.linkedin.com/in/amit-ziv-49690b120), security researchers specializing in the field of AI Agents.
Contact us if you have any questions about this interesting topic!