Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Explain the principle of least privilege applied to an agent's tool set. What specific risk does over permissioning create, and what two threat vectors does it amplify?
Least privilege gives the agent only the tools the current task needs, which shrinks both the prompt injection blast radius and the damage an honest mistake can cause.
Imagine hiring a contractor to paint one room. You would not hand them the keys to the whole house, the safe, and your bank card. You give them the key to that one room and nothing else. If they turn out to be dishonest, or if they simply make a mistake, the worst they can do is mess up the paint. An agent is the same. Every tool you register is a key you hand it: read files, delete files, send email, spend money. The model decides which keys to use, but the model can be fooled by hidden instructions in the things it reads. So you only hand over the keys the job truly needs, and you take them back when the job is done. Fewer keys means a tricked or confused agent can do far less harm.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Define least privilege as task scoped tool access, name the two amplified vectors, stress that the tool set is an architecture control rather than a prompting one, then layer the perimeter: per tool credentials, human gates on irreversible actions, sandboxing, egress allowlists, and audit logging.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating least privilege as a model behavior problem. It is an architecture control. The set of tools registered bounds the damage no matter what the model decides to do.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.