ai-research-explore
Audited by Socket on Jul 27, 2026
2 alerts found:
AnomalySecurityNo direct malware is evident in this fragment (no credential harvesting, network exfiltration, or persistence mechanisms). However, there is a significant security risk from delegated execution: user/config-provided 'command' strings (evaluation_source['command'] and composed variant commands) are passed via subprocess to helper execution scripts. If those helper scripts execute the command string through a shell or otherwise unsafely, this module can enable command injection or sabotage. Additionally, dynamic git worktree/branch creation increases the impact of malicious inputs. Treat helper scripts and passes under base_dir as high-integrity requirements and consider allowlisting/validation of command inputs.
This code does not show direct malicious behavior such as credential theft or network exfiltration within the fragment. However, it implements a high-risk supply-chain capability: it dynamically imports and executes Python modules from a target repository during runtime probes (exec_module), with only minimal filename-based filtering and no sandboxing/subprocess isolation. If an attacker can influence the repository contents or the target_location_map selection, this can become arbitrary code execution in the analysis environment. Secondary behaviors include host/GPU probing via local subprocesses and writing an artifact that records system resource information.