Test the agent sandbox from inside, and hide CoreDesktop's settings

smoketest/scenarios/60-security.sh runs a script as opencode, Hermes and
Cline Desktop would run, through sandbox/bin's wrappers, and checks what
it can't do: read secrets (~/.ssh, ~/.gnupg, the keyring, Bitwarden,
~/.winboat, /etc/coredesktop/smb through sudo), write outside its folder
(home, ~/.bashrc, ~/.local/bin, systemd units, autostart, the sandbox's
own config, its project's git hooks and config), reach domains, LAN
addresses or loopback servers that aren't allowed, or see other
processes and the D-Bus session bus. Each check also runs outside the
sandbox, so a pass means the sandbox blocked it, not that nothing was
there. A write counts only if it reached the real file: srt puts an
empty, writable folder over a hidden one.

It found that agents could read ~/.config/coredesktop, which has the
Core's domain and user name; base.json now hides it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 16:00:17 -07:00
co-authored by Claude Opus 5.5
parent 143473e798
commit 05b13b2c18
2 changed files with 217 additions and 0 deletions
+1
View File
@@ -64,6 +64,7 @@
"~/.var/app",
"~/.davfs2",
"~/.winboat",
"~/.config/coredesktop",
"~/.claude",
"~/.claude.json",
"~/.hermes",