/viperclaw:viper-electron-tauri-desktopfrom viperclaw
Audits Electron and Tauri desktop apps for security issues using electronegativity and Doyensec checklists. Reviews nodeIntegration, contextIsolation, IPC senders, and shell.openExternal.
Ships in viperclaw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
viper-electron-tauri-desktop)electronegativity, Official Electron Security Checklist, Tauri v2 Security & Capabilities Guide.flowchart LR
Web["Renderer WebView (sandbox + contextIsolation)"] --> Bridge["Typed Preload contextBridge / Tauri Cap"] --> IPC["Verify senderFrame.url Origin"] --> OS["shell.openExternal (https:// Allowlist Only)"]
viperclaw harvest-js . --db .viperclaw/graph.db
nodeIntegration, contextIsolation, sandbox:, webSecurity, ipcMain.handle, shell.openExternal, will-navigate.tauri.conf.json, capabilities, allowlist, #[tauri::command], danger_disable_asset_csp_modification.BrowserWindow and WebContentsView must enforce nodeIntegration: false, contextIsolation: true, sandbox: true, webSecurity: true, and allowRunningInsecureContent: false.contextBridge Minimization & IPC Sender Verification: Never expose raw ipcRenderer via contextBridge.exposeInMainWorld; expose narrow, typed wrapper functions, and inside every ipcMain.handle listener validate event.senderFrame.url against your trusted local origin.shell.openExternal Protocol Allowlisting: Passing untrusted URLs (file://, smb://, ms-msdt:, javascript:) to shell.openExternal(url) causes instant desktop RCE! Parse with new URL(url) and allow only https: (and mailto: if needed).contents.on("will-navigate") and contents.setWindowOpenHandler() to block navigation away from the application's bundled origin.tauri.conf.json and capabilities/*.json, enforce a strict csp, scope fs permissions to specific $APPDATA subdirectories (no $HOME/**), and validate all arguments inside #[tauri::command] Rust functions.// ❌ VULNERABLE: Allows arbitrary protocol execution (file://, smb://, ms-msdt:)
ipcMain.handle("open-link", (_event, targetUrl: string) => {
return shell.openExternal(targetUrl);
});
// ✅ HARDENED: Validates sender frame origin & enforces strict https:// protocol allowlist
ipcMain.handle("open-link", (event, targetUrl: string) => {
const senderUrl = new URL(event.senderFrame.url);
if (senderUrl.protocol !== "app:") throw new Error("Untrusted IPC sender");
const parsed = new URL(targetUrl);
if (parsed.protocol !== "https:") throw new Error("Blocked non-HTTPS external URL");
return shell.openExternal(parsed.toString());
});
Electronegativity, Electron Checklist, Tauri v2, CWE-78, CWE-94| Severity Tier | Baseline CVSS v3.1 Vector | Qualifying Security Impact |
|---|---|---|
| CRITICAL (9.0–10.0) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H | Unauthenticated remote code execution, cross-tenant authentication or isolation gap, or direct theft of funds/keys. |
| HIGH (7.0–8.9) | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N | Authenticated privilege escalation, unauthorized sensitive data exposure, or single-request service outage. |
| MEDIUM (4.0–6.9) | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | Scoped information disclosure, non-admin state mutation, or configuration weakness requiring user interaction. |
| LOW (0.1–3.9) | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N | Defense-in-depth hardening gap requiring high precondition complexity and minimal direct impact. |
viperclaw harvest-js . --db .viperclaw/graph.db and viperclaw verify to record the verified state in .viperclaw/graph.db.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub zahidoverflow/viperclaw --plugin viperclaw72 skills in this plugin
/viper-agent-skill-supplychainAI Agent Skill, Plugin & MCP Config Supply-Chain Auditor (modeled on NVIDIA SkillSpector & OWASP Agentic Skills Top 10). Audits SKILL.md bundles and MCP JSON configs./viper-ai-llm-guardrailsAI, LLM & MCP Application Security & Guardrails Auditor (OWASP LLM Top 10). Reviews prompt boundaries, RAG data isolation, tool-call authorization, and output sanitization./viper-api-gateway-apigee-kongAPI Gateway, BFF & Rate-Tier Policy Auditor (Kong, AWS API Gateway, Apigee, Envoy Gateway). Reviews JWT authorizers, backend origin lockdown, and route-level quotas.Other plugins' skills for the same job