AIToday
AI Safety & AlignmentOpen-Source AIZenn AI/MLPublished: Nov 15, 2026, 04:00 JST

bwrap-guard restores bwrap in 68–343 ms, not 13 minutes

Send on LINE
bwrap-guard restores bwrap in 68–343 ms, not 13 minutes

3 Key Points

  1. What happened

    VMs reset the system area on every swap, deleting /usr/bin/bwrap six times in days; bwrap-guard now checks sha256, version and a live smoke test before launch and restores in 68–343 ms.

  2. Why it matters

    The guard blocks every start unless a real, functional sandbox is confirmed, so isolation never silently disappears.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The setup here is an Ubuntu 24.04 VM whose operating system area resets whenever the VM is swapped, while the home directory persists. Because bubblewrap was installed via apt into /usr/bin, each swap deleted it. The weekly doctor health check could not catch these mid-job disappearances, so the agent path stalled right at launch. The author's choice of a persistent home directory as the store is a direct response to that reset behavior.

The final design combines three pieces: a copy-restore of a pristine package file, a wrapper that enforces --sandbox strict, and a doctor hook that calls the same ensure script. Discarded options included a PATH-based fallback (rejected because the CLI's lookup method was unconfirmed) and a static build (which would add a build environment and a non-package binary).

Risks are documented rather than hidden: the backup and manifest share the same writable home, so a deliberate replacement would not be detected, though the smoke test still runs on any restored binary. Network namespace isolation is not checked because the VM cannot create one (netns_at_seed=unavailable).

FAQ
How does bwrap-guard verify bubblewrap before launching an agent?
It checks the sha256 against a recorded value, compares bwrap --version output, and runs a live smoke test that actually starts a sandbox and confirms isolation.
What happens if bwrap cannot be restored?
The wrapper refuses to start the agent, exiting with code 69, and the agent is never launched.
What are the limits of this guard?
It does not verify network isolation, and the trust boundary is the home directory: anyone with write access there could replace both the backup and the manifest.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleDeepSeek turns its whole app into an API