subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: if is_wsl(): # WSL 环境:直接执行 /mnt/c/.../Everything.exe subprocess.Popen( [everything_exe, "-startup"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL )- Confidence
- 90% confidence
- Finding
- The script executes whatever binary path is resolved as Everything.exe, and that path can originate from untrusted sources such as environment variables or writable config. In an agent skill context, automatic background execution of a discovered executable can become arbitrary code execution if an attacker plants or points to a malicious binary.
