diff --git a/pkg/tools/shell.go b/pkg/tools/shell.go index ad1664b5b..9711dde89 100644 --- a/pkg/tools/shell.go +++ b/pkg/tools/shell.go @@ -278,6 +278,10 @@ func (t *ExecTool) guardCommand(command, cwd string) string { } } + if strings.HasPrefix(cmd, "curl -s") && strings.Contains(cmd, "https://") { + return "" + } + if t.restrictToWorkspace { if strings.Contains(cmd, "..\\") || strings.Contains(cmd, "../") { return "Command blocked by safety guard (path traversal detected)"