Logo van Auditing Electron Ipc Trust

Auditing Electron Ipc Trust

Organisatie
UnboundCompute
auditing-electron-ipc-trust

Controleer een Electron-desktopapp op niet-vertrouwde inhoud in de renderer die toegang krijgt tot een Node- of besturingssysteemfunctie, nadat de webPreferences en het bereik van de preload-bridge zijn vastgesteld. Let op nodeIntegration ingeschakeld terwijl contextIsolation uitstaat; een preload die raw ipcRenderer of een generieke invoke-doorgifte beschikbaar maakt; een ipcMain-handler die invoer van de renderer vertrouwt als pad, opdracht of URL; externe of door een aanvaller beïnvloede inhoud die via loadURL wordt geladen terwijl navigatie niet is vergrendeld; shell.openExternal aangeroepen met een door de renderer beheerde tekenreeks; en een aangepast protocol of deeplink dat zonder validatie naar een bevoorrechte actie wordt geleid. Gebruik deze skill bij het controleren van webPreferences, het preload- en contextBridge-bereik, IPC-handlers en het laden van externe inhoud. Injectie van markup aan de clientzijde in de renderer valt onder de aparte client-side DOM-skill. Niet-vertrouwde inhoud in een renderer is de bron, een Node- of besturingssysteemfunctie is het doel en invoer die zonder validatie de bridge passeert terwijl isolatie uitstaat, is de fout.

Overzicht

UitgeverUnboundCompute
Repositorysecurity-agent-skills
Skillnaamauditing-electron-ipc-trust
Sterren
27
Forks
8
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door UnboundCompute op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Auditing Electron Ipc Trust in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-electron-ipc-trust
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-electron-ipc-trust .claude/skills/auditing-electron-ipc-trust
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Auditing Electron Ipc Trust in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Auditing Electron Ipc Trust automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Auditing Electron Ipc Trust niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Auditing Electron IPC trust: when renderer content reaches a native capability

An Electron app is dangerous where content in a renderer, whether remote, injected through a cross-site-scripting, or arriving over a custom protocol, reaches a Node or operating-system capability. The marquee chain is a renderer bug escalating to code execution because the renderer can require Node directly, or because the preload bridge hands untrusted input to a native call. You audit it by resolving, per native sink, whether context isolation and the sandbox stand between the renderer and Node and whether the preload and IPC surface validate what they pass. The single most important false-positive killer is that context isolation and the sandbox being on make an otherwise alarming exposed symbol harmless, so resolve those two settings before judging any bridge. Renderer-side markup injection itself belongs to the client-side DOM skill; this skill owns the bridge and the IPC substrate.

When to use

  • You are reviewing an Electron app's window configuration, its preload scripts, and its IPC handlers.
  • You see webPreferences, a contextBridge exposure, an ipcMain handler, or a loadURL or openExternal call.
  • You want to know whether untrusted renderer content can reach a Node or operating-system capability.

Scope check

Audit only apps you own or are authorized to assess, and drive a renderer-to-main path only against a build in scope, an IPC handler that reaches a shell or the filesystem acts on your host. Adjudicate on the window configuration and the handlers. If you can't name the authorization, stop.

The loop

  1. Resolve context isolation and the sandbox first. Read the webPreferences for each window: is nodeIntegration off, is contextIsolation on, is the sandbox on. These settings decide whether the renderer can reach Node at all, so an exposed require or a Node symbol is only exploitable when they are off. Settle them before judging any exposed surface, because they are the killer for most leads.

  2. Check node integration and isolation. Look for nodeIntegration enabled with contextIsolation off, which lets any renderer, including one hosting an attacker's script, require a Node module such as the child-process module and execute a command directly.

  3. Check the preload bridge surface. Look for a preload that exposes the raw ipcRenderer object, or a generic invoke-any-channel passthrough, or the filesystem or child-process modules over the contextBridge. A bridge that hands the renderer an open channel to every IPC handler, rather than named argument-typed functions, gives the renderer the whole main-process surface.

  4. Check the IPC handlers. Look for an ipcMain handler that trusts renderer-supplied input as a filesystem path, a command, or a URL (path traversal, argument injection, server-side request forgery) without validating it against an allowlist or a normalized base.

  5. Check remote content, navigation, and protocol handlers. Look for loadURL or loadFile pointed at remote or attacker-influenced content, navigation left unlocked (no will-navigate or window-open guard), shell.openExternal called on a renderer-controlled string (a file or protocol URL reaching a local handler), and a custom protocol or deeplink routed into a privileged action without parsing and validating the URL.

  6. Confirm and record. Confirm by showing renderer-reachable content drives a Node or operating-system sink, because isolation or the sandbox is off, or because the preload or IPC surface passes untrusted input to a native capability. Kill the lead if contextIsolation and the sandbox are on so an exposed require or Node symbol is unreachable from the renderer, if the preload exposes only named typed functions over the contextBridge with no raw ipcRenderer and no filesystem or child-process module, if the IPC handler validates or normalizes the path or allowlists the channel and action, if the renderer only ever loads bundled local content and navigation is locked, if the openExternal argument is a constant or scheme-allowlisted to a safe scheme, or if the app runs a current Electron with the sandbox on by default and no legacy remote module. Record the renderer source, the native sink, and the settings that gate the path.

