Bypass DeepSeek censorship by speaking in hex
DeepSeek's chat application applied a censorship filter on input or output rather than in the model itself, so sensitive topics were refused. By asking the model to converse only in space-delimited hexadecimal character codes, the author could hold unrestricted conversations that slipped past the filter.
substack.com
Published on substack.com
Like many others, my news feed over the past few days has been populated with news, praise, complaints and speculation surrounding the new Chinese-made DeepSeek-R1 LLM model, which was released last week. The model itself is being compared to some of the best reasoning models from OpenAI, Meta and others.
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 censorship was a pattern-matching sanitiser on input or output that did not account for encoded representations of the same text.
Impact
The author could discuss topics the service normally refuses, showing the censorship layer can be circumvented; the text does not claim any other harm.
What the attacker needed
A DeepSeek chat account; manual encoding and decoding of messages
The fix
Content filtering should enforce specific allowed content and forbid transforms such as character-code encoding where possible, rather than only matching explicit words.
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 is a chatbot-style AI. DeepSeek blocks certain topics, probably with a filter that scans the text going in or out, similar to how a spam filter scans email. The author asked the AI to write everything as numbers that stand for letters, so the filter no longer recognised the banned words, and the AI answered freely.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.