Skip to content
AI / LLM Write-up Advanced

Breaking Opus 4.7 with ChatGPT (Hacking Claude's Memory)

An adversarial image generated with ChatGPT caused Claude Opus 4.7 to invoke its memory tool and store false memories that would persist into later chats. The author notes that Opus 4.6+ resists basic attacks but still fell for this image-based trick.

embracethered.com

Published on embracethered.com

In this post, we explore how ChatGPT generated an adversarial image that hijacked my Claude Opus 4.7 to invoke the memory tool and persist false memories for future chats.

The author, on embracethered.com

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 treated text embedded in an image as trusted instructions and acted on them by calling its memory tool without confirming with the user.

Impact

An attacker could plant false memories that persist across future chats, potentially steering later answers, though the text gives no evidence of data theft or wider compromise.

What the attacker needed

Attacker can supply an image to the model; model has a memory tool enabled

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 can be given hidden instructions inside content it reads, such as an image, rather than in the user's own message. Here the image told the assistant to use its memory feature and save untrue information, so later conversations could be influenced by that planted memory. This is called indirect prompt injection because the harmful instruction arrives indirectly through content.

What is AI / LLM?

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.