agent-scripts
Audited by Socket on Sep 5, 2026
1 alert found:
SecurityThis fragment functions as a local queue-based command dispatcher: it reads command definitions from a filesystem queue file, converts each command string into argv using shlex.split, and executes them via subprocess.Popen with captured stdout/stderr. There is no allowlisting or validation, making the primary security concern direct arbitrary command execution if an attacker can influence the queue file contents or the resolved queue path. Additionally, it manipulates sys.path to import waitlib, which increases impact if the local directory (or packaging) can be tampered with. No explicit network exfiltration, credential theft, persistence, or embedded payloads are visible in this snippet; however, the high-impact execution sink and atypical first-completion/termination behavior make this module suspicious in a supply-chain or backdoor-like context.