electron_audit_ipc_security
Analyze Electron preload and main-process IPC code to detect unsafe ipcRenderer exposure, missing sender validation, synchronous calls, listener leaks, 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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "electron_audit_ipc_security"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mainCode | No | Content of the main process IPC handler code to analyze | |
| preloadCode | No | Content of the preload script (preload.ts/js) to analyze | |
| rendererCode | No | Content of renderer code that uses IPC, to check for anti-patterns |