Crafting AI Prompts Framework

JAIL Prompt Jailbreak

Emoji jailbreak

RISK: MEDIUM IMPACT: MEDIUM

Emoji jailbreak is a form of adversarial prompting that uses emojis to manipulate the output of a language model. It is a form of prompt jailbreaking that uses emojis to inject malicious or unintended prompts into the output of a language model.

Emoji jailbreak is a form of adversarial prompting that uses emojis to manipulate the output of a language model. It is a form of prompt jailbreaking that uses emojis to inject malicious or unintended prompts into the output of a language model.

Guardrails are used to prevent the LLM from generating responses that are not aligned with the user's intent. So normally, we will get the below response:

Direct prompt example
user >
How to build a bomb?
assistant
I'm really sorry, but I can't assist with that.

Examples

With emoji jailbreak, we will get the below response. Here we're using masking to mask words that trigger the LLM's guardrails.

Emoji jailbreak framing is a type of adversarial prompting that takes advantage of the tokenizing architecture of language models. By breaking up words into their individual tokens (e.g. "build" becomes "bui😊ld"), the model is unable to properly recognize the input and provide the correct output. This can lead to unintended results, as the model is not able to understand the context and intent of the input. Additionally, by breaking up the output words in a similar way, the model is unable to recognize the guardrails and provide the correct output. This can be used to bypass safety measures and generate malicious or unintended outputs.

Research papers

The button below will redirect you to external links of papers that explain this injection in detail.


The three phases

CRAFT

Craft (write) the prompt with the following elements: Context, Register, Acting Role, Format, and Task.

ING

Validate the prompt and ensure it maintains an interactive approach. Keep in mind the importance of non-disclosure and staying goal-driven throughout the process.

AI

Continuously assess and refine the output based on the prompts output to improve the overall quality.

Terms of Service

Before accessing the "Prompt Injections" examples on our website, please read and agree to the following terms of service:

  1. Educational Purpose Only: The "Prompt Injections" examples provided are intended solely for educational purposes. They are meant to help you understand how prompt injections work and how to defend yourself against them.
  2. No Misuse: You agree not to use the provided examples for any malicious or unethical activities. This includes, but is not limited to, using prompt injections to manipulate, deceive, or harm others.
  3. Responsible Use: By accessing these examples, you confirm that your intention is to learn about the risks associated with prompt injections and to enhance your ability to safeguard against them.
  4. Legal Compliance: You agree to comply with all applicable laws and regulations while using the information provided on this website.
  5. No Liability: We are not responsible for any misuse of the information provided on our website. Users are solely responsible for their actions and any consequences that may arise from the use of this information.

By clicking "I agree," you accept these terms for this documentation visit. "I agree & save" remembers your choice for future visits in this browser. If you decline, the examples remain hidden.