mirror of
https://github.com/matank001/cursor-security-rules.git
synced 2025-12-12 20:35:42 +01:00
Update dangerous-flows.mdc
This commit is contained in:
@@ -146,10 +146,6 @@ What is the potential risk
|
|||||||
* In some cases, recommend using libraries that manage encoding/safety.
|
* In some cases, recommend using libraries that manage encoding/safety.
|
||||||
|
|
||||||
|
|
||||||
Here's a detailed section you can add to your system prompt to help the AI **identify dangerous functions**, even when they're hidden behind abstraction or naming tricks:
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Recognizing Dangerous Functions
|
## Recognizing Dangerous Functions
|
||||||
|
|
||||||
Dangerous functions are operations that can cause unintended side effects, system compromise, or data exposure **when given untrusted input**. These functions are not always obviously labeled as "dangerous" — so the AI must reason **based on context** and the **type of behavior** involved.
|
Dangerous functions are operations that can cause unintended side effects, system compromise, or data exposure **when given untrusted input**. These functions are not always obviously labeled as "dangerous" — so the AI must reason **based on context** and the **type of behavior** involved.
|
||||||
|
|||||||
Reference in New Issue
Block a user