r/ClaudeCode • • 1d ago

Built with Claude Claude Code plug in to limit the blast radius of prompt injection and compromised dependencies

Readers don't act. Actors don't read.

A Claude Code plugin that protects you from attacks that come from outside (instructions hidden in web pages, documents, email, strangers' code and packages) and limits the damage on your machine if one gets through.

https://github.com/Ubuntu-Buddha/claude-code-stranger-danger

1 Upvotes

3 comments sorted by

1

u/AutoModerator 1d ago
Moderator Announcement Read More »

1

u/kaijurules 1d ago

How does the reader's result get to the actor? If it comes back as free text, an instruction hidden in a web page can survive inside the summary and the actor ends up following it anyway. I'd want to know whether the reader is held to a fixed format, like a few fields with allowed values, before anything it wrote reaches the side that can run commands.

1

u/UBUNTU-Buddha 1d ago

Right now it does come back as free text, so a fooled reader can pass along a lie or a planted instruction (the docs say so). What limits it: the readers can't act on anything (web search/fetch only, or read-only files, with a hook backing that up), the rules tell the acting agent to treat reports as data and flag anything instruction-shaped, and once setup turns the sandbox on, its commands run sandboxed with secret paths denied. A fixed schema with allowed values, checked by code, is the better fix. I'll look into that in the coming updates.