electron_audit_ipc_security
Audit Electron preload and main process IPC code to detect security vulnerabilities like raw ipcRenderer exposure, missing sender validation, and prototype pollution.
Instructions
Analyze preload script and main process IPC code for security issues. Checks for: raw ipcRenderer exposure, missing sender validation, synchronous IPC usage, listener memory leaks, prototype pollution via contextBridge, and insecure channel patterns. Provide the actual code content to analyze.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preloadCode | No | Content of the preload script (preload.ts/js) to analyze | |
| mainCode | No | Content of the main process IPC handler code to analyze | |
| rendererCode | No | Content of renderer code that uses IPC, to check for anti-patterns |