---
title: "Server-side sandboxing: An introduction"
description: "Server-side workloads like image processing, parsing and thumbnailing often depend on memory-unsafe C++ libraries with histories of exploitable bugs (e.g. ImageTragick), so Figma isolates them with sandboxing rather than relying solely on preventing vulnerabilities."
url: "https://swe.quest/articles/server-side-sandboxing-an-introduction-7a8a0dd3442f4e4f"
canonical: "https://www.figma.com/blog/server-side-sandboxing-an-introduction/"
source: "Figma"
published: "2023-10-24"
difficulty: "easy"
kind: "Deep dive"
reading_minutes: 9
tags: ["sandboxing","security","virtualization","containers","linux"]
---

# Server-side sandboxing: An introduction

A post on [Figma](https://swe.quest/sources/figma.md), published 2023-10-24, 9 min read, Deep dive. Original: [https://www.figma.com/blog/server-side-sandboxing-an-introduction/](https://www.figma.com/blog/server-side-sandboxing-an-introduction/)

## Summary

Server-side workloads like image processing, parsing and thumbnailing often depend on memory-unsafe C++ libraries with histories of exploitable bugs (e.g. ImageTragick), so Figma isolates them with sandboxing rather than relying solely on preventing vulnerabilities. Three primitives are compared at a high level: VMs (Firecracker via AWS Lambda), containers (nsjail using namespaces, cgroups and seccomp), and direct seccomp syscall allowlists built with libseccomp for pure-computation workloads. Seccomp offers strong security and minimal overhead but high upfront development cost, while containers are easier to ship but have more security pitfalls. A questionnaire covering environment, isolation granularity, latency, cost, development effort and operational ownership helps teams choose an approach.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Virtualization](https://swe.quest/tags/virtualization.md) (Infrastructure)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)

## Prerequisites

- Linux processes and syscalls ([easy posts on Linux](https://swe.quest/tags/linux.md?difficulty=easy))
- basic virtualization concepts ([easy posts on Virtualization](https://swe.quest/tags/virtualization.md?difficulty=easy))

## Keywords

seccomp, nsjail, Firecracker, AWS Lambda, libseccomp, ImageTragick, ImageMagick

## Related posts

- [Server-side sandboxing: Containers and seccomp](https://swe.quest/articles/server-side-sandboxing-containers-and-seccomp-0f7ac1ac690426f8.md): Figma · 2023-10-24 · Medium · 15 min read · Sandboxing & isolation, Containers, Linux, Security
  Containers and seccomp offer lighter-weight sandboxing than VMs, but both shift much more configuration responsibility onto the user.
- [Server-side sandboxing: Virtual machines](https://swe.quest/articles/server-side-sandboxing-virtual-machines-66f9fa065fa102cd.md): Figma · 2023-10-24 · Medium · 10 min read · Sandboxing & isolation, Virtualization, Serverless, Application security, Cloud platforms
  VM-based sandboxing rests on two boundaries: the hypervisor, which is usually strong but exposes a large attack surface, and the VM's own permissions, which must be restricted through network limits, minimal service access and short-lived credentials so a compromised job can't do harm without escaping.
- [Defense in Depth: How Replit Secures Every Layer of the Vibe Coding Stack](https://swe.quest/articles/defense-in-depth-how-replit-secures-every-layer-of-the-vibe-coding-stack-0d05cbcd7ee6ec9a.md): Replit · 2026-04-21 · Easy · 7 min read · Security, Sandboxing & isolation, Multi-tenancy, Supply chain security, AI for coding
  Replit layers its security controls so that no single one is the last line of defense, from development sandboxes to production hosting.
- [Comparing Different Approaches to Sandboxing](https://swe.quest/articles/comparing-different-approaches-to-sandboxing-650a4a9c7bb4484a.md): Docker · 2026-05-07 · Easy · 7 min read · Sandboxing & isolation, AI agents, Virtualization, Containers, Linux
  AI agents need strong isolation because hallucinations and prompt injection can lead to destructive commands, and the common sandboxing options trade isolation against cost. chroot isolates only the filesystem and can be escaped by root processes. systemd-nspawn adds process and network isolation but is Linux-only.
- [WebAssembly and Back Again: Fine-Grained Sandboxing in Firefox 95](https://swe.quest/articles/webassembly-and-back-again-fine-grained-sandboxing-in-firefox-95-d23a4c9673130b46.md): Mozilla Hacks · 2021-12-06 · Medium · 4 min read · Sandboxing & isolation, WebAssembly, Browsers, Memory safety, Supply chain security
  Firefox 95 ships RLBox, a fine-grained sandboxing technique that compiles third-party C/C++ libraries (Graphite, Hunspell, Ogg, with Expat and Woff2 following in 96) to WebAssembly and then back to native code, so untrusted code runs in-process but cannot jump to unexpected code or touch memory outside its region.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
