mirror of
https://github.com/github/codeql.git
synced 2026-06-19 03:41:07 +02:00
Grammar
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -18,7 +18,7 @@ context, or trigger unintended tool calls.</p>
|
||||
<recommendation>
|
||||
<p>To mitigate user prompt injection:</p>
|
||||
<ul>
|
||||
<li>Ensure that all data flowing into user-input is intended and necessary for the purpose of the AI system.</li>
|
||||
<li>Ensure that all data flowing into user input is intended and necessary for the purpose of the AI system.</li>
|
||||
<li>Ensure the system prompt clearly describes the purpose, scope and boundaries of the AI system. Instruct the system to deny input that falls outside these boundaries.</li>
|
||||
<li>If creating a prompt out of multiple user-controlled values, assume that each of them can be malicious. Ensure the range of possible values is restricted and validated.
|
||||
For example, if a prompt includes a question and the intended language to respond in, validate that the language is one of the supported options.</li>
|
||||
|
||||
Reference in New Issue
Block a user