subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
raise BridgeError("powershell_missing", "PowerShell is required to install the AideNote bridge.") command = [powershell, "-NoProfile", "-ExecutionPolicy", "Bypass", "-File", str(installer)] try: completed = subprocess.run( command, env=installer_environment, capture_output=True,- Confidence
- 91% confidence
- Finding
- The code downloads an installer script from the network and then executes it with bash or PowerShell, granting it access to sensitive environment variables including the API key. Although the download is HTTPS-protected and hash-verified, this still creates a high-trust remote code execution path: compromise of the release process, incorrect hash maintenance, or malicious installer behavior would immediately lead to code execution and credential exposure on the host.
