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-pty library.
  • Specifically, the documentation includes code to spawn a shell process (powershell.exe or /bin/bash) using pty.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 via mainWindow.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 contextBridge to isolate the IPC, which significantly mitigates this risk.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 5, 2026, 11:07 AM