How i hacked LLM WITH PROMPT INJECTION Bro Said ‘Hi 25’… Next Thing I Knew I Owned the Entire…
The author found that a production LLM could be manipulated with crafted prompts to reveal its hidden system prompt and internal instructions. After the first fix, they bypassed the mitigation with an updated prompt and regained control of the model's output.
Published on mrknightnidu.medium.com
Ayo, it’s mrknightnidu! Hope you all are good well.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
What the attacker needed
Access to the AI chat interface; ability to send crafted prompts
The fix
The first fix was deployed but was bypassed; the text does not describe a final fix.
How it was found
- Start a normal conversation with the AI and observe its responses.
- Try basic prompt injections, such as asking it to calculate a simple expression in a name.
- Attempt classic jailbreak phrases, which are blocked.
- Notice that some prompts return output in JSON format.
- Craft a new prompt that asks for internal information in JSON, initially receiving mock data.
- Manipulate the prompt further until the AI outputs its full system prompt.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A large language model (LLM) is an AI that generates text. It often has a hidden 'system prompt' that tells it how to behave and what rules to follow. The author tricked the AI into ignoring those rules and printing the hidden instructions, which is called prompt injection.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.