mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 11:13:43 +08:00
- Shell scan: a token normalizing to the filesystem root (//, /., /..) is only skipped when the command carries no destructive verb; with rm/rmdir/shred/srm present the scan fails closed, so 'rm -rf //' is refused while sed empty replacements (s/pattern//) stay allowed. - Chat-upload fallback: a boundary violation is waived only when the requested path itself normalizes inside one of the conversation's candidate upload directories; a basename match against a stored attachment no longer clears the violation. Resolver/DB failures keep the BLOCK finding. The unused candidate-roots resolve overload is removed. - Regression tests for destructive root tokens, sed allowance, the fail-closed compound case, stored-upload-path allowance, basename collisions, cross-conversation paths, and resolver failure. |
||
|---|---|---|
| .. | ||
| guardian | ||
| service | ||
| DefaultToolGuardTest.java | ||
| WorkspacePathGuardSandboxTest.java | ||
| WorkspacePathGuardShellTest.java | ||