subprocess module call
- Category
- Dangerous Code Execution
- Confidence
- 92% confidence
- Finding
The script launches a user-supplied preview command via subprocess.Popen. Although it avoids a shell, this still provides arbitrary code execution capability to anyone who can influence --command, which is significant in an agent skill context because the skill may be induced to run untrusted project commands with inherited environment and filesystem access.
- Content
python env = os.environ.copy() env["BROWSER"] = "none" with log_path.open("ab", buffering=0) as log_file: process = subprocess.Popen( command, cwd=cwd, env=env,
