ipc-security
Skill20 starsChanged 4 months agoMITView on GitHub
Detects IPC receivers that accept input without verifying caller identity. Use
In this repository52 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- authentication-failuresSkill
- broken-access-controlSkill
- concurrency-correctnessSkill
- contract-reviewSkill
- cryptographic-failuresSkill
- crypto-library-misuseSkill
- csrfSkill
- exceptional-conditionsSkill
- excessive-agencySkill
- file-uploadSkill
- graphql-securitySkill
- hardcoded-secretsSkill
- header-injectionSkill
- hotspotsSkill
- injectionSkill
- insecure-designSkill
- insecure-local-storageSkill
- insecure-output-handlingSkill
- insecure-plugin-designSkill
- integrity-failuresSkill
- llm-supply-chainSkill
- logging-failuresSkill
- mass-assignmentSkill
- mcp-securitySkill
- memory-api-misuseSkill
- model-dosSkill
- model-theftSkill
- multi-agent-trustSkill
- nosql-injectionSkill
- numeric-trust-boundarySkill
- oauth-implementationSkill
- open-redirectSkill
- overrelianceSkill
- path-traversalSkill
- privilege-handlingSkill
- prompt-injectionSkill
- prototype-pollutionSkill
- pr-reviewSkill
- race-conditionSkill
- rag-securitySkill
- redosSkill
- security-cleanupSkill
- security-misconfigurationSkill
- security-reviewSkill
- sensitive-disclosureSkill
- ssrfSkill
- supply-chainSkill
- threat-modelSkill
- token-smugglingSkill
- training-data-poisoningSkill
- unsafe-api-consumptionSkill
The file
Files
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
- URL scheme handler that runs an action without validating the incoming scheme, host, and path against a static allowlist
- Exported mobile component (Android activity, service, or broadcast receiver) with no signature-level permission or caller-package check guarding a sensitive action
- Network listener bound to a public interface for what is logically same-host IPC, with no auth token or peer-credential check before the handler acts
- Named pipe, XPC service, or desktop-renderer IPC handler that processes a privileged request without verifying caller identity, code signature, or sender origin
- IPC-supplied value flowing into a process-execution or dynamic-evaluation sink without validation
Fix immediately
Flag the vulnerable code and explain the risk. Then suggest a fix that establishes these properties:
- 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.
- 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.
- 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.
- 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.
- 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):
- Every URL scheme handler validates scheme, host, and path against a static allowlist before any action runs
- Every exported mobile component is protected by a signature-level permission or explicitly verifies the caller package, and caller-supplied payload fields are validated against a schema before use
- Every same-host IPC socket binds to a Unix domain socket or loopback address — never a public interface — and requires an auth token or peer-credential check before handling commands
- Every renderer-to-main or cross-process IPC handler verifies sender origin or caller identity against an allowlist and runs with context isolation enabled
- Every named pipe or platform RPC handler verifies caller identity (effective user id, code-signing requirement, or ACL) before privileged actions run
- No process-execution or dynamic-evaluation sink is called with unvalidated IPC-supplied input on any of the above surfaces
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

