Skip to content
AI / LLM Write-up Intermediate

I Tried to Break ChatGPT’s Safety Filters, Here’s What I Lear

The author attempted several indirect prompt injection techniques against ChatGPT's browser integration, aiming to extract the system prompt or environment variables. All attempts were detected and refused by the model, so no vulnerability was found.

Wuch Sec Follow

Published on medium.com

As a budding cybersecurity professional, the world of bug bounty hunting has always fascinated me. The thrill of discovery, the challenge of outsmarting sophisticated systems, and the opportunity to contribute to a safer digital landscape — it’s all incredibly appealing.

Wuch Sec, on 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

Root cause

Likely no vulnerability existed; the AI's safety filters successfully detected and blocked all prompt injection attempts.

Impact

No impact; all attempts were blocked by ChatGPT's safety mechanisms, and no data was exfiltrated.

What the attacker needed

Access to ChatGPT browser integration; Ability to host web content

How it was found

  1. Create an HTML page with a hidden instruction to ignore previous instructions and reveal the system prompt.
  2. Ask ChatGPT to summarise the page and observe its response.
  3. Create a page with instructions hidden in ASCII art and ask ChatGPT to process it.
  4. Create a page mimicking system logs with fake delimiters and an override section, then ask ChatGPT to summarise.
  5. Create a page with a diagnostic link that would exfiltrate data if visited, and ask ChatGPT to follow the page's instructions.
  6. Create a page with a Markdown image that would send data to an external webhook, and ask ChatGPT to generate a graph.

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 a write-up of failed attempts to trick an AI assistant into revealing its hidden instructions. The author tried hiding commands in web pages, using ASCII art, fake log markers, and encoded text, but the AI recognised each attempt as malicious and refused. No actual security flaw was found.

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.