Skip to content
프로젝트

google/sandboxed-api has 1,774 GitHub stars and 201 forks. GitHot measured +2 stars in 24 hours, +2 in 7 days, and +2 in 15 days. Last checked 2026-11-22 13:09 UTC. Last push 2026-11-19.

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+2
in 7 days
+2
in 15 days
+2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

소개

C/C++ 라이브러리를 위한 샌드박스를 자동으로 생성

보안

README.md

Original

CI status on GitHub

Sandboxed API lockup text with sandbox visual

Copyright 2019-2026 Google LLC

Introduction

The open-source Sandboxed API (SAPI) project builds on top of Google's Sandbox2 and aims to make sandboxing of C/C++ libraries less burdensome.

Sandboxed API provides three main benefits:

  • Instead of sandboxing entire programs or having to change source code to be able to sandbox a part of a program as with Sandbox2, individual C/C++ libraries can be sandboxed with SAPI. As a result, the main program is isolated from code execution vulnerabilities in the C/C++ library.

  • Our working motto is: Sandbox once, use anywhere. Libraries sandboxed with Sandboxed API can be reused easily, which removes the burden for future projects. Before Sandboxed API, sandboxes available for use at Google required additional implementation work with each new instance of a project which was intended to be sandboxed, even if it reused the same software library. Sandbox2 policies and other restrictions applied to the sandboxed process had to be reimplemented each time, and data exchange mechanisms between trusted and untrusted parts of the code had to be designed from scratch.

  • Each SAPI library utilizes a tightly defined security policy, in contrast to the typical sandboxed project, where security policies must cover the total syscall/resource footprint of all utilized libraries.

Sandboxed API (SAPI) has been designed, developed, and is maintained by members of the Google Sandbox Team. It also uses our field-tested Sandbox2. Currently, many internal projects are using SAPI to isolate their production workloads.

Sandbox2 is also open-sourced as part of the SAPI project and can be used independently.

Documentation

Developer documentation is available at Sandboxed API and Sandbox2.

We recommend reading SAPI Getting Started guide, or Sandbox2 Getting Started respectively.

If you are interested in a general overview of sandboxing technologies, see https://developers.google.com/code-sandboxing.

Dependencies

SAPI and Sandbox2 both support Bazel and CMake build systems. The following dependencies are required on Debian 13 ("Trixie"):

sudo apt-get update
sudo apt-get install -qy --no-install-recommends \
      build-essential \
      clang-19 \
      git \
      gnupg \
      libcap-dev \
      libclang-19-dev \
      libclang-rt-19-dev \
      libncurses-dev \
      libzstd-dev \
      linux-libc-dev \
      llvm-19-dev \
      pkg-config \
      unzip \
      wget \
      zip \
      zlib1g-dev
# Bazel only, check https://bazel.build/install/ubuntu for details
sudo apt-get install -qy --no-install-recommends \
      bazel \
      openjdk-17-jdk-headless
# CMake only
sudo apt-get install -qy --no-install-recommends \
      cmake \
      ninja-build

LLVM

SAPI offers a clang tool header generator based on LLVM Libtooling.

We aim to provide support for at least the latest three LLVM releases and test on Debian stable.

Getting Involved

If you want to contribute, please read CONTRIBUTING.md and send us pull requests. You can also report bugs or file feature requests.

If you'd like to talk to the developers or get notified about major product updates, you may want to subscribe to our mailing list or sign up with this link.

관련 프로젝트 살펴보기

불러오는 중…