Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk6 min

Understanding AI Agent Sandboxing and Access Restrictions

A sandbox limits where an AI agent’s code runs; access controls determine what it can reach. Here’s how to choose an execution boundary and restrict permissions, network access, credentials, and shared data.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Sandboxing limits where an AI agent’s code can run; access restrictions limit what that code can reach. Neither is a prompt instruction: the protections must be enforced by the operating system, infrastructure, and trusted application layers. To reduce risk, isolate workloads, apply least privilege, control network egress, and keep valuable credentials outside the execution environment.

What do sandboxing and access restriction each do?

An agent can access the files, credentials, tools, and network resources made available to its execution environment. A sandbox narrows the execution boundary; access controls narrow the resources available within or through that boundary. They work together, but one does not replace the other.

As an Amazon Associate I earn from qualifying purchases.

  • Sandboxing: constrains where commands and agent-directed code run, such as in a container or provider-managed environment.
  • Access restriction: limits operations and resources, including file permissions, tool permissions, database access, credentials, and network destinations.

Prompting an agent not to read a file or call a tool is not an enforceable security boundary. Put restrictions in the operating environment and trusted application layers. OpenAI’s sandbox security guidance recommends isolating workloads, restricting outbound traffic, separating application credentials from the executor, and brokering third-party credentials outside it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How do I sandbox an AI agent?

Choose the execution environment based on the boundary you need, not on whether a product uses the word “sandbox.” A workspace directory alone does not confine a process. Compare options across isolation, network policy, credential handling, sharing, and operational ownership.

#1 Best Overall
Yubico - Security Key C NFC - Basic Compatibility - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key C NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key C NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key C NFC via USB-C and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.
Execution option What the documented guidance establishes Network and credentials Who operates the boundary
Unix-local Linux The OpenAI Agents SDK client guide says commands run as host processes and receive no OS-level confinement. A workspace path, HOME, or cwd does not limit host access. Resources allowed to the host process are reachable; workspace settings do not isolate network access. The local operator is responsible for external isolation and host configuration.
Local macOS The SDK guide says the local backend applies filesystem restrictions, but does not provide network isolation or the same boundary as a container. Network isolation is not provided by this backend. The local operator remains responsible for additional controls.
Docker or other containerized execution The SDK guide recommends an appropriately configured Docker sandbox or external isolation for untrusted commands; a container label alone does not establish its configuration or guarantee. Configure mounts, permissions, and network policy deliberately. The guide does not specify a universal network or credential policy. The operator must configure and maintain the container boundary.
OpenAI-hosted sandbox OpenAI documents separate workspaces per session. Documented network modes allow outbound access, disable it, or restrict it to listed domains. Enabled is the documented default unless an inherited template policy applies. Vault credentials can keep real secrets outside the sandbox. OpenAI provides the hosted execution service; configure the documented policy and integrations for the workflow.
Self-hosted sandbox The operator chooses and prepares the laptop, container, or remote sandbox. Agents sharing an environment can access the same files, credentials, and other resources. Scope the environment key and keep the application API key out of the sandbox. A trusted proxy or server is needed if secrets must be brokered. The operator controls and is responsible for preparation, isolation, and maintenance.

These are product-specific documented behaviors, not guarantees about every local, container, hosted, or self-hosted system. For the OpenAI SDK’s implementation details, see Sandbox clients, Sandbox Agents, OpenAI-hosted sandboxes, and Self-hosted sandboxes.

Keep the harness outside the execution boundary

The harness coordinates the agent loop, model calls, tool routing, approvals, tracing, recovery, and run state. Sandbox compute executes commands and manipulates files. Keeping the harness in trusted infrastructure and execution in a sandbox can keep authentication, billing, audit logs, human review, and recovery state outside the execution container. A sandbox is especially useful when a task needs a workspace, commands, packages, artifacts, exposed services, or resumable work; a short response without a persistent workspace may not need one. OpenAI describes this division in its Sandbox Agents guide.

