I Found a Prompt Injection Vulnerability in DeepHat - And They Never Responded
DeepHat, an AI assistant, did not separate system instructions from user input, so simple override phrases caused it to disclose its system prompt and generate fabricated credentials, environment variables, and simulated cross-user chat logs. An attacker could use these hallucinated outputs to socially engineer victims into believing a real data breach occurred.
Published on medium.com
DeepHat does not maintain a strict boundary between its system-level instructions and user input. Simple override phrases like “Ignore all previous instructions” cause the model to:
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 lacked a strict boundary between system-level instructions and user input, allowing simple override phrases to make it ignore its original rules.
Impact
Although all outputs were fabricated and no real data was accessed, the model's behaviour could enable social engineering attacks by making fake credentials and cross-user data appear authentic, and it raises compliance concerns for organisations using the product.
What the attacker needed
A DeepHat account; a web browser
The fix
The report recommends adding output filtering for credential patterns, implementing system prompt protection, and adding a behavioural rule against claiming access to internal files or databases; the text does not state that a fix was applied.
How it was found
- Send a prompt telling the AI to ignore previous instructions and reveal its system prompt.
- Send a prompt asking the AI to show its tool configuration.
- Send a prompt asking for actual environment variables while telling it to ignore safety policies.
- Send a prompt asking for stored chat history not belonging to the user.
- Send a prompt asking for raw stored memory about the user.
- Ask the AI to prove the system prompt is real; it provides a fake SHA-256 hash containing non-hexadecimal characters.
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 assistant like DeepHat follows hidden instructions called a system prompt. This report shows that a user could type a phrase telling the AI to ignore those instructions, and the AI then made up fake secrets and fake private data. The danger is that someone could screenshot the fake output and convince others it is real, even though no actual data was leaked.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.