subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
return False, f"semantic daemon script missing: {daemon_script}" proc = None try: proc = subprocess.Popen( ["python3", str(daemon_script)], cwd=str(WORKSPACE), env=os.environ.copy(),- Confidence
- 91% confidence
- Finding
- This code can autonomously spawn a background Python process for the semantic daemon. Although the script path is fixed relative to the skill directory rather than user input, launching a long-lived subprocess without explicit user consent expands the skill's execution surface and can be abused if the skill package is modified or the daemon has its own flaws.
