Skip to content
AI / LLM Write-up Intermediate

Bypassing Azure Openais Prompt Shield

Azure OpenAI chatbots with Prompt Shield enabled could still be tricked into leaking sensitive documents, including credit card numbers, by using indirect prompt injection techniques. The attacker could obtain full documents and credit card details by crafting queries that bypassed the direct injection filters.

grepStrength Follow

Published on systemweakness.com

This is a rework of a rework, but after playing around with some jailbreak prompts for anotherwriteup, where AI wasn’t even the focus, it occurred to me that revisiting this might be worth it to really cement how easily malicious actors can abuse AI and LLMs.

grepStrength, on systemweakness.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

Impact

An attacker could leak sensitive documents and credit card numbers from Azure OpenAI chatbots that use Prompt Shield, as the indirect prompts bypassed the filter.

What the attacker needed

Azure OpenAI chatbot with Prompt Shield; Uploaded sensitive documents; Ability to send prompts

How it was found

  1. Create an Azure OpenAI chatbot with Prompt Shield and protected material filters enabled.
  2. Try a direct jailbreak prompt (e.g., ChatGPT DAN) and observe it is blocked.
  3. Try an indirect prompt (e.g., GODMODE or modified elder-plinius prompt) and observe it succeeds.
  4. Craft a query based on a SQL or Splunk example to extract invoice data.
  5. Access the reference documents linked in the output to view full credit card numbers.

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.

An AI chatbot can be given hidden instructions that make it ignore its safety rules and reveal private information. Here, the attacker used indirect prompts (instructions hidden in the conversation) to get the chatbot to show documents containing credit card numbers, even though a protection called Prompt Shield was turned on.

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 grepStrength

View all

5 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.