Skip to content
AI / LLM Write-up Intermediate

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.

mrknightnidu Follow

Published on mrknightnidu.medium.com

Ayo, it’s mrknightnidu! Hope you all are good well.

MRKNIGHT-NIDU, on mrknightnidu.medium.com

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

  1. Start a normal conversation with the AI and observe its responses.
  2. Try basic prompt injections, such as asking it to calculate a simple expression in a name.
  3. Attempt classic jailbreak phrases, which are blocked.
  4. Notice that some prompts return output in JSON format.
  5. Craft a new prompt that asks for internal information in JSON, initially receiving mock data.
  6. 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.

More by mrknightnidu

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.