electron-builder
Pass
Audited by Gen Agent Trust Hub on Mar 4, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/init-electron-app.jsexecutesnpm installusingchild_process.execSync. This is a standard operation for setting up JavaScript projects but allows for shell command execution within the agent's environment. - [EXTERNAL_DOWNLOADS]: The skill facilitates the download of external code from the npm registry via
npm installandnpx create-electron-app. While targeting a well-known service, it introduces external dependencies into the environment. - [INDIRECT_PROMPT_INJECTION]: The file
scripts/init-electron-app.jsis vulnerable to path traversal because it uses the unsanitizedprocess.argv[2]input to define the project directory path. - Ingestion points: Command-line argument
process.argv[2]inscripts/init-electron-app.js. - Boundary markers: None present.
- Capability inventory: Uses
fs.mkdirSync,fs.writeFileSync, andexecSyncinscripts/init-electron-app.js. - Sanitization: None. The input is passed directly to
path.join(), which allows an attacker to specify relative paths (e.g.,../../) to write files outside the intended directory.
Audit Metadata