Ipc security

From thejefflarson/soundcheck · View interactive version

Ipc security is an AI agent skill from the GitHub repository thejefflarson/soundcheck. Detects IPC receivers that accept input without verifying caller identity. Use when writing URL scheme handlers, Android intent receivers or exported activities, named pipe or socket listeners, XPC service handlers, or any IPC endpoint that processes caller-supplied input without validating the call

How to use this skill

Skill file

IPC Security (A01:2025)

What this checks

Detects IPC receivers that accept input without verifying the caller's identity. Open

IPC channels let malicious apps hijack URL schemes, trigger exported components, or

inject data through shared channels.

Vulnerable patterns

Fix immediately

Flag the vulnerable code and explain the risk. Then suggest a fix that establishes

these properties:

  1. URL scheme handlers validate scheme, host, and path against a static allowlist

before running any action. A custom scheme is invokable by any app on the device;

only the handler decides what's legitimate.

  1. Exported components require a signature-level permission or verify the caller

package explicitly. An exported component with no permission gate is callable by

anything on the device. Intent extras and equivalent caller-supplied payloads are

validated against a schema before use.

  1. Network listeners bind to the narrowest interface that works. Use a Unix

domain socket or loopback address, never a public-facing bind, when the listener

is for same-host IPC. An auth token or peer-credential check runs before the

handler acts on any command.

  1. **Named pipes, XPC services, and desktop-renderer IPC handlers verify caller

identity** — effective user ID, code-signing requirement, pipe ACL, or sender

origin against an allowlist — before any privileged action. Renderer-to-main

channels run with context isolation enabled and node integration disabled.

  1. **No IPC-supplied value reaches a process-execution or dynamic-evaluation sink

unvalidated.** The channel is an attacker-reachable surface; treat its payloads

like network input.

Translate each principle to the language, platform, and IPC mechanism of the audited

file. Use the platform's documented identity-verification and binding APIs — do not

invent your own.

Verification

Confirm the following properties hold for every IPC surface present in the change (criteria only apply when the relevant pattern exists):

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.