From 46e2fc409e624bfdc456d5de545f144fe6ffb925 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Mon, 21 Jul 2025 11:40:17 -0400 Subject: [PATCH] fix(tools): bash: add scp and ssh to banned commands Add `scp` and `ssh` to the list of banned commands to avoid security risks and UI issues when asking for user input in the terminal. --- internal/llm/tools/bash.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/llm/tools/bash.go b/internal/llm/tools/bash.go index abc5deb3dc8d80401f452a57c9735128dd5e91d1..10051a24bce881b9bdc4a8990364d30dec92bc85 100644 --- a/internal/llm/tools/bash.go +++ b/internal/llm/tools/bash.go @@ -55,6 +55,8 @@ var bannedCommands = []string{ "lynx", "nc", "safari", + "scp", + "ssh", "telnet", "w3m", "wget",