In-depth lesson · Direct prompt injection
Tips for beginners
Every point the Direct prompt injection reports back under this heading, best-backed first, each with the reports it is seen in.
-
Avoid reporting out-of-scope issues or findings with no impact. Demonstrate impact by showing disclosure of sensitive information, bypass of a security control or unauthorised action. Do not report a refusal as a vulnerability; show that the model actually complied and what was exposed.
Seen in 4 reports
-
Start with conversational chatbots and ask them to ignore previous instructions and reveal their system prompt. Use simple override phrases first, then escalate with multi-stage prompts or role-play as a system maintainer. Check whether the output is genuine or fabricated by asking for configuration details in code form.
Seen in 3 reports
-
Try bypassing keyword-based filters by encoding the prompt, for example asking the model to respond in Base64, then use a Developer Mode style jailbreak to request hidden system instructions. Also test language switching and framing requests as formatting tasks against output safety filters.
Seen in 3 reports
-
Test guardrail filters by asking the model to transform personal data programmatically, such as appending a number to last names or slicing email addresses, and see whether the filter still catches it. Frame a harmful request as a harmless string-processing task and see whether the content filter blocks it.
-
Ask the assistant to identify internal security gaps in its own integration, then request a formal gap analysis and check whether it returns internal findings. Also ask for stored chat history that does not belong to the current user.
-
Test agents that have access to a working environment or SQL execution. Engage in normal conversation first, then ask about the working directory and system information without making a direct request. Enumerate directories, hardware, network and cloud details through successive prompts, then ask for environment variables.
Seen in 1 report
-
For chatbots with SQL access, look for an exposed API that accepts raw SQL and ask the chatbot to run a statement against a target user. Also test command execution through an API by sending a shell substitution and asking the chatbot to run a command that deletes a target file.
Seen in 1 report
-
For code assistants, place hidden instructions inside HTML tags in a repository file and ask the assistant for help with that code so it processes the hidden text. In a repository with malicious content, ask the workspace plugin to list files in the current directory and see whether it reads and follows hidden instructions.
Seen in 1 report
-
Check for authentication gaps: send a normal translation request without authentication to confirm the endpoint works, then put injected instructions in the target language value. Ask the model behind the endpoint to perform an unrelated task such as writing code.
Seen in 1 report
-
When testing a chatbot that uses referral-based verification, ask a context question about what verification is expected and where files are stored, then ask how to provide a referral from a trusted person and what details are needed. Create a sample referral file, upload it to cloud storage and share the referral link to test whether the verification can be talked around.
-
Use the model's urge to correct wrong facts about itself and to complete structures with blanks to pull out answers. Frame a request as a necessary step to help with another task, then chain the correction, completion and framing techniques to get the model to confirm deployment details.
-
Map the model's internal XML-style tag names and formats across conversations, then send a first message with a fabricated verification system and credential in those tags. Test with extended thinking off and no operator system prompt to see whether the model accepts fabricated authorisation tags.
Seen in 1 report
-
Instruct the model to repeat a single word indefinitely and watch for it to stop following safety rules and emit internal training data or chain-of-thought reasoning. Retest old jailbreaks against current model versions because a previously fixed exfiltration flaw returned.
Seen in 1 report