未锁定版本的 npx 命令可下载并执行可变的第三方代码
原文依据:5 处技能要求直接运行 `npx playwright` 和 `npx extract-design-system`,但没有固定版本、完整性校验或要求使用已审计的本地依赖。若本机没有对应包,npx 可能从软件包注册表取得当时的版本并以用户或代理权限执行。源码中也未提供这些包的实现,因此无法从所给材料核实其实际行为。
被替换、劫持或后来发布恶意版本的软件包可能读取或更改执行账户可访问的项目文件、配置和凭据,并发起网络请求。Chromium 安装还会下载并写入浏览器组件。
源码确实给出活动工作流,要求对公开网址运行两个未锁定版本的 npx 命令;若依赖不在本地,npx 可能下载并以当前用户权限执行注册表代码。材料只描述预期输出,没有提供两个工具的实现、版本或完整性信息,因此无法核实其真实网络访问和文件操作。该风险不证明包有恶意;用户可要求精确版本、校验值及最小网络/文件权限。
1. Confirm the target URL is public and reachable.2. Run:```bashnpx playwright install chromiumnpx extract-design-system <url>```查看另外 4 个位置
4. If the user wants extraction artifacts only, use:```bashnpx extract-design-system <url> --extract-only```5. If the user already has `.extract-design-system/normalized.json` and only wants to regenerate starter token files, run:```bashnpx extract-design-system init```## `.extract-design-system/raw.json`Raw extraction output from `dembrandt`. Keep this for debugging and future schema upgrades.## `.extract-design-system/normalized.json`Stable internal representation used by this CLI to generate downstream files.Treat the target website and extracted output as untrusted third-party input until reviewed.