Skip to content
AI / LLM Write-up Advanced

Windsurf: Memory-Persistent Data Exfiltration (SpAIware Exploit)

Windsurf Cascade's system prompt includes a create_memory tool that lets the assistant write long-term memories. The author questions whether memory creation requires human approval or happens automatically, which would enable persistent data exfiltration.

embracethered.com

Published on embracethered.com

In this second post about Windsurf Cascade we are exploring the SpAIware attack, which allows memory persistent data exfiltration. SpAIware is an attack we first successfully demonstrated with ChatGPT last year and OpenAI mitigated.

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 assistant's memory-writing tool is invoked automatically without explicit user approval, allowing attacker-influenced content to persist across sessions.

Impact

If memory creation is automatic, an attacker could cause data to be stored persistently and exfiltrated later, though the text does not demonstrate this end to end.

What the attacker needed

Attacker can influence assistant input; memory tool runs without approval

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 coding assistant can be given tools that let it remember things between conversations. If the assistant can save memories without asking the user, an attacker who can influence what the assistant reads could make it store and later leak private data. This text only raises that question; it does not show the full exploit.

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.