Tamga demo shows a defense against indirect prompt injection—with a clear testing caveat

Community discussion Reddit r/LLMDevs · Individual views, not representative.

According to the Reddit community, agents should treat content from READMEs, webpages, and tickets as untrusted data, not as instructions. A demo of the Tamga tool illustrates one possible defense: a README looks like an ordinary guide when rendered, but an HTML comment contains a request to ignore the assistant’s guidelines.

The post says Tamga scans tool results on the next request and can block the call with a 403 before the model reads the content. Alternatively, it can remove only that tool result and let the session continue. The author reports detecting 78 of 78 attacks in a test set, with no false positives among 85 benign texts.

However, the author created the test set and says the figures should not be taken as evidence of performance on other people’s traffic. The community also recommends stripping or fencing suspicious tool-related phrases before they reach the planner, keeping production credentials out of the agent environment, and restricting outbound network access.

According to the reply, isolation alone does not stop a model from following harmful instructions in a workspace it can access. It also recommends policies that refuse high-risk tools when external documents trigger them, and failing closed if a policy check crashes. Source: Reddit r/LLMDevs

🇬🇧 https://www.reddit.com/r/LLMDevs/comments/1x4ccqn/indirect_prompt_injection_demo_the_readme_looks

Leave a Comment

The weekly brief: selected developments, projects and videos