Context-Inappropriate Capability
Medium
- Confidence
- 94% confidence
- Finding
- The file performs an automatic interpreter handoff by invoking `C:/Python314/python.exe` via `subprocess.run()` whenever `msys64` appears in `sys.executable`, which is unrelated to the core backtesting function and happens before normal program logic. This creates an unexpected execution path that can run a different Python environment with different packages, permissions, or PATH behavior, reducing transparency and increasing the chance of unsafe or attacker-influenced execution if that interpreter or its environment is compromised.
