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:
@@ -64,6 +64,7 @@
|
||||
"~/.var/app",
|
||||
"~/.davfs2",
|
||||
"~/.winboat",
|
||||
"~/.config/coredesktop",
|
||||
"~/.claude",
|
||||
"~/.claude.json",
|
||||
"~/.hermes",
|
||||
|
||||
Reference in New Issue
Block a user