Zed Moves Toward Secure-by-Default: Introducing Worktree Trust
Zed now opens new worktrees in Restricted Mode, refusing to parse project `.zed/settings.json`, spawn language servers, or start MCP servers until the user explicitly trusts the worktree. The change follows Mindgard vulnerability reports showing that a malicious project settings file could execute arbitrary shell commands via MCP `context_servers` or LSP `binary` entries simply by opening the project. Trust is persisted per host (local, SSH, WSL), can cover a parent folder, and can be reset with `workspace::ClearTrustedWorktrees`. An opt-out `trust_all_worktrees` setting exists for sandboxed environments, though manually granted trust is the only kind that persists across restarts.
Related posts
- Defending Your Software Supply Chain: What Every Engineering Team Should Do Now
Docker mediumAdeptRecent supply chain compromises (the axios npm hijack attributed to Lazarus Group, the TeamPCP campaign via Trivy's GitHub Action, Shai-Hulud, GlassWorm) share one root cause: implicit trust in mutable tags, broad long-lived tokens and unsandboxed runners. The recommended defenses start with pinning Actions to commit SHAs and images to digests, using lock files with npm ci, and applying 3-day cooldowns on new dependency versions, since most malicious releases live only hours. Further layers are short-lived scoped CI credentials, avoiding pull_request_target, artifact proxies and build-time SBOMs, plus canary tokens and credential cleanup on developer machines. AI coding agents should run in microVM sandboxes and MCP servers should be governed. Many recommendations are paired with Docker products such as Hardened Images, Scout, Sandboxes and MCP Gateway.
- Sandboxing
Zed mediumAdeptZed's agent panel now sandboxes the terminal and fetch tools by default (from 1.14) using OS-enforced restrictions: Seatbelt on macOS, Bubblewrap namespaces on Linux, and WSL on Windows. Default rules block writes outside project directories, writes to .git (which could plant hooks that run unsandboxed), and network access, and agents must request escalation with a stated reason. Instruction-following and command-matching rules like banning `git .*` are trivially bypassed via shells, env vars or other interpreters, and a symlink-swap TOCTOU race between user approval and bwrap bind mounting could grant write access to arbitrary readable directories, which Zed detects and fails closed on. The sandbox is one defense layer and does not cover the edit tool, ACP agents, LSP/MCP servers, build.rs, proc macros or git hooks run outside it.
- Kubernetes v1.37: Hardening Container Storage with Bind Mount Options and EmptyDir Permissions
Kubernetes Blog mediumAdeptKubernetes v1.37 adds two alpha storage-hardening features: per-volumeMount `bindMountOptions` (noexec, nosuid, nodev) applied by the container runtime, and a `mode` field on `emptyDir` volumes that replaces the hardcoded 0777. Together they block a compromised process from downloading and executing binaries on writable volumes even with a read-only root filesystem, and let you set sticky-bit (01777) or least-privilege (0750) permissions without init containers. bindMountOptions works on most volume types except image volumes and requires CRI `mount_options` support, enforced through Node Declared Features and kubelet rejection. emptyDir mode needs no runtime support, is overridden by fsGroup, and both features are Linux-only behind the VolumeBindMountOptions and EmptyDirVolumeMode gates.
- The Supply Chain Paradox: When “Hardened” Images Become a Vendor Lock-in Trap
Docker easyNovicePre-hardened container images reduce attack surface but can create a subtle vendor lock-in. The causes include custom Linux bases, broken compatibility with standard tooling and CI/CD, configuration lockdown, and hardening knowledge concentrated inside the vendor. The proposed evaluation framework asks platform teams to require images built on mainstream distributions (Debian, Ubuntu, Alpine, RHEL) with standard package managers and FHS layout, modular and overridable hardening layers, upstream contributions, and verifiable vulnerability disclosure, SBOMs and reproducible builds. It also calls for bidirectional migration tooling so that switching vendors stays a choice rather than a crisis.
- Coding Agent Horror Stories: The rm -rf ~/ Incident
Docker mediumAdeptAn AI coding agent asked to clean up an old repo ran `rm -rf tests/ patches/ plan/ ~/`, and the trailing `~/` expanded to the user's home directory and wiped an entire Mac, including the Keychain, SSH keys and years of files, with TRIM-enabled SSDs ruling out recovery. The same pattern appears in Claude Code GitHub issues #10077 and #12637 and in a Claude Cowork incident that deleted 15 years of family photos. The root cause is architectural: the agent runs as the user with inherited shell permissions, and nothing sits between the model's command and its execution. Docker argues that running agents in Docker Sandboxes (microVMs managed via the `sbx` CLI) contains this failure class through workspace-scoped mounts, default-blocked credential paths and read-only mounts.