electron-dev
Pass
Audited by Gen Agent Trust Hub on Sep 5, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill provides implementation patterns for terminal integration using the
node-ptylibrary. - Specifically, the documentation includes code to spawn a shell process (
powershell.exeor/bin/bash) usingpty.spawn(). - This capability is the primary purpose of the terminal integration section and is intended to be used by developers building terminal-emulator features.
- [DATA_EXPOSURE]: The PTY terminal integration example passes the full environment of the main process (
process.env) and the home directory path (process.env.HOME) to the spawned shell. - While standard for terminal applications to ensure the shell has correct user context, this pattern exposes all environment variables to the subprocess.
- [INDIRECT_PROMPT_INJECTION]: The skill documents an IPC pattern where raw data from a shell process (
ptyProcess.onData) is sent directly to the renderer process viamainWindow.webContents.send('terminal-data', ...). - This creates an ingestion surface where terminal output (which could be controlled by remote scripts or untrusted data inside a shell) is processed by the UI renderer.
- The documentation follows best practices by using
contextBridgeto isolate the IPC, which significantly mitigates this risk.
Audit Metadata