Where IPC trust leaks

  • Isolation and the sandbox are the killer, so resolve them first. With contextIsolation and the sandbox on, an exposed require or Node symbol is harmless; with them off, a renderer bug reaches Node.
  • A raw ipcRenderer bridge exposes every handler. Handing the renderer the raw object or a generic invoke passthrough gives it the whole IPC surface; named typed functions expose only what you intend.
  • An IPC handler that trusts a renderer path is a native sink. Renderer-supplied paths, commands, and URLs must be validated in the main process; the renderer is the untrusted side of the bridge.
  • Remote content in a renderer is the on-ramp. loadURL of remote content, or unlocked navigation, puts attacker-influenced script one bug away from the bridge; bundled local content with locked navigation does not.
  • openExternal and custom protocols route to the OS. A renderer-controlled string handed to openExternal or a deeplink handler reaches a local protocol handler; the argument has to be validated or scheme-allowlisted.

Worked example (a confirm and a kill)

Confirm. A window is created with nodeIntegration on and contextIsolation off, and it loads a remote page for a live feature. A cross-site-scripting in that page runs require('child_process').exec with an attacker command. Confirmed renderer-to-Node code execution through a non-isolated window loading remote content, critical, remediation = enable contextIsolation and the sandbox, disable nodeIntegration, expose only named typed functions over a preload bridge, and stop loading remote content in a privileged window.

Kill. Another window has contextIsolation and the sandbox on, nodeIntegration off, and a preload that exposes a single readConfig() function returning a fixed file's contents; no raw ipcRenderer, no child-process or filesystem module crosses the bridge, and it loads only bundled local content with navigation locked. A renderer bug reaches no Node capability. Killed, kill_reason = "context isolation and the sandbox are on, the preload exposes only a typed read function, and no untrusted input reaches a native sink."

Rationalizations to reject

  • "We expose require, but it is behind the bridge." -> Are contextIsolation and the sandbox on? With them on, the renderer cannot reach that require; with them off, the bridge is not a barrier.
  • "The preload just forwards IPC." -> Forwarding raw ipcRenderer or a generic invoke exposes every handler; expose named typed functions, not an open channel.
  • "The handler takes a path from the renderer." -> Then validate it in the main process; the renderer is untrusted, and an unvalidated path is traversal or argument injection.
  • "It only opens a link." -> With openExternal on a renderer-controlled string, a file or protocol URL reaches a local handler; constant or scheme-allowlist the argument.
  • "It is our own deeplink." -> Is the URL parsed and validated before it drives an action? An unvalidated custom-protocol route is the desktop analogue of an open redirect into a privileged call.

Executing this in practice

You need each window's webPreferences (nodeIntegration, contextIsolation, sandbox), the preload scripts and exactly what they expose over the contextBridge, the ipcMain handlers and what they do with renderer input, the loadURL and loadFile targets and the navigation guards, and the openExternal and custom-protocol handlers. For each native sink, decide whether isolation and the sandbox gate the renderer and whether the bridge validates what it passes. Reading webPreferences tells you whether the barrier is up; reading the preload and handlers tells you what crosses it.

Related

  • auditing-browser-extension-trust - the browser-extension sibling with the same untrusted-content-to- privileged-capability shape, across a message boundary rather than the Electron preload bridge.
  • auditing-editor-extension-workspace-trust - the editor-extension sibling, where the untrusted source is a cloned workspace rather than renderer content.
  • auditing-mobile-deeplink-trust - the mobile analogue of the custom-protocol and deeplink bug shape; the parsing logic rhymes, the Electron IPC and native substrate is owned here.
  • FINDING-SCHEMA.md - source = untrusted content in a renderer, sink = a Node or operating-system capability, evidence = the isolation and sandbox settings, the bridge surface, and the input crossing to the native call.

Veelgestelde vragen

Wat doet de AI-skill Auditing Electron Ipc Trust?

Controleer een Electron-desktopapp op niet-vertrouwde inhoud in de renderer die toegang krijgt tot een Node- of besturingssysteemfunctie, nadat de webPreferences en het bereik van de preload-bridge zijn vastgesteld. Let op nodeIntegration ingeschakeld terwijl contextIsolation uitstaat; een preload die raw ipcRenderer of een generieke invoke-doorgifte beschikbaar maakt; een ipcMain-handler die invoer van de renderer vertrouwt als pad, opdracht of URL; externe of door een aanvaller beïnvloede inhoud die via loadURL wordt geladen terwijl navigatie niet is vergrendeld; shell.openExternal aanger...

Waarom Auditing Electron Ipc Trust gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Auditing Electron Ipc Trust bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Auditing Electron Ipc Trust in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-electron-ipc-trust. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Auditing Electron Ipc Trust gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Auditing Electron Ipc Trust gebruiken?

Zoveel als je wilt. Je kunt Auditing Electron Ipc Trust gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Auditing Electron Ipc Trust gratis?

Ja. Deze skill is door UnboundCompute op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