electron_audit_ipc_security
Analyze preload script and main process IPC code for security vulnerabilities including raw ipcRenderer exposure, missing sender validation, synchronous IPC, memory leaks, prototype pollution, and insecure channel patterns.
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 |