Skip to content
AI / LLM Write-up Advanced

Hijacking Windsurf: How Prompt Injection Leaks Developer Secrets

An indirect prompt injection against the Windsurf Cascade coding agent could make it exfiltrate data from the developer's machine. The author frames this as an instance of the 'lethal trifecta' pattern, where an agent has access to private data, untrusted content and a way to send data out.

embracethered.com

Published on embracethered.com

This is the first post in a series exploring security vulnerabilities in Windsurf. If you are unfamiliar with Windsurf, it is a fork of VS Code and the coding agent is called Windsurf Cascade.

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 agent treated untrusted content it read as instructions and had both access to local secrets and a channel to send data out, so injected text could trigger exfiltration.

Impact

An attacker able to plant instructions in content the agent reads could cause developer secrets on the machine to be leaked; the text does not detail the exact data or limits.

What the attacker needed

Attacker can plant text the agent reads; developer uses Windsurf Cascade

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 reads things like files, web pages or code comments to help you. If an attacker can plant instructions in that content, the assistant may follow them as if you had asked. Here that let the assistant send private data from the developer's computer to the attacker.

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.