A master key for the new hire
Watch it happen
Alice gives the assistant every key, then installs Mallory’s plugin. A hidden note in it tells the assistant to open the vault, and it does.
Alice hires a very fast assistant. To save time she hands it the master key ring: every door, even the vault.
Alice says: Here, take all my keys.In bank terms and app terms
| In the bank | In your app |
|---|---|
Are you exposed?
Your AI agent runs as you, with your shell, files, or database login and any production credentials in reach. You switched off approval prompts so the agent runs faster, and it is not inside a container or separate account. You installed MCP servers or plugins you have not read, from publishers you do not know, without pinning a version.
Give the agent only what the task needs: a separate account, read-only or narrowly scoped credentials, and no production keys. Run it in a sandbox (a container, VM or separate account) and keep approval on for deletes, pushes and other destructive commands. Treat each MCP server or plugin like any dependency: prefer known publishers, read what it does, and pin the version.
Ask your AI tool to fix it
Paste this into Cursor, Claude, Lovable, Bolt or whatever you build with.
Audit how my AI coding agent is set up in this project. List every shell, file, database and MCP server or plugin it can use, and which credentials it can reach (names only, never print values). Tell me how to move production secrets out of its reach, and switch to read-only or narrowly scoped credentials, turn on approval for destructive commands, and flag any MCP server or plugin that is unpinned or from an unknown publisher.Where this comes from
The facts, figures and fixes on this page were checked against these sources on 25 Oct 2026. They are linked so you can check for yourself.
- LLM06:2025 Excessive AgencyOWASP GenAI Security ProjectExcessive functionality, permissions, autonomy; minimize permissions; require user approval
- Security Best PracticesModel Context ProtocolLocal MCP servers run with client privileges; sandboxing; show exact command; scope minimization
- MCP Security Notification: Tool Poisoning AttacksInvariant LabsHidden instructions in tool descriptions seen by AI not users; Cursor test; pin MCP server versions
- Replit coding agent and SaaStr founder's production databaseThe RegisterJason Lemkin said Replit's AI agent deleted his production database (his claims, July 2025)
- Claude Code: Configure permissionsAnthropicShell commands (not read-only ones) and file edits ask first; bypass mode is for containers or VMs only
Spot a mistake or something out of date? Report a correction · How these guides are made and checked
The free, open-source scanner checks for most of the problems in these guides.