subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if not _NODE_MODULES.exists(): print("[jackal-memory] Installing Jackal dependencies (first run — takes ~30s)...", file=sys.stderr) r = subprocess.run( ["npm", "install", "--prefix", str(_SKILL_DIR)], capture_output=True, text=True, )- Confidence
- 88% confidence
- Finding
- Automatically running 'npm install' at first use executes arbitrary lifecycle scripts from dependencies and fetches code from the package registry at runtime. In an agent-skill context, this materially enlarges the supply-chain attack surface and can lead to arbitrary code execution on the host if a dependency or registry path is compromised.
