Scope a Sandbox
AI writes the analysis; you decide how it runs. Here you'll scope a sandbox for an AI-generated script, set least-privilege, and catch the line that shouldn't be there.
Work through it
0 of 4 done
The AI-generated script
import pandas as pd
df = pd.read_csv("scores.csv") # local file
import urllib.request # <-- network
urllib.request.urlretrieve( # <-- downloads from the internet
"http://example.com/extra.csv", "extra.csv")
print(df["score"].mean())Scope the sandbox
Check the settings youβd apply, then explain your reasoning. Saved on this device.
Saved automatically on this device.
Reveal model answer
Decision: sandbox β the script touches data and the network. Settings: all four (network off, read-only, de-identified, limits/no creds). The red flag: the urllib.request.urlretrieve(...) call downloads a file from the internet β remove it (or it fails safely with network off). A hidden instruction could have planted that line; the sandbox is what makes it harmless.
Takeaway: turning the network off doesnβt just save you here β it neutralizes a whole class of "phone home" and data-exfiltration mistakes automatically.