<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/package-manager-sandboxing-rxvo2u0vl" -->

---
title: Package Manager Sandboxing | daily.dev
description: A cross-ecosystem survey of sandboxing in package manager clients, anchored by Homebrew 7.0.0's release, which splits installs into a networked fetch phase and...
canonical: https://daily.dev/posts/package-manager-sandboxing-rxvo2u0vl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Package Manager Sandboxing | daily.dev
og:description: A cross-ecosystem survey of sandboxing in package manager clients, anchored by Homebrew 7.0.0's release, which splits installs into a networked fetch phase and...
og:url: https://daily.dev/posts/package-manager-sandboxing-rxvo2u0vl
og:image: https://api.daily.dev/og/posts/rxVo2u0vL.png
og:image:alt: Package Manager Sandboxing
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Package Manager Sandboxing

**[Andrew Nesbitt](https://daily.dev/sources/nesbitt-io)** · 14 min read · 0 upvotes · 0 comments

## Summary

A cross-ecosystem survey of sandboxing in package manager clients, anchored by Homebrew 7.0.0's release, which splits installs into a networked fetch phase and an offline, read-only install phase, blocks sandboxed builds from reading the home directory, closes a cask sandbox escape via LaunchServices, and deprecates arbitrary Ruby install hooks in favor of signed declarative steps by December 2027. It traces Homebrew's sandbox history from sandbox-exec since 2015 through a Bubblewrap-based Linux sandbox in 6.0.0, its July replacement with Landlock, and August removal of Bubblewrap. The piece connects this to AI coding agents (Claude Code, Codex CLI, Cursor, Gemini CLI) using the same primitives (Seatbelt, Landlock, seccomp, bubblewrap) to sandbox shell execution, and to supply chain attacks like Shai-Hulud and the nx compromise that exploited postinstall scripts and agent privileges. It surveys sandbox adoption or its absence across opam, Swift Package Manager, Nix, Guix, Bazel, Gentoo, apt, pacman, Alpine, mise, RPM, CocoaPods, Deno, npm/pnpm/Yarn/Bun allowlists, RubyGems, Spack, Arch, Cargo, Zig, pip, Poetry, uv, pixi, Gradle, Maven, NuGet, Conan, and vcpkg, plus removal-based strategies (Go, Elm, NuGet, Composer, Julia, CPAN, Cabal) and CI-specific isolation gaps in GitHub Actions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nesbitt.io/2026/09/24/package-manager-sandboxing.html>

## Questions this post answers

### What changed in Homebrew 7.0.0's sandboxing model?

Homebrew 7.0.0, released September 13, 2026, splits installation into a fetch phase with network access and writable caches and an install phase that runs offline with read-only caches and no home directory access by default. It also closes a cask sandbox escape via LaunchServices by denying app launching, Mach services, and Unix socket connections, and deprecates arbitrary Ruby post_install and cask flight blocks in favor of declarative, signed *_steps, with removal set for December 2027.

_Track how Homebrew's sandboxing changes affect your formula and cask workflows on daily.dev._

### Why did Homebrew replace Bubblewrap with Landlock for its Linux sandbox?

Homebrew replaced Bubblewrap with Landlock in July 2026 because Landlock is built into the kernel and works inside unprivileged Docker containers, whereas Bubblewrap requires privileged namespaces that fail inside container-based CI jobs. Bubblewrap was fully removed by August 2026, and the Linux sandbox opt-out variable was removed in 7.0.0 with no replacement.

_Developers weighing Landlock versus Bubblewrap for build sandboxing can follow these tradeoffs on daily.dev._

### How did the Shai-Hulud npm worm abuse AI coding agents?

The Shai-Hulud worm that hit npm in September 2025 spread through postinstall scripts and, as one persistence trick, wrote a hook into Claude Code's settings file so it survived cache cleanup while running with the agent's privileges. Mandiant later reported an attacker hijacking a coding assistant session and spreading Shai-Hulud across roughly 100 internal repositories via poisoned package recommendations.

_Teams securing agent-driven dependency installs can keep up with attacks like Shai-Hulud on daily.dev._

## Similar posts on daily.dev

- [This Week in Package Management: 19 September 2026](https://daily.dev/posts/this-week-in-package-management-19-september-2026-pr3wvn6le) · Andrew Nesbitt · 0 upvotes · 0 comments
- [Homebrew 7.0.0](https://daily.dev/posts/homebrew-7-0-0-cj7h7kzxv) · Lobsters · 9 upvotes · 0 comments
- [Package managers have an integrity problem](https://daily.dev/posts/package-managers-have-an-integrity-problem-tk3f3g9tj) · Trail of Bits Blog · 1 upvotes · 0 comments
- [Homebrew 6.0 released with new security mechanism, Linux sandbox and more](https://daily.dev/posts/homebrew-6-0-released-with-new-security-mechanism-linux-sandbox-and-more-msizuoiey) · The Register · 0 upvotes · 0 comments
- [Agent Sandboxing: Comparing OpenSandbox vs. Docker](https://daily.dev/posts/agent-sandboxing-comparing-opensandbox-vs-docker-s1qwhk5xm) · SitePoint · 1 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security)

[View this post on daily.dev](https://daily.dev/posts/package-manager-sandboxing-rxvo2u0vl)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Package Manager Sandboxing","url":"https://daily.dev/posts/package-manager-sandboxing-rxvo2u0vl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/package-manager-sandboxing-rxvo2u0vl"},"datePublished":"2026-09-24T09:42:05.862Z","dateModified":"2026-09-24T09:42:33.887Z","description":"A cross-ecosystem survey of sandboxing in package manager clients, anchored by Homebrew 7.0.0's release, which splits installs into a networked fetch phase and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/416572ca2b211e96c4c4b92af22d1ec7?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/416572ca2b211e96c4c4b92af22d1ec7?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Andrew Nesbitt","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Andrew Nesbitt","logo":"https://media.daily.dev/image/upload/logos/placeholder.jpg","url":"https://daily.dev/sources/nesbitt-io"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/package-manager-sandboxing-rxvo2u0vl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security","timeRequired":"PT14M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Andrew Nesbitt","item":"https://daily.dev/sources/nesbitt-io"},{"@type":"ListItem","position":3,"name":"Package Manager Sandboxing"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/package-manager-sandboxing-rxvo2u0vl#faq","mainEntity":[{"@type":"Question","name":"What changed in Homebrew 7.0.0's sandboxing model?","acceptedAnswer":{"@type":"Answer","text":"Homebrew 7.0.0, released September 13, 2026, splits installation into a fetch phase with network access and writable caches and an install phase that runs offline with read-only caches and no home directory access by default. It also closes a cask sandbox escape via LaunchServices by denying app launching, Mach services, and Unix socket connections, and deprecates arbitrary Ruby post_install and cask flight blocks in favor of declarative, signed *_steps, with removal set for December 2027. Track how Homebrew's sandboxing changes affect your formula and cask workflows on daily.dev."}},{"@type":"Question","name":"Why did Homebrew replace Bubblewrap with Landlock for its Linux sandbox?","acceptedAnswer":{"@type":"Answer","text":"Homebrew replaced Bubblewrap with Landlock in July 2026 because Landlock is built into the kernel and works inside unprivileged Docker containers, whereas Bubblewrap requires privileged namespaces that fail inside container-based CI jobs. Bubblewrap was fully removed by August 2026, and the Linux sandbox opt-out variable was removed in 7.0.0 with no replacement. Developers weighing Landlock versus Bubblewrap for build sandboxing can follow these tradeoffs on daily.dev."}},{"@type":"Question","name":"How did the Shai-Hulud npm worm abuse AI coding agents?","acceptedAnswer":{"@type":"Answer","text":"The Shai-Hulud worm that hit npm in September 2025 spread through postinstall scripts and, as one persistence trick, wrote a hook into Claude Code's settings file so it survived cache cleanup while running with the agent's privileges. Mandiant later reported an attacker hijacking a coding assistant session and spreading Shai-Hulud across roughly 100 internal repositories via poisoned package recommendations. Teams securing agent-driven dependency installs can keep up with attacks like Shai-Hulud on daily.dev."}}]}
```

