Commit Graph

39 Commits

Author SHA1 Message Date
David Dworken
8235d55339 chore: bump version to 0.0.37 2026-02-08 20:39:05 -08:00
David Dworken
0dc4322cda Re-introduce non-existent deny path protection with mount point cleanup
PR #80 hardened the sandbox by mounting /dev/null over non-existent deny
paths to prevent their creation, but this caused bwrap to leave empty
"ghost dotfiles" on the host (issue #85), which PR #91 reverted. This
re-introduces the protection with proper cleanup: mount points are
tracked and removed via cleanupBwrapMountPoints(). A new lightweight
cleanupAfterCommand() API is exposed on SandboxManager for callers to
invoke after each command, and the srt CLI calls it on child exit.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 19:21:15 -08:00
David Dworken
fd054fc27a Expand denyRead glob patterns to concrete paths on Linux 2026-02-03 09:28:27 -08:00
ollie-anthropic
f5ba41a3d1 chore: upgrade deps and bump to 0.0.34 (#112)
* chore: upgrade lodash-es to 4.17.23 and fix js-yaml vuln

- Upgrade lodash-es from 4.17.21 to 4.17.23
- Fix js-yaml prototype pollution vulnerability (GHSA-mh29-5h37-fv8m)

npm audit now shows 0 vulnerabilities.

* chore: bump version to 0.0.34
2026-02-02 16:32:08 -08:00
David Dworken
bf36e4406c Harden sandbox by removing unnecessary trustd.agent mach-lookup (#108)
* Harden sandbox by removing unnecessary trustd.agent mach-lookup

* Bump version in package-lock.json
2026-02-02 02:22:00 -08:00
ollie-anthropic
37cd88c011 update pointers 2026-01-23 15:19:17 -08:00
ollie-anthropic
9c9bd59160 chore: bump version to 0.0.29 2026-01-20 22:47:30 -08:00
ollie-anthropic
6eb213b33e update pointers 2026-01-14 19:21:03 -08:00
ollie-anthropic
d4761dc924 chore: bump version to 0.0.27 2026-01-14 18:42:21 -08:00
Jacques Paye
7ddf03cc12 switch to CLAUDE_TMPDIR 2026-01-08 12:03:54 -08:00
ollie-anthropic
0ebff52ac5 update pointers 2026-01-07 20:51:32 +00:00
David Dworken
43d549eee9 Harden sandbox deny path handling for non-existent files
Previously, non-existent paths in the deny list were skipped since
bwrap cannot ro-bind a file that doesn't exist. This change adds
defense-in-depth by mounting /dev/null at the first non-existent
path component, which prevents creation of the denied path.

- Add findFirstNonExistentComponent helper to locate mount point
- Mount /dev/null at first missing component to block path creation
- Add tests for non-existent deny path protection

Bump version to 0.0.24

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-06 14:31:22 -08:00
David Dworken
00ef20dfd2 Bump version to 0.0.23
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-16 17:59:50 -08:00
ollie-anthropic
e6404b64ec Bump version to 0.0.22
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-15 16:09:06 +00:00
Kyle Gao
d96a5769af Bump version to 0.0.21
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 11:38:10 -05:00
David Dworken
22e4efab3b Bump version to 0.0.20
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-09 19:13:38 +00:00
JB
98df7dc1b2 Bumping version to 0.0.19 2025-12-04 15:30:58 -05:00
ollie-anthropic
223f39167a Add mandatory deny paths for dangerous files and settings
- Add getSettingsFilePaths() to sandbox-utils.ts for shared settings protection
- Settings paths now added at callsite in sandbox-manager.ts via denyWithinAllow
- macOS: getMandatoryDenyPatterns() returns glob patterns for dangerous files
- Linux: _getMandatoryDenyWithinAllow() uses ripgrep to scan subdirectories
- Always block: .bashrc, .zshrc, .gitconfig, .vscode/, .idea/, .git/hooks,
  .git/config, .claude/commands/, .claude/agents/, settings.json files
- Add mandatoryDenySearchDepth config option for Linux (default: 3, range: 1-10)
- Add comprehensive tests for mandatory deny paths
- Document mandatory deny paths in README

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 13:31:23 -08:00
ollie-anthropic
efeeb18599 update pointers 2025-11-24 16:31:46 -08:00
ollie-anthropic
7c43068f3c update package json 2025-11-18 16:29:06 -08:00
ollie-anthropic
004536f6b7 update package.json 2025-11-17 21:29:36 -08:00
ollie-anthropic
2aec2a7949 Improve the flexibility of the API and include better defaults 2025-11-16 22:31:40 -08:00
ollie-anthropic
943a2e8e15 Add bun types to dev dependencies 2025-11-16 19:11:21 -08:00
ollie-anthropic
7754a76895 seccomp fail gracefully 2025-11-16 16:14:59 -08:00
ollie-anthropic
c43b907285 fix path finding 2025-11-14 02:31:05 -08:00
ollie-anthropic
8f62627003 update pointers 2025-11-13 14:49:37 -08:00
ollie-anthropic
dd87f510c4 Merge pull request #31 from anthropic-experimental/ollie/add-config-mutation-and-bump-pointers
Add config mutation and bump pointers
2025-11-13 13:26:02 -08:00
ollie-anthropic
398ba58ce3 add config mutation and bump pointers 2025-11-10 00:14:08 -08:00
jalateras
fa165d8553 Add pre-commit hooks for code quality enforcement
- Install husky v9.1.7 for git hook management
- Install lint-staged v16.2.6 for efficient staged file checking
- Configure pre-commit hook to run ESLint and Prettier on staged TypeScript files
- Add prepare script to ensure hooks are installed after npm install

This setup automatically enforces code quality standards before each commit,
running linting and formatting only on staged files for optimal performance.
2025-11-06 16:22:23 +11:00
ollie-anthropic
fff6ad632e Improve dependency checking and error messages
- Add early dependency validation in initialize() before starting any services
- Provide platform-specific error messages listing required dependencies
  - Linux: ripgrep (rg), bubblewrap (bwrap), and socat
  - macOS: ripgrep (rg)
- Refactor checkDependencies() for cleaner code structure
- Bump version to 0.0.7

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 18:34:50 -08:00
ollie-anthropic
8cc0e68506 update pointers 2025-11-04 16:36:01 -08:00
ollie-anthropic
c8a64e944f 004-pointers 2025-11-03 19:30:13 -08:00
ollie-anthropic
135c63b4bb 0.0.3 2025-10-31 17:18:39 -07:00
David Dworken
ace52881a2 Bump version to 0.0.2
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 16:23:29 -07:00
David Dworken
a918f1dd6d Add unit tests to CI workflow and fix bridge process cleanup
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 16:02:32 -07:00
David Dworken
23e9e22622 Add BPF/seccomp integration for Linux unix socket blocking and comprehensive testing infrastructure
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 13:55:33 -07:00
David Dworken
0a1c2643a0 Update sandbox config format to cleaner config and simplify code 2025-10-23 13:54:11 -07:00
ollie-anthropic
451057c475 Packages point toward the link repo 2025-10-20 11:06:17 -07:00
ollie-anthropic
b483c6113b Initial release 2025-10-20 10:19:42 -07:00