Calling an internal API from Claude's code execution tool

CCDV-F Security & Safety Medium Question 102 of 105

A developer wants Claude to use the code execution tool to run a Python script that calls an internal pricing API over HTTPS and pip-installs a private package at runtime.

Which property of the code execution sandbox blocks this plan?

Show answer and explanation

CThe sandbox has no network access, so the API call and pip install fail

Internet access is completely disabled in the code execution container and no outbound network requests are permitted, so neither the HTTPS call nor the pip install can run; only pre-installed libraries are available and data must arrive through the Files API. Containers are not discarded between requests, they can be reused by ID for 30 days. allowed_domains belongs to the web fetch and web search tools, not this sandbox. And PyPI is unreachable for the same reason the pricing API is.

Source: platform.claude.com/docs/en/agents-and-tools/tool-use/code-…

Anonymous, no account needed. Your tally stays in this browser.

Next question Start 5 timed questions Browse all 105 original CCDV-F practice questions