electron_lint_security
Analyzes Electron main, preload, and renderer code for dangerous security patterns such as shell.openExternal misuse, disabled webSecurity, and @electron/remote to flag OWASP-style risks before release.
Instructions
Static analysis of Electron code for dangerous patterns: shell.openExternal with user input, @electron/remote usage, disabled webSecurity, missing navigation restrictions, unrestricted window creation, and other OWASP-style vulnerabilities specific to Electron.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "electron_lint_security"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Source code to analyze (main process, preload, or renderer) | |
| fileType | No | Which process this code runs in. Helps scope the analysis. Defaults to 'main'. |