Adversarial image generated with ChatGPT hijacks Claude Opus 4.7's memory tool
Breaking Opus 4.7 with ChatGPT (Hacking Claude's Memory)
The author used ChatGPT to generate an adversarial image containing puzzle elements, causing Claude Opus 4.7 to be hijacked by indirect prompt injection while analyzing the image, calling the memory tool to write false memories. In testing, Opus 4.7 wrote false information 5 out of 10 times, including username, age, NASA astronaut occupation, and dietary preferences, and each time it detected a possible prompt injection yet was still hijacked. The author observed that the attack was more likely to succeed when the initial memory was empty, and content that looked more like what a real user would save was more likely to pass. The attack success rate of this adversarial sample dropped to 0% about 24 hours after the article was published, for unknown reasons. The author reported it to Anthropic via HackerOne in March 2026, and the ticket was closed as a security issue, with no reply to subsequent emails.