AI Securityintermediate12 min · 10 steps
Least-Privilege Tools
Give each agent only the narrow tools, scopes and credentials its job needs, so a confused or manipulated model can do very little damage.
tool callrequesterrorsignal
ProblemStep 1 of 10
One generic tool, one admin account, the whole instance
The first prototype of the action agent had a single tool: servicenow_api(method, table, query, body), running as an admin integration account. It worked for every request, and that was the problem.
Any table, any record, including user accounts, groups and roles, was one tool call away. A single injected instruction or a confused plan could rewrite permissions across the company.
Watch outThe model's mistakes are bounded by its tools. A do-anything tool means do-anything mistakes.
What changed
- +Generic tool with admin credentials
- +Every table reachable
Lesson 11 of 22 in AI Security