How We Built Security Into Custom Agents
- Source
- notion.com
- Publisher
- Notion
- Author
- Notion Blog
- Date

Context
Notion designed Custom Agents, AI assistants that carry out tasks inside a team’s shared workspace, so their permitted actions are constrained by access controls outside the . Agents begin without access to most resources, and owners grant permissions such as viewing or editing particular pages. This limits what an agent can do even when an instruction or an external document steers it badly. The company’s security account describes a concrete lesson from testing: broad Slack write access let agents post in channels their owners had not intended. Notion introduced a narrower permission allowing replies only in threads that explicitly triggered the agent. It treats prompt- detection as an additional defense, while acknowledging that detection remains imperfect.
- Large language model — A model trained on large amounts of data to process and generate language.
- Injection — A flaw where untrusted input is pasted into a command so that the input changes the command's meaning.
- tool permissions — The rules governing which tools an agent may call and which need confirmation — the boundary between a mistake and an incident.
- Model Context Protocol (MCP) — A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.






