Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(security): harden runtime downloads, research uploads, Windows sandbox, and workspace MCP

4 months ago

c27db6f
Authored
mweinbach6/7/2026, 3:04:42 PM
- managed LibreOffice: verify repo-pinned SHA-256 before extract/promote/exec and require a checksum for custom download URLs (CWE-494)
- research uploads: constrain attachment IDs to generated UUIDs and validate pending-upload metadata path containment before copy/upload (CWE-22/CWE-200)
- Windows sandbox: require explicit unsandboxed approval for workspace-write/no-network commands under the non-enforcing helper instead of running them silently (CWE-284/CWE-693)
- workspace MCP: do not auto-start a workspace's own stdio MCP servers unless the workspace is explicitly trusted via env/user config (CWE-78/CWE-284)

Adds regression tests for each and updates sandbox/MCP/protocol docs.

Co-authored-by: Cursor <cursoragent@cursor.com>

Parent416cc89

22 files changed
  • docs/generated/websocket-jsonrpc.d.ts+3−3
  • docs/generated/websocket-jsonrpc.schema.json+1−1
  • docs/mcp-guide.md+9−0
  • docs/sandbox.md+16−8
  • docs/websocket-protocol.md+1−0
  • src/agent.ts+1−1
  • src/config.ts+12−0
  • src/managedSofficeRuntime/assets/managed-soffice-helper.mjs+63−0
  • src/mcp/index.ts+49−5
  • src/server/jsonrpc/schema.research.ts+4−3
  • src/server/research/researchFileStore.ts+42−5
  • src/server/research/types.ts+12−0
  • src/server/session/mcp/McpValidationFlow.ts+7−1
  • src/tools/bash.ts+33−24
  • src/types.ts+9−0
  • test/config/config.loadConfig.test.ts+34−0
  • test/fixtures/mcp-local-integration-runner.ts+3−0
  • test/managedSofficeRuntime.test.ts+49−0
  • test/mcp.workspace-trust.test.ts+133−0
  • test/research.schemas.test.ts+26−2
  • test/research/research.fileStore.test.ts+114−0
  • test/tools/tools.bash.test.ts+55−0