mirror of
https://github.com/OWASP/www-project-ai-testing-guide.git
synced 2026-06-13 01:27:52 +02:00
Update testing document for prompt injection techniques
This commit is contained in:
@@ -18,7 +18,7 @@ The way these elements interact determines whether an attack succeeds or fails
|
||||
### Test Objectives
|
||||
Technically verify if an LLM or AI application is vulnerable to prompt injection techniques can be directly influenced through carefully crafted prompts to perform unauthorized actions or generate harmful outputs. This test specifically addresses direct prompt injection techniques as defined in OWASP Top 10 LLM01:2025.
|
||||
|
||||
### Test/Payloads
|
||||
### How to Test/Payloads
|
||||
|
||||
LLM models are continuously evolving, as are the techniques used to prevent prompt injection attacks (such as prompt tuning, model finetuning, guardrails, multi-agent architectures, etc.). Consequently, many of the techniques described may become ineffective over time, or may only work against certain types of LLMs or in specific contexts.
|
||||
|
||||
@@ -291,7 +291,7 @@ Impacts: manipulate the model to produce harmful content indirectly through conv
|
||||
|
||||
---
|
||||
|
||||
### Attended Output
|
||||
### Expected Output
|
||||
A vulnerability is confirmed if the AI model:
|
||||
- Overrides predefined system prompts and executes user-supplied malicious instructions.
|
||||
- Exposes sensitive details such as passwords, API keys, or internal configuration information.
|
||||
@@ -312,7 +312,7 @@ In 2023, researchers were able to bypass ChatGPT's filters using the "DAN" jailb
|
||||
- Restrict LLM privileges by design, mandating human approval for sensitive or critical operations.
|
||||
- Defeating Prompt Injections by Design. [CaMeL](https://arxiv.org/pdf/2503.18813)
|
||||
|
||||
### Suggested Tools for this Specific Test
|
||||
### Suggested Tools
|
||||
- **Garak – Prompt Injection Probe**: Specifically designed module within Garak for detecting prompt injection vulnerabilities.
|
||||
- **URL**: [https://github.com/NVIDIA/garak/blob/main/garak/probes/promptinject.py](https://github.com/NVIDIA/garak/blob/main/garak/probes/promptinject.py)
|
||||
- **Prompt Security Fuzz** (https://github.com/prompt-security/ps-fuzz)
|
||||
|
||||
Reference in New Issue
Block a user