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
- 92% confidence
- Finding
- The script executes another local Python script via subprocess based only on file existence, which expands the skill's capabilities from passive analysis to active code execution. Even though the command is hardcoded and shell injection is not present, running repository code during a 'security check' can execute untrusted logic and violate the claimed purely local inspection-only behavior.
