You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-src/docs/articles/generic-prompts.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,24 @@ Add the improvement to the changelog.
87
87
88
88
## Security
89
89
90
+
### Find and fix a security issue
91
+
92
+
Agents tend to report theoretical security problems that no attacker can trigger in practice. This prompt forces the agent to prove each finding with a reproduction before it is allowed to fix anything.
93
+
94
+
```txt
95
+
Do a security review of FEATURE_NAME and make a list of possible security findings, ranked by severity.
96
+
For each finding explain how an attacker could exploit it in practice.
97
+
Findings that require the attacker to already run arbitrary code inside of the same process do not count.
98
+
Pick the most severe finding and write a test case that reproduces the problem.
99
+
In the test case you can only use the public API.
100
+
First run the test case without a fix and show me the output. Then apply a fix and run the test case again and show me the output.
0 commit comments