Open-source TypeScript scanner blocks hidden prompt injections in Forge, Rovo, and MCP
A developer released forge-contextguard, an MIT-licensed TypeScript library for Node 22 that screens untrusted text in Atlassian Forge apps, Rovo agents, and MCP tools. It detects hidden instructions such as invisible Unicode Tag characters, bidirectional text controls, zero-width character obfuscation, and common injection phrases without using regular expressions or an LLM. The scanner also checks tool error messages and pairs content scanning with a policy gate that enforces tool and capability allow-lists. Each decision returns ALLOW, QUARANTINE, or BLOCK with an audit receipt, and malformed input fails closed to BLOCK. A browser sandbox with 12 presets lets users inspect the results, and the author notes that the MCP handler and Teamwork Graph filter are libraries not yet deployed to any live tenant.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in