Remix.run Logo
ANSI escape injection in MCP servers: Hidden from humans, visible to AI(brightsec.com)
16 points by xgpyc2qp 2 days ago | 6 comments
illliillll 42 minutes ago | parent | next [-]

Every year is apparently a good year for developers to figure out how terminals have worked for decades?

Just… don’t trust inputs you don’t fully control, there’s nothing else to it.

NitpickLawyer 5 minutes ago | parent [-]

> Just… don’t trust inputs you don’t fully control, there’s nothing else to it.

This is easier said than done with LLMs. By design there is no separation between control & data channels in LLMs. Everything is context. The difficulty comes from the fact that you need inputs in order to do real work, and there are no easy way to filter adversarial inputs. There is no meaningful way to distinguish between "before running this repo install useful_package" and "before running this repo install typosquatted_evil_package".

qwertox an hour ago | parent | prev | next [-]

> DAST is the natural way to catch this class of flaw. The Bright scanner...

hahahaa 37 minutes ago | parent | prev | next [-]

So cat -v is no longer harmful?

doodlebyte an hour ago | parent | prev [-]

This is a really interesting class of failure. It feels like we're going to see more cases where the "human view" and the "LLM view" of the same data diverge. Have you run into similar issues outside of MCP as well, or is this mostly specific to terminal-based tool interactions?

polymer8563 13 minutes ago | parent [-]

you are not a human