subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: # Run benchmark in skill's workspace context result = subprocess.run( ["python3", str(benchmark_script)], cwd=skill_path, capture_output=True,- Confidence
- 98% confidence
- Finding
- The code executes a benchmark script taken directly from the evaluated skill variant's directory. Because variants are effectively untrusted inputs in an evolution system, this creates arbitrary code execution in the analyzer's environment, allowing a malicious or compromised variant to run system commands, access files, or pivot further.
