mateclaw/mateclaw-server/src/main/java/vip/mate/tool/guard
matevip 252a6fc425 fix(tool-guard): enforce workspace boundary for execute_code and trust spill roots (#403)
execute_code (bash/sh/shell) bypassed the workspace boundary guard, so shell
code run through it could read/write/delete paths outside the workspace sandbox
(e.g. cat /etc/passwd) while the same paths were blocked for read_file and the
shell tools. Bring execute_code under the guard (scan only shell-language code,
report the code param), and trust the tool-result spill roots so a legitimate
spilled result stays readable. Adds regression tests.
2026-06-23 10:11:54 +08:00
..
controller sync: Feishu CardKit streaming-card adapter via cardkit/v1 SDK 2026-05-20 11:37:12 +08:00
engine sync: Feishu CardKit streaming-card adapter via cardkit/v1 SDK 2026-05-20 11:37:12 +08:00
guardian fix(tool-guard): enforce workspace boundary for execute_code and trust spill roots (#403) 2026-06-23 10:11:54 +08:00
model fix(tool/guard): harden workspace filesystem sandbox (#313) 2026-06-10 17:17:07 +08:00
repository Initial commit: MateClaw — Java + Vue 3 AI Assistant System 2026-04-04 19:03:49 +08:00
service feat(tool): add execute_code for running agent-authored code (#257) 2026-06-09 08:05:50 +08:00
DangerousPattern.java Initial commit: MateClaw — Java + Vue 3 AI Assistant System 2026-04-04 19:03:49 +08:00
DefaultToolGuard.java feat(tool): add execute_code for running agent-authored code (#257) 2026-06-09 08:05:50 +08:00
ToolExecutionGuardHelper.java Initial commit: MateClaw — Java + Vue 3 AI Assistant System 2026-04-04 19:03:49 +08:00
ToolGuard.java Initial commit: MateClaw — Java + Vue 3 AI Assistant System 2026-04-04 19:03:49 +08:00
ToolGuardEngineAdapter.java Initial commit: MateClaw — Java + Vue 3 AI Assistant System 2026-04-04 19:03:49 +08:00
ToolGuardResult.java Initial commit: MateClaw — Java + Vue 3 AI Assistant System 2026-04-04 19:03:49 +08:00
WorkspacePathGuard.java fix(tool-guard): enforce workspace boundary for execute_code and trust spill roots (#403) 2026-06-23 10:11:54 +08:00