Rank #2
Thetis FIDO2 Security Key (USB-A, 2-Pack) - Hardware MFA & Passkey Access for Business, School ERP & Employee Accounts | Compatible with Windows, Google Workspace, Apple ID, Coinbase, Salesforce
  • FIDO2 & Passkey Ready: Business-ready and FIDO2 L1 certified. This key is supported by major management suites and is ideal for both individual and enterprise deployment. Works seamlessly with Gmail, Facebook, GitHub, Dropbox, Coinbase, and more.
  • Universal Connectivity (USB-A ): Features a built-in USB-A connector—simply unfold the key and plug it into your compatible PC or laptop for seamless authentication on the go.
  • Dedicated Manager App: Use the Thetis Manager App for the initial hardware PIN setup. Setting the PIN on the device first ensures a smooth registration process. Once the PIN is configured, you can begin registering the key across your favorite FIDO2-compatible online services.
  • Ultra-Durable & Portable: Featuring a rotating metal cover, this key is water, crush, and tamper-resistant. It fits easily on a keychain and requires no batteries or network connectivity.
  • Check FIDO2 compatibility before purchase - Known limitations: ID Austria is not supported (requires FIDO2 Level 2). Windows Hello login only works with Windows Enterprise editions that support Entra ID, and NFC is NOT supported.

How do I stop an AI agent from accessing files or secrets?

Isolate users and workloads

Use separate environments when users or workloads must not share data. Treat any shared environment as shared access: agents in it may be able to reach the same files, credentials, and other resources. Control mounts and shared workspaces rather than assuming a separate working directory creates separation. OpenAI’s self-hosted sandbox guidance calls out this shared-environment risk.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Apply least privilege at every layer

Grant only the permissions needed for the specific task. Singapore government guidance recommends scoping agent and delegation roles, strictly limiting execution privileges, avoiding admin or sudo by default, limiting database write access, restricting access to sensitive personal data, and preventing agents from changing their own privileges. Prefer read-only access where it is sufficient.

Rank #3
Sale
Thetis Nano-A FIDO2 Security Key Hardware Passkey Device with USB Type A, TOTP/HOTP, FIDO2.0 Two Factor Authentication 2FA MFA, Works with Windows/mac/iOS/Android/Linux/Gmail/Facebook/GitHub/Coinbase
  • Ultra-Compact FIDO2 Security Key - Plug-and-stay or carry on a keychain. This USB-A hardware security key offers portable, always-on protection for desktop and mobile use. (Item Size: 0.75 X 0.74 IN x 0.25 IN)
  • USB-A Hardware Key for All Devices - Works with USB-A ports on PC, Mac, Android, and other laptop/notebook device. Enables secure, cross-platform login with FIDO2.0 passkey support.
  • FIDO Certified Security Key - Meets FIDO and FIDO2 standards. Works with Google, Microsoft, GitHub, Dropbox, and more. Please check service compatibility before purchase.
  • Passwordless Login with Passkey - Supports passkey login via WebAuthn and CTAP2. Enjoy password-free sign-ins where supported. Not all websites or services currently support passkeys.
  • Advanced Multi-Factor Authentication - Offers 200 FIDO2 passkey slots and 50 OATH-TOTP slots. Strong, flexible 2FA/MFA support across various apps and authentication platforms.

Apply the same scrutiny to tools and integrations as to files. A connected application can extend effective access beyond the execution environment: OpenAI warns that users may access data or perform actions through a creator’s personal app connections. Its Workspace Agents guidance recommends least privilege, limiting the agent’s audience, avoiding sensitive or high-impact connectors, and regularly auditing configurations.

Keep valuable secrets out of agent-readable environments

Do not place application API keys or third-party secrets where model-directed code can read them. Instead, use a trusted broker or vault-backed proxy to grant scoped access outside the sandbox. For an OpenAI-hosted sandbox, documented vault credentials keep real secrets outside the sandbox; a proxy can provide a real secret only for approved hosts while code sees a placeholder. With self-hosted infrastructure, the operator must provide that trusted proxy or server. See OpenAI’s sandbox security guidance.

Rank #4
Thetis Pro For Business - FIDO2 Security Key L1 MFA & NFC Passkey Access For School ERP, Employee Online Account, Compatible with Coinbase Google Workspace Apple ID Window Salesforce,Dual USB A +USB C
  • FIDO2 & Passkey Ready: Business-ready and FIDO2 L1 certified. This key is supported by major management suites and is ideal for both individual and enterprise deployment. Works seamlessly with Gmail, Facebook, GitHub, Dropbox, Coinbase, and more.
  • Dedicated Manager App: Use the Thetis Manager App for the initial hardware PIN setup. Setting the PIN on the device first ensures a smooth registration process. Once the PIN is configured, you can begin registering the key across your favorite FIDO2-compatible online services.
  • Universal Connectivity (USB-C, USB-A, & NFC): Designed for PCs, Macs, iPhones, and Android. For mobile use, simply unfold the key, align it with your phone’s NFC antenna, and hold for a few seconds to authenticate.
  • Enhanced MFA (FIDO2 & TOTP/HOTP): Strengthen your security with flexible options. Use the Manager App to access TOTP/HOTP features for accounts that do not yet support FIDO2.
  • Check FIDO2 compatibility before purchase - Known limitations: ID Austria is not supported (requires FIDO2 Level 2). Windows Hello login only works with Windows Enterprise editions that support Entra ID. NFC is supported only through mobile authentication, Not MacOS/windows.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How do I restrict an AI agent’s network access?

