Individual skill
electron-security
Harden Electron: renderer trust boundary (nodeIntegration, contextIsolation, sandbox), build-time fuses, contextBridge and IPC allowlists, shell.openExternal, navigation guards, deep-link auth, safeStorage. Use when generating main-process code, a preload script, or custom-protocol handlers, when packaging a release, or when storing tokens in an Electron app.
skills/electron-security/SKILL.md
Source commit eaba88102d91df65a9aa6397e8507c315c018f5e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
Standard SKILL.md format has not been attested at this commit. No installation command is available; inspect the source.
Repository context
- Repository stars (not skill ratings)
- 23
- Repository last updated
- Aug 14, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- claude-skills Repository topic
- llm Repository topic
- security Repository topic
- skills Repository topic
- operations Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 10,641 bytesSKILL.mdcore · 10,641 byteschecklists/electron_hardening.yamlasset · 2,827 bytesreferences/electron-hardening.mddoc · 4,627 bytesreferences/verifying-findings.mddoc · 4,345 bytestests/corpus.jsonasset · 4,393 bytes
Read excerpt
# Electron Desktop Security
## Rules (for AI agents)
### ALWAYS
- **Treat the renderer as untrusted.** Any renderer-side code execution — XSS in
rendered content, a redirect, a deep link — must not be able to reach Node, the
shell, the filesystem, or session tokens. Every other rule here follows from this
one, and every IPC sink you expose is reachable from a compromised renderer.
- Keep the renderer's process isolation at its defaults rather than restoring them:
`nodeIntegration: false`, `contextIsolation: true` and `sandbox: true` have been
Electron's defaults for several major versions, so the finding is the line that
**turns one off**. Note the coupling: under `sandbox: true` a preload gets a
polyfilled module subset, so a preload needing `fs` fails — move that work behind