agent-builder
Audited by Socket on Sep 16, 2026
2 alerts found:
SecurityAnomalyThe code is not itself malware based on the supplied fragment, but it implements a privileged local automation interface. Its primary security risk is intentional arbitrary shell execution via shell=True combined with a weak blacklist, plus unrestricted workspace file modification. It should only receive trusted commands and arguments, or be redesigned using argument-list subprocess calls, strict command allowlists, and stronger authorization. The provided code also fails to parse because TASK_TOOL_TEMPLATE has no value.
No direct malware or explicit data theft is evident in the supplied fragment. It is an agent framework that sends prompts, working-directory information, and tool results to Anthropic and delegates model-controlled actions to an unspecified execute_tool function. If that function permits unrestricted shell, filesystem, or network operations, the design presents a significant command-execution and data-exposure risk. Review and restrict TOOLS and execute_tool before use; the incomplete syntax also requires correction.