subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
auditor = AutoAuditedOperation() def execute(): return subprocess.run( command, shell=True, capture_output=True,- Confidence
- 98% confidence
- Finding
- The code executes a caller-supplied string via subprocess.run(..., shell=True), which enables shell metacharacter injection and unrestricted command execution. In this skill context, the wrapper presents itself as an auditing/operations tool, but it actually provides a generic shell execution primitive that can run destructive or credential-accessing commands while only logging them afterward.
