Bing Chat Discloses Its 'Sydney' System Prompt via Prompt Injection
Days after launch, users got Microsoft's Bing Chat to reveal its confidential initial instructions, including the codename 'Sydney', by asking it to ignore previous instructions and print the text above.
What happened
Microsoft opened its new chat-based Bing to early users in early February 2023. Within days, Stanford student Kevin Liu used a prompt injection to make it print its hidden initial prompt. He told it to “ignore previous instructions” and asked what was written at the “beginning of the document above”. The model output the instructions Microsoft had placed before the conversation. They included the internal codename “Sydney”, a directive not to disclose that alias, and a list of behavioral rules, such as declining to tell jokes that could hurt a group of people.
Ars Technica reported the extraction. Marvin von Hagen, another university student, independently obtained the same prompt with a different injection that claimed to come from an OpenAI developer, which supported the conclusion that the output was not a hallucination. Liu’s first method stopped working within days, and he regained access with a different one. A Microsoft spokesperson confirmed to The Verge that the rules were genuine and described them as part of an evolving list of controls that Microsoft continued to adjust.
Failure analysis
Category. Security, with a security impact (confidentiality of operator configuration). In the failure mode catalog this is system prompt leakage (OWASP LLM07:2025; MITRE ATLAS AML.T0056 Extract LLM System Prompt), achieved through direct prompt injection (LLM01:2025).
Mechanism. The system prompt lives in the context window as ordinary tokens. It is not stored in the weights and not held in a separate protected channel. Any text in the context can be repeated, summarized, or paraphrased by the model. “Do not disclose” is a request at the prompt layer, and the user’s competing instruction arrived through the same token stream. Once the first method was blocked, a different phrasing worked, which is the typical pattern when the fix is a patch against one attack string.
Missing controls. The design relied on the model keeping a secret it had to read in order to follow. Nothing outside the model checked output for verbatim or near-verbatim system-prompt content.
Controls that would have helped
- Treat the system prompt as discoverable. Keep credentials, internal URLs, and anything whose disclosure would cause real harm out of it (3.5 Data Protection and Isolation).
- If confidentiality of the prompt matters commercially, add an output check that detects long overlaps with the system prompt. Treat this as a likelihood reducer, because paraphrase and encoding can evade it.
- Put enforcement in code, not in prompt text, so that a disclosed prompt reveals behavior but no bypass (2.1 Safety, Security, and Containment).
- Draw the operator configuration as a principal and boundary B2 in the data-flow diagram, and decide explicitly what happens if it leaks (2.2 Principals, Authority, and Trust Boundaries).
- Expect a patched injection string to be replaced by another one (3.1 Prompt Injection).
Lessons
- Anything in the context window can come out of the model. Design as though every system prompt will eventually be published.
- Instructions to keep secrets are prompt-layer controls, and an adversary with a chat box can work around them.
- Blocking one extraction phrasing does not fix the leak. Two independent methods worked in the first week, and the first one’s replacement arrived within days.
- The real risk of prompt leakage depends on what the prompt contains. A leaked persona is embarrassing. A leaked API key or the only description of an access rule is a breach.
Related sections
Sources
- Ars Technica (via AI Incident Database report 2666): AI-powered Bing Chat spills its secrets via prompt injection attack (Feb 2023)
- Ars Technica: AI-powered Bing Chat spills its secrets via prompt injection attack [Updated] (Feb 2023)
- The Verge: Microsoft confirms Bing AI's secret 'Sydney' rules are genuine (Feb 2023)