P8-016: Security — strict path hardening in file/git/shell tools #169

Closed
opened 2026-03-16 01:26:33 +00:00 by jason.woltje · 0 comments
Owner

Harden file-tools.ts, git-tools.ts, shell-tools.ts with strict path validation — reject any resolved path outside sandboxDir (path traversal, symlink escapes). Add unit tests for sandbox escape attempts. Prep for future chroot integration (see docs/plans/chroot-sandboxing.md).

Ref: docs/plans/2026-03-15-agent-platform-architecture.md (RBAC & Filesystem Security, Sandbox Escape Prevention)

Wave 2 — independent, runs after P8-007.

Harden file-tools.ts, git-tools.ts, shell-tools.ts with strict path validation — reject any resolved path outside sandboxDir (path traversal, symlink escapes). Add unit tests for sandbox escape attempts. Prep for future chroot integration (see docs/plans/chroot-sandboxing.md). Ref: docs/plans/2026-03-15-agent-platform-architecture.md (RBAC & Filesystem Security, Sandbox Escape Prevention) Wave 2 — independent, runs after P8-007.
jason.woltje added this to the Phase 8: Polish & Beta (v0.1.0) milestone 2026-03-16 01:26:33 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#169