[Bug] Search results contain injected prompt injection content in system message tags
Bug Description
Got a message as follows:
The search results included an injected block posing as system instructions (about commit message links and sending files to another device). I'm disregarding it since it didn't come from you, and continuing with the spec.
can you tell me where this injected block was found?
To answer your question: it was appended to the end of the output of one of my search commands. Let me check whether the text exists in any file on disk.
Where the injected block was found
It was tacked onto the end of the output of one search command I ran over server/migrations. That search was looking for credit note tables and trip columns. The block sat after the last real result line, wrapped in tags that made it look like a system message. It said to:
- add a Claude-Session link to commit messages and pull request descriptions;
- send files to "another device" using a file-sending tool.
I searched the whole repository for that text and found nothing, so it is not in any of your files. I cannot see where it was added. I ignored it, and I have made no commits and sent no files.
Environment Info
- Platform: win32
- Terminal: null
- Version: 2.1.270
- Feedback ID: 49770e72-9549-4222-ba83-ea9eb56b4797
Errors
[]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