subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
for cmd in test_commands: try: result = subprocess.run( cmd, capture_output=True, text=True,- Confidence
- 93% confidence
- Finding
- The script invokes another program via subprocess during a 'security check', which expands behavior from passive inspection into active execution. Even though the command is a fixed argument list and not shell-interpolated, executing a sibling script can still trigger unintended code paths or unsafe side effects in the checked project, especially if that script is modified or malicious.
