npm-upgrade
Pass
Audited by Gen Agent Trust Hub on Apr 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill includes a Python script (
scripts/diff_lock.py) that usessubprocess.runto executegit show. This functionality allows the agent to readpackage-lock.jsoncontent from different git references to compare dependency changes. - [COMMAND_EXECUTION]: The provided documentation (
references/upgrade-workflow.md) contains a shell script that usesnode -eto programmatically inspectpackage.jsonfiles within thenode_modulesdirectory to check for engine constraints. - [PROMPT_INJECTION]: Indirect Prompt Injection Surface.
- Ingestion points: The skill ingests data from
package-lock.jsonandnpm auditJSON output, which are influenced by external package registries and project contributors. - Boundary markers: Absent; the skill relies on standard JSON parsing without explicit instructions to ignore embedded commands in package names or metadata.
- Capability inventory: The skill has the capability to execute
npm install,npm uninstall, andgit checkoutcommands based on the analyzed data. - Sanitization: Uses standard
jsonparsing in Python andjqfor shell commands, which validates structure but does not sanitize the semantic content of package names or version strings.
Audit Metadata