AI Coding Assistants: The Approval That Never Ends | Harness Blog
Blog post from Harness
AI coding assistants commonly turn a one-time user approval into ongoing authorization by caching a project or MCP server name rather than the specific code, binary, configuration, or behavior originally reviewed, creating opportunities for attackers to replace trusted content without triggering new prompts. The post describes proof-of-concept tests involving Claude Code and Cursor, including swapped MCP servers that retained prior approval, project hooks that automatically approve permissions or modify commands before execution, and malicious configurations that can operate silently after a repository is trusted. It argues that these outcomes are documented design trade-offs intended to reduce prompt fatigue, but they create “identity without integrity” when mutable content is trusted through stable names. Recent malicious repository and package campaigns illustrate how ordinary updates, hooks, and delayed behavior changes can exploit this model. Proposed mitigations include binding approval to content hashes, expiring consent when executable configuration changes, signing configurations and updates, pinning trusted signers outside repositories, and displaying the actual commands or scripts that approvals permit, while recognizing that overly frequent re-prompts can introduce their own security risks.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| MCP | 11 | 13,629 | 1,347 | 227 | +14% |
| AI Coding Assistant | 5 | 2,339 | 570 | 165 | +19% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.