electron_audit_ipc_security
Analyzes preload and main process IPC code to detect security issues like raw ipcRenderer exposure, missing sender validation, sync IPC, listener leaks, 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.
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 |