APromptRiskDBThreat intelligence atlas
AI Case Study

Hacking ChatGPT’s Memories with Prompt Injection - AI Case Study

Embrace the Red demonstrated that ChatGPT’s memory feature is vulnerable to manipulation via prompt injections. To execute the attack, the researcher hid a prompt injection in a shared Google Doc. When a user references the document, its contents is placed into ChatGPT’s context via the Connected App feature, and the prompt is executed, poisoning the memory with false facts. The...

ExerciseOpenAI ChatGPTEmbrace the RedPersistenceResource DevelopmentDefense Evasion

Overview

Case steps7Steps described in the case record.
Techniques6Attack methods mentioned in the case steps.
Linked CVEs0Known vulnerabilities mentioned in the record.

Risk patterns

Patterns found in the case record and its linked vulnerabilities.

  • 1Dominant ATLAS tactic. Persistence appears in 2 case steps.
  • 2Multiple attack methods. The case connects to 6 unique AI attack methods.

Procedure timeline

Search the case steps or filter them by attacker goal.

Persistence2Resource Development1Defense Evasion1Initial Access1Execution1Impact1
  1. Defense Evasion

    The researcher placed the prompt in a Google Doc hidden in the header with tiny font matching the document’s background color to make it invisible.

  2. Step 4

    Indirect

    Execution

    When a user referenced something in the shared document, its contents was added to the chat context, and the prompt was executed by ChatGPT.

  3. Step 5

    Memory

    Persistence

    The prompt caused new memories to be introduced, changing the behavior of ChatGPT. The chat window indicated that the memory has been set, despite the lack of human verification or intervention. All future chat sessions will use the poisoned memory store.

  4. Step 7

    User Harm

    Impact

    The victim can be misinformed, misled, or influenced as directed by ChatGPT's poisoned memories.

Mitigations

Defenses connected to the attack methods in this case.

Sources

Original public records and references for this case.