subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
timeout=timeout, t0=t0) def _execute(self, cmd, cwd, env, timeout, t0): proc = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=str(cwd), env=env, stdin=subprocess.DEVNULL, start_new_session=True,- Confidence
- 96% confidence
- Finding
- This code executes arbitrary discovered skill scripts via subprocess.Popen. Although arguments are passed as a list rather than through a shell, the core security risk is intentional execution of untrusted code supplied by the skill under test; the surrounding sandbox reduces but does not eliminate host risk because there is no strong OS-level confinement such as containers, seccomp, user namespaces, or mount isolation. A malicious skill can still consume CPU/memory, interact with the filesystem portions exposed to it, and potentially exploit interpreter or kernel/runtime escape bugs.
