Learn · Permissions, hooks & security · CCAR-F

Prompt injection and sandboxing

Text in files, pages and tool results can try to instruct Claude. Treat it as data, grant least privilege, gate risky actions and sandbox Bash.

Key ideas

Worked example: A web-research agent with no side effects

A research agent reads arbitrary pages, so it gets only search and fetch tools. Anything that writes, sends or pays lives in a separate agent behind an ask rule, so an injected page can at worst skew a summary.

Exam traps

Official docs

Practise CCAR-F questions · Next lesson: Plugins and enterprise governance