agent-release-gate
Audited by Socket on Sep 5, 2026
2 alerts found:
Anomalyx2Medium risk overall: this fragment contains two high-impact execution patterns—(1) local shell execution via subprocess.run(..., shell=True) using operator-provided COLD2_REPLACE_CMD, and (2) remote tool coercion that can execute bash commands inside an agent/sandbox. There is no direct evidence of malware like exfiltration to third-party domains or persistence in the shown code, and it includes secret-redaction logic before writing results. Confidence is reduced because the provided code is truncated/corrupted mid-function, preventing full auditing.
No clear evidence of direct malware in this snippet (no eval/exec of remote content, no direct exfiltration, no subprocess usage). The main concerns are supply-chain/high-privilege execution via dynamic loading of qa_product.py, permissive default permission policy (permission_default="allow"), and the harness’s ability to trigger sensitive tool integrations (Gmail) and to test for prompt/tool escapes (bash commands). These make the module potentially risky in a real connected environment, even if its intent appears to be QA/security testing rather than overt sabotage.