Skip to content

sandboxing

AI security interview questions tagged sandboxing, across every topic.

15 questions · 4 unlocked for you

Concepts behind "sandboxing"

Explanations of the mechanisms these questions rely on.

Foundational
Mobile Security
The Mobile Platform Security ModelAndroid and iOS both isolate each app in a sandbox, identify apps by their signatures, gate sensitive resources behind permissions or entitlements, and offer hardware-backed key storage. Android isolates apps with per-app Linux user IDs and SELinux and allows sideloading and vendor-controlled updates; iOS uses a kernel-enforced sandbox profile, mandatory code signing and central distribution. Both models protect apps from other apps, not from a device owner with root or a jailbreak, which is why mobile security designs keep authoritative decisions on the server.
Foundational
Infrastructure Security
What Containers Isolate, and What They Do NotContainers isolate processes using Linux namespaces, cgroups, capabilities, seccomp and security modules, but every container on a host shares one kernel. A kernel bug or a misconfiguration such as a privileged container, a mounted container runtime socket or a broad host mount lets code escape to the host. For untrusted code, including code written or run by AI agents, stronger boundaries such as gVisor's user-space kernel or Firecracker and Kata microVMs put a much smaller or separate kernel between the workload and the host.
Foundational
Infrastructure Security
Sandboxing Untrusted CodeAgents that write and run code, notebooks that execute model output, and platforms that run customer code all execute code nobody reviewed. A sandbox makes that safe by combining a strong isolation boundary with an environment that has nothing valuable in it: no credentials, minimal files, no network or tightly allowlisted egress, resource and time limits, and disposal after use. Isolation answers whether code can escape; the environment answers what it can do without escaping.
Core
Systems & OS SecuritySign in
Linux Sandboxing Primitives: Namespaces, cgroups, seccomp and LandlockLinux has no single sandbox feature. Containers and sandboxes combine primitives that each answer a different question: namespaces decide what a process can see, cgroups how much it can use, capabilities which root powers remain, Landlock or a security module which files and ports it may touch, and seccomp which system calls it may make. no_new_privs ties them together by stopping privilege gain through exec. They must be applied in the right order, and all of them are enforced by one shared kernel, so they harden a process but do not isolate hostile code from a kernel bug.