subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
cmd.append(command) try: result = subprocess.run( cmd, capture_output=True, text=True,- Confidence
- 95% confidence
- Finding
- This code appends an arbitrary command string to an ssh invocation and executes it on the remote host without any policy validation, confirmation, or restriction. In this skill, task steps include package installation, process killing, service restart, and network fetches, so any caller or upstream workflow that can influence the command stream gains broad remote code execution on the target system.
