subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
$execution = [scriptblock]::Create($installer.Content) & $execution -Channel {channel} -InstallDir '{target_dir}' """ subprocess.run( ["powershell", "-Command", powershell_script], capture_output=True, text=True, timeout=300 )- Confidence
- 98% confidence
- Finding
- This code downloads remote content from https://dot.net and immediately executes it inside PowerShell as a scriptblock. That creates a remote code execution path dependent on network content integrity and trust in a third-party bootstrap script, which is especially dangerous in a document-generation skill whose stated purpose does not require arbitrary script execution.
