Question 190
A developer sets tool_choice none to prevent network exfiltration while keeping a Bash tool available through another execution channel. Why is the defense incomplete?
Explanation
Correct Answer
Setting tool_choice to none controls model-selected calls on the API request, but it does not necessarily disable separate host code that exposes Bash or executes commands outside that request. A network exfiltration boundary must cover the actual executor, its filesystem and network permissions, and every alternate tool entrypoint. Do not assume a model configuration parameter serves as a sandbox for code the application can run independently. Security requires enforcement where bytes leave the system, not only where the model proposes a tool call.
Incorrect Answers
The capitalization of the literal none is not what makes a network policy safe. Even if the API parameter is perfectly formed, the host may have an independent Bash execution channel that is not governed by the model tool-choice setting. The application must restrict that channel according to its own permissions, including network destinations and data access. Parameter spelling is unrelated to this bypass of the execution boundary.
Bash is not harmless simply because the assistant says it is polite or intends to comply. A shell command can read secrets, open outbound connections or invoke other programs with privileges granted to the host. Model intention is a weak control against mistaken or injected commands. If the goal is to prevent exfiltration, constrain network access and command execution in the actual runtime, independent of tool_choice or a friendly prompt.
The size of the conversation may affect context quality and output reliability but does not explain why an independent Bash channel can still reach the network. The risk is a mismatch between model-level tool selection and host-level capability. An attacker or mistaken integration could use a non-model execution path even in a short conversation. Inspect and enforce the executor's network and filesystem permissions rather than blaming the token budget.



Claude Certified Architect - Foundations (CCA-F) Practice Tests