sandbox-npm-install
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONPRIVILEGE_ESCALATIONCREDENTIALS_UNSAFEDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes standard package management commands including
npm install,npm ci, andnpx playwrightto set up the development environment. It also performs filesystem operations likerm -rf,mkdir, andln -sto manage the local dependency store, with path validation to prevent traversal. - [PRIVILEGE_ESCALATION]: The
scripts/install.shscript includes a command to install Playwright system dependencies usingsudo:sudo npx playwright install-deps chromium. This action is gated by a check for passwordless sudo availability and is a standard requirement for Playwright browser setup. - [CREDENTIALS_UNSAFE]: The installation script accesses the
.npmrcfile, which may contain authentication tokens for private registries. The script implements security best practices by restricting the file permissions to owner-only access (chmod 600) when copying it to the local installation directory. - [DYNAMIC_EXECUTION]: The script utilizes
node -eto execute inline JavaScript for verifying the integrity of native binaries (such asesbuild,vite, androllup) and for parsingpackage.jsonto check for specific dependencies. These snippets are static and use argument passing to handle variable inputs safely.
Audit Metadata