security-devsecops-ssdls-appsec
Secure coding rules: general security principles, secret handling, dependency hygiene, authentication, authorisation and security testing.
- Kind
- Rules
- Works with
- Cursor
- Source
- Awesome Cursor Rules @ b044f956f021
- Path
- rules/security-devsecops-ssdls-appsec.mdc
- License
- CC0-1.0
- Jobs
- Guardrails, Review
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# DevSecOps + SSDLC + AppSec Cursor Rule ## General Security Principles - Never hardcode secrets, credentials, or API keys. Use environment variables or secure vaults for sensitive data. - Prohibit the inclusion of `.env`, secret config files, or unknown tokens in source control. - Never log sensitive data, secrets, or session tokens in application logs. - Validate and sanitize all user input. Escape output in HTML, JS, and SQL contexts. - Avoid unsafe functions such as `exec`, `eval`, or similar dynamic code execution. ## Database Security - Use parameterized queries or ORM for all database access. Do not use string concatenation for query building. - Ensure database users have the least privilege required for their tasks. - Regularly review and update database access policies. ## Dependency Management - Only use packages from verified sources. - Do not add new dependencies without explicit approval and security review. - Regularly update dependencies and scan for known vulnerabilities (SCA). ## Authentication & Authorization - Use secure authentication frameworks; never implement custom authentication. - Store passwords using strong, salted hashes (e.g., Argon2, bcrypt). …