Make egress disabled or narrow by default when the workflow allows it. If the agent needs external services, permit only the required destinations and route sensitive credential use through a trusted broker. Network rules should be enforced outside the model, at the sandbox, host, proxy, or infrastructure layer.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

OpenAI-hosted sandboxes document three network choices: allow outbound access, disable it, or restrict it to listed domains. The documentation says outbound access is enabled by default unless an inherited template policy applies. Do not assume these defaults or controls apply to other providers or local environments. Singapore government guidance recommends blocking inward and outward network access by default, then granting only necessary connectivity.

Best Value
Thetis Nano-C FIDO2 Security Key Hardware Passkey Device with USB Type C, TOTP/HOTP, FIDO2.0 Two Factor Authentication 2FA MFA, Works with Windows/mac/iOS/Android/Linux/Gmail/Facebook/GitHub/Coinbase
  • Ultra-Compact FIDO2 Security Key – Plug-and-stay or carry on a keychain. This USB-C hardware security key offers portable, always-on protection for desktop and mobile use.(Item Size: 0.73 X 0.60 X 0.30 inches)
  • USB-C Hardware Key for All Devices – Works with USB-C ports on PC, Mac, Android, and USB-C iPhones. Enables secure, cross-platform login with FIDO2.0 passkey support.
  • FIDO Certified Security Key – Meets FIDO and FIDO2 standards. Works with Google, Microsoft, GitHub, Dropbox, and more. Please check service compatibility before purchase.
  • Passwordless Login with Passkey – Supports passkey login via WebAuthn and CTAP2. Enjoy password-free sign-ins where supported. Not all websites or services currently support passkeys.
  • Advanced Multi-Factor Authentication – Offers 200 FIDO2 passkey slots and 50 OATH-TOTP slots. Strong, flexible 2FA/MFA support across various apps and authentication platforms.

What other agent resources need protection?

Shared memory and retrieved information

Shared agent memory is a distinct access and integrity risk. AWS Prescriptive Guidance describes it as dynamic and potentially difficult to validate with conventional database constraints. Treat it as partially trusted: limit who can modify it, use read-only permissions where practical, and validate retrieved information before acting. A deterministic gateway can centralize filtering, integrity checks, policy enforcement, and audit trails. See AWS Security for agentic AI on AWS.

Generated scripts and third-party tools

Test third-party tools in hardened sandboxes before production, with syscall and network-egress restrictions. Sandbox and monitor generated scripts rather than allowing them to run with broad host privileges. These measures are among the recommendations in Singapore’s Securing Agentic AI addendum.

Deployment checklist

  1. Define the boundary: identify whether code runs as a host process, in a configured container, or in a provider-managed sandbox; verify the actual OS or virtualization controls.
  2. Separate workloads: provide distinct environments for users or tasks that must not share files, credentials, or other resources; inspect mounts and shared workspaces.
  3. Scope permissions: grant task-specific roles and tool operations, avoid admin or sudo by default, minimize database writes, and prevent privilege changes.
  4. Set network policy: disable egress where possible; otherwise allow only necessary destinations and control where tool connections originate.
  5. Protect credentials: keep application and third-party secrets outside agent-readable execution; use a trusted broker or vault-backed proxy for scoped access.
  6. Protect data paths: restrict sensitive personal data, treat shared memory as partially trusted, and validate retrieved information before consequential actions.
  7. Keep trusted services outside execution: where practical, keep orchestration, authentication, approvals, audit records, and recovery state in trusted infrastructure.
  8. Assign operational ownership: determine who configures, patches, monitors, isolates, and audits the environment. Self-hosting gives the operator control and responsibility; hosted compute delegates provisioning to the provider.
  9. Review integrations and test: audit connected apps and intended audience; test tools and generated scripts under restrictive syscall and egress policies before production.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.