subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
print("\n🧪 运行测试...") test_script = script_dir / 'test_wol.py' if test_script.exists(): subprocess.run(['python3', str(test_script)], cwd=str(script_dir)) print("\n✅ 技能已就绪!") return 0- Confidence
- 74% confidence
- Finding
- The installer automatically executes a local test script after installation, which expands the trust boundary from installing files to running additional code. If the skill directory or bundled test file is tampered with, installation triggers execution of attacker-controlled code under the user's account.
