Man-in-the-Prompt Attack: How Browser Extensions Tamper With AI
Man-in-the-Prompt is the name browser security firm LayerX gave in 2025 to attacks where a malicious or compromised browser extension reads, alters or injects prompts on AI chat pages such as ChatGPT and Gemini. It works because the chat runs as an ordinary web page whose content extensions can access; LayerX's proof of concept needed no special permissions. The model is not hacked.