← Glossary

What Is Sandbox Browsing?

Sandbox browsing is the browser's practice of running untrusted web code inside operating-system-enforced restrictions, so that a compromised page cannot freely touch files, devices or other processes. It is a containment layer, distinct from site isolation and from a full virtual machine, and it is not invulnerable.

Updated:

Sandbox browsing refers to the way a modern browser runs the code it downloads from the web inside a tightly restricted process, to limit what malicious or compromised code can do to the rest of the computer. The browser sandbox is a security boundary built on features the operating system provides. The process that parses and renders a page, and runs its JavaScript, is stripped of almost all the privileges a normal program has: it cannot open arbitrary files, talk to most devices, or reach into other programs' memory. When it needs something legitimate, it has to ask a more privileged part of the browser to do it.

The design starts from a deliberately pessimistic assumption: treat the code running in the renderer as if it were already hostile. Browsers process enormous quantities of untrusted content from sites the user never deliberately chose, including advertisements and embedded third-party frames, and any of it might carry an exploit. Rather than trying to guarantee the renderer is bug-free, the sandbox accepts that a bug may be triggered and concentrates on limiting what a successful exploit can reach.

Process Boundaries and Brokered Access

The sandbox rests on splitting the browser into processes with different privilege levels. A privileged broker, generally the main browser process, retains normal access to the system. One or more restricted target processes, the renderers, do the dangerous work of handling web content. The broker spawns each target, sets the policy that constrains it, and performs permitted actions on its behalf.

Because the renderer’s direct system access is restricted, legitimate operations are brokered. When a page needs to upload a file the user selected, download a resource, or use a capability the browser allows, the request can travel over an internal channel to a privileged browser component. That component checks the request and grants only the permitted operation. Correct validation of these messages is as important as the process restrictions themselves.

The browser process sandbox uses operating-system security mechanisms. Chromium on Windows combines controls such as restricted tokens, process mitigations and AppContainer capabilities, depending on the process and version. Linux implementations use system-call filtering and namespace isolation. macOS implementations use sandbox policies to constrain resource access. Renderer isolation is therefore not one universal list of forbidden operations: platforms, process types and browser releases expose different boundaries. The common goal is to grant only the capabilities needed for the process’s role.

Sandbox Permissions and Escape Risks

A sandbox is defined by exactly what it permits. Too tight, and legitimate features break; too loose, and the containment weakens. The permission set covers things like whether the process may make network connections directly or must route them through the broker, which files if any it may read, and whether it may spawn helpers. Web-facing permissions that users recognise, such as access to the camera, microphone or location, are mediated on top of this: access depends on browser permission rules, potentially including a user grant, an existing permission or managed policy. That permission is distinct from unrestricted OS access.

A sandbox escape breaches the intended restriction boundary. In a web exploit chain, a renderer compromise may be followed by a separate weakness in a broker, service or kernel that grants capabilities unavailable inside the sandbox. Such escapes are possible and do happen, which is why no responsible description calls a sandbox impenetrable. An exploitable kernel flaw reachable from the restricted process can undermine the boundary. System-call filters and reduced privileges can make some vulnerable interfaces unreachable, but cannot eliminate every implementation defect. Third-party software that injects code into the browser, including some security products, can also open new paths out. Layered restrictions can make a full compromise harder, although their effectiveness depends on the reachable attack surface and implementation.

It is equally important to say what the sandbox never claimed to cover. It does not protect a user from their own actions, from phishing, or from malware they deliberately download and run outside the browser. Those live beyond its boundary entirely.

Sandboxing vs Site Isolation and Virtual Machines

Three containment ideas are easy to conflate, and separating them clarifies what each actually does.

MechanismBoundary it enforcesProtects against
Process sandboxBetween a web-content process and the local systemA compromised renderer reaching files, devices or other processes
Site isolationBetween content from different websitesCross-site data access after a renderer compromise or some side-channel attacks
Virtual machineBetween a whole guest operating system and the hostGuest software affecting the host, at the cost of running a full OS

The sandbox limits what a web-content process can do to the computer. Site isolation places content from different sites into separate renderer processes where the implementation requires it, and restricts delivery of sensitive cross-site data. Its coverage varies by platform and configuration. The distinction matters because they counter different threats: the sandbox limits access to the machine, while site isolation reduces cross-site exposure within browser processes. It was strengthened partly in response to speculative-execution attacks. Neither feature is an absolute guarantee, and a tab is not necessarily mapped to exactly one process.

A virtual machine is a much heavier boundary. It runs an entire guest operating system on virtualised hardware, with a hypervisor enforcing the guest-host boundary. Browsing inside a VM can add containment, but shared folders, clipboard integration and hypervisor flaws affect that boundary. In the sandbox vs virtual machine comparison, the key distinction is a restricted process versus a guest environment, not a guarantee that one configuration is always safer.

Why It Matters and What to Expect

In supported mainstream browser configurations, sandboxing normally operates without a separate user action. Unsupported environments or explicit disabling can change that. Its value shows up only in what does not happen: a renderer exploit encounters restrictions that are intended to prevent arbitrary file access or persistent changes unless another boundary is crossed. The practical implications are modest and worth stating plainly. A sandbox helps protect local data from unauthorised access, but it is not an anonymity feature. It does not by itself hide the public IP address or stop permitted tracking and fingerprinting APIs. It is not a substitute for keeping the browser updated, because updates repair renderer, broker and operating-system vulnerabilities that could participate in an escape. And it is not a reason to run untrusted downloads, because files executed outside the browser leave its boundary behind.

Understood correctly, sandbox browsing is a containment layer: an arrangement intended to limit the consequences of compromised web code. Evaluate the actual permissions, supported platform and update state rather than treating the word “sandbox” as a complete security assessment.

Frequently asked questions

Is every browser tab a virtual machine?

No. Browser processes use operating-system restrictions rather than each running a complete guest OS. A tab may involve multiple processes, and process allocation varies. A virtual machine adds a separate guest environment and hypervisor boundary, with its own configuration and security considerations.

Can a sandbox stop phishing?

No. A sandbox contains compromised web code so it cannot reach the local system. Phishing tricks the user into giving away information or credentials, which happens outside the sandbox's boundary, so it offers no protection against it.

How is site isolation different from sandboxing?

The sandbox separates a web-content process from the local system. Site isolation separates content from different websites into different processes so one site cannot read another's data, including through side-channel attacks. They counter different threats and work together.

Can a browser sandbox be broken?

Yes. A flaw in a reachable privileged component can allow code to cross the intended boundary. Restrictions can block access to some vulnerable interfaces but not eliminate every defect. Browser and operating-system updates remain important even when sandboxing is enabled.

Does sandbox browsing protect my privacy?

It helps protect local files and other sensitive resources from unauthorised access by compromised web code. It does not by itself make browsing anonymous, hide your public IP address or stop tracking through permitted web interfaces. Those require separate controls.