agent-scripts

Warn

Audited by Socket on Sep 5, 2026

1 alert found:

Security
SecurityMEDIUM
scripts/wake-run

This 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.

Confidence: 66%Severity: 78%
Audit Metadata
Analyzed At
Sep 5, 2026, 05:56 PM
Package URL
pkg:socket/skills-sh/moontory%2Fskills%2Fagent-scripts%2F@1e7858ffd7b08074e648e71384d02934a2aeb733744c2b679d63d5553c538a26
Security Audit — socket — agent-scripts