AI Security Review
scanned 3h ago · by lpm-firewall-aiLPM treats this as warn-only first-party agent extension lifecycle risk. The notable risk is a guarded Storybook automigration that detects AI-agent context and can add @storybook/addon-mcp to the user's Storybook project. This is explicit CLI migration behavior, not npm install-time compromise.
Decision evidence
public snapshot- dist/_node-chunks/run-UOXW6XFP.js has an automigration fix addon-mcp that calls detectAgent() and proposes @storybook/addon-mcp.
- addon-mcp run() invokes add('@storybook/addon-mcp') with yes:true, skipInstall:true, skipPostinstall:true when the migration is accepted or --yes is used.
- CLI commands perform package-manager installs and project file rewrites for init/add/upgrade/automigrate workflows.
- package.json has no preinstall/install/postinstall/prepare lifecycle scripts.
- dist/bin/index.js only checks Node version then imports the CLI dispatcher; no install-time execution.
- The MCP behavior is Storybook-owned and tied to explicit upgrade/automigrate flow, not hidden npm lifecycle mutation of a foreign agent surface.
- No credential harvesting, destructive action, stealth persistence, or exfiltration endpoint was found in inspected package files.
- Network URLs found are Storybook/GitHub docs, telemetry imports, and sandbox/template helper references aligned with CLI features.
Source & flagged code
6 flagged · loading sourcePackage source references child process execution.
dist/_node-chunks/chunk-Z7PVZEPZ.jsView on unpkg · L4157Package source references shell execution.
dist/_node-chunks/run-UOXW6XFP.jsView on unpkg · L243Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/_node-chunks/run-UOXW6XFP.jsView on unpkg · L5Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/_node-chunks/run-UOXW6XFP.jsView on unpkg · L5Package source invokes a package manager install command at runtime.
dist/_node-chunks/run-UOXW6XFP.jsView on unpkg · L5019Package source references dynamic require/import behavior.
dist/_node-chunks/run-UOXW6XFP.jsView on unpkg · L6