Skip to main content
electron-ipc-security-audit Analyze Electron IPC implementations for security vulnerabilities including contextIsolation, nodeIntegration, preload scripts, and channel validation
설치로 이동 Skills Marketplace 커뮤니티가 만든 AI 스킬을 발견하고 탐색하세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/a5c-ai/babysitter --skill electron-ipc-security-audit명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Zip 다운로드 다운로드 중... Reference for querying the Atlas knowledge graph through its MCP tools — the SECONDARY enrichment/comparison layer that adds best-practice context to systems you have ALREADY scanned from your real sources (`az`, repos, dirs). Use when you need to look up nodes, edges, kinds, clusters, stats, or wiki pages in Atlas to compare against your real inventory. (atlas graph, query atlas, atlas mcp, search the graph, graph neighbors, atlas record, atlas kinds, enrichment layer)
Atlas turns your STATED NEED into a real systems atlas by SCANNING your actual sources (Azure via `az`, git repos, local dirs) and process/data mining them, THEN enriching against the Atlas knowledge graph. Use this skill when asked to inventory/map your real systems, scan your cloud + repos + directories, mine the real processes or data they contain, or collect their real constraints/gotchas. (atlas, scan my systems, inventory our azure account, map my repos, real systems atlas, process mining, data mining, collect nuances, system discovery)
assimilate-popular-workflows This skill should be used when the user asks to "find skills in the wild", "assimilate popular workflows", "discover SKILL.md files in repos", "research external skills", "find workflow patterns", "survey the skill landscape", "what skills exist out there", or wants to investigate public repositories for extractable processes, babysitter plugins, and reusable procedural insights. Searches GitHub for SKILL.md files, classifies repos by archetype, and maintains structured research under docs/reference-repos/.
name electron-ipc-security-audit description Analyze Electron IPC implementations for security vulnerabilities including contextIsolation, nodeIntegration, preload scripts, and channel validation allowed-tools Read, Grep, Glob, Bash tags ["electron","security","ipc","audit","desktop"] graph {"domains":["domain:software-engineering"],"specializations":["specialization:desktop-development"],"skillAreas":["skill-area:desktop-ui-frameworks","skill-area:cross-platform-desktop"],"roles":["role:desktop-developer","role:fullstack-engineer"],"workflows":["workflow:feature-development","workflow:release-management"]}
electron-ipc-security-audit
Analyze Electron IPC implementations for security vulnerabilities. This skill performs comprehensive security audits of inter-process communication patterns, checking for contextIsolation issues, nodeIntegration risks, preload script security, and IPC channel validation.
Capabilities
Audit IPC channel implementations for security vulnerabilities
Check contextIsolation and nodeIntegration configuration
Analyze preload scripts for unsafe patterns
Validate IPC message handling and sanitization
Detect prototype pollution risks
Check for remote code execution vulnerabilities
Review Content Security Policy headers
Identify exposed APIs through contextBridge
Input Schema {
"type" : "object" ,
"properties" : {
"projectPath" : {
"type" : "string" ,
"description" : "Path to the Electron project root"
} ,
"auditScope" : {
"type" : "array" ,
"items" : {
"enum" : [ "ipc-channels" , "preload-scripts" , "main-process" , "renderer-security" , "csp" , "all" ]
} ,
"default" : [ "all" ]
} ,
"severity" : {
"enum" : [ "all" , "critical" , "high" , "medium" ] ,
"default" : "all" ,
"description" : "Minimum severity level to report"
} ,
"includeRecommendations" : {
"type" : "boolean" ,
"default" : true
}
} ,
"required" : [ "projectPath" ]
}
Output Schema {
"type" : "object" ,
"properties" : {
"success" : { "type" : "boolean" } ,
"summary" : {
"type" : "object" ,
"properties" : {
"totalIssues" : { "type" : "number" } ,
"critical" : { "type" : "number" } ,
"high" : { "type" : "number" } ,
"medium" : { "type" : "number" } ,
"low" : { "type" : "number" }
}
} ,
"findings" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"properties" : {
"id" : { "type" : "string" } ,
"severity" : { "enum" : [ "critical" , "high" , "medium" , "low" ] } ,
"category" : { "type" : "string" } ,
"title" : { "type" : "string" } ,
"description" : { "type" : "string" } ,
"file" : { "type" : "string" } ,
"line" : { "type" : "number" } ,
"recommendation" : { "type" : "string" } ,
"codeExample" : { "type" : "string" }
}
}
} ,
"securityScore" : {
"type" : "number" ,
"description" : "Security score 0-100"
}
} ,
"required" : [ "success" , "findings" ]
}
Security Checks
Critical Checks
nodeIntegration enabled : Check for nodeIntegration: true in BrowserWindow
contextIsolation disabled : Check for contextIsolation: false
sandbox disabled : Check for sandbox: false
Direct ipcRenderer exposure : Check for exposing ipcRenderer without contextBridge
Remote module usage : Check for deprecated remote module
eval/Function execution : Check for dynamic code execution in IPC handlers
High Severity Checks
Unrestricted IPC channels : Check for ipcMain.on('*') patterns
Missing input validation : Check for unsanitized IPC arguments
webSecurity disabled : Check for webSecurity: false
Unsafe protocol registration : Check for custom protocol handlers
Missing CSP headers : Check for Content Security Policy
Medium Severity Checks
Overly permissive file access : Check for broad file system access
Insecure web preferences : Check deprecated options
Missing channel whitelisting : Check preload script exposure
Navigation to untrusted URLs : Check navigation handlers
Usage Instructions
Scan project structure : Identify main process, preload, and renderer files
Check BrowserWindow configurations : Audit webPreferences settings
Analyze IPC implementations : Review ipcMain/ipcRenderer usage
Review preload scripts : Check contextBridge API exposure
Validate CSP headers : Ensure proper Content Security Policy
Generate report : Compile findings with severity and recommendations
Vulnerability Patterns
Critical: Direct ipcRenderer Exposure
contextBridge.exposeInMainWorld ('electron' , {
ipcRenderer : ipcRenderer
});
contextBridge.exposeInMainWorld ('electron' , {
send : (channel, data ) => {
const validChannels = ['file:read' , 'file:write' ];
if (validChannels.includes (channel)) {
ipcRenderer.send (channel, data);
}
}
});
Critical: Missing Context Isolation
new BrowserWindow ({
webPreferences : {
contextIsolation : false ,
preload : path.join (__dirname, 'preload.js' )
}
});
new BrowserWindow ({
webPreferences : {
contextIsolation : true ,
sandbox : true ,
preload : path.join (__dirname, 'preload.js' )
}
});
High: Unrestricted IPC Handler
ipcMain.handle ('execute' , async (event, cmd) => {
return exec (cmd);
});
const ALLOWED_COMMANDS = ['list-files' , 'get-info' ];
ipcMain.handle ('execute' , async (event, cmd, args) => {
if (!ALLOWED_COMMANDS .includes (cmd)) {
throw new Error ('Command not allowed' );
}
return executeWhitelistedCommand (cmd, args);
});
Best Practices
Always enable contextIsolation : Prevents prototype pollution
Use sandbox mode : Restricts renderer process capabilities
Whitelist IPC channels : Only expose necessary channels
Validate all IPC inputs : Never trust renderer input
Avoid dynamic code execution : No eval/Function in IPC handlers
Implement CSP headers : Restrict script sources
Use invoke/handle pattern : Prefer over send/on for request-response
Related Skills
electron-main-preload-generator - Generate secure boilerplate
electron-builder-config - Build configuration
desktop-security-auditor agent - Comprehensive security review
Related Agents
electron-architect - Architecture guidance
desktop-security-auditor - Security expertise
References