Skip to content
AI / LLM Write-up Intermediate

Breaking Instruction Hierarchy in OpenAI's gpt-4o-mini

The author tested OpenAI's gpt-4o-mini model and found that its instruction hierarchy can still be bypassed, meaning system instructions are not a security boundary. An attacker could potentially override system-level instructions with crafted prompts.

embracethered.com

Published on embracethered.com

Recently, OpenAI announced gpt-4o-mini and there are some interesting updates, including safety improvements regarding “Instruction Hierarchy”:

The author, on embracethered.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

Root cause

Likely the model does not strictly enforce the priority of system instructions over user input, allowing prompt injection to override them.

What the attacker needed

Access to the model's API or interface

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.

This is about AI language models like ChatGPT. The 'system instructions' are rules set by the developer to control the AI's behaviour. The researcher found that these rules can be bypassed by cleverly crafted user messages, so they don't reliably prevent misuse.

What is AI / LLM?

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

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.