electron
Pass
Audited by Gen Agent Trust Hub on Nov 5, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDYNAMIC_EXECUTIONPRIVILEGE_ESCALATIONOBFUSCATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: Provides instructions for installing the Electron framework and its development tools from official sources like npm and GitHub. It also documents the use of well-known mirrors and header servers for native module compilation.
- [COMMAND_EXECUTION]: Contains a collection of CLI commands for application lifecycle management, including installation, build processes (using Electron Forge, node-gyp), and distribution.
- [DYNAMIC_EXECUTION]: Documents Electron APIs capable of executing JavaScript in renderer processes (
executeJavaScript) and loading native C++/Swift addons. These sections include appropriate security warnings about the dangers of passing untrusted strings to these methods. - [PRIVILEGE_ESCALATION]: Mentions the use of
sudofor resolving installation permissions and elevated PowerShell for Windows Store packaging. Each instance is accompanied by explicit warnings to use these commands only in controlled or disposable environments. - [OBFUSCATION]: Includes standard Base64-encoded Data URLs for small UI assets (tray icons) within code samples. This is a standard development practice and is not used to hide malicious code.
- [INDIRECT_PROMPT_INJECTION]: Extensive documentation is provided on identifying and mitigating security surfaces in Electron apps, such as restricting navigation, handling permission requests, and validating the identity of IPC message senders to prevent unauthorized access from subframes or remote content.
Audit Metadata