Abuse mutable PendingIntents and weak custom permissions on Android — a mutable PendingIntent with an empty/implicit base intent lets a recipient act with the sender's identity; weak protectionLevel custom permissions let any app hold privileged capabilities. Tier 1. Use when PendingIntents or custom permissions are present. Aligns to OWASP MASTG MASVS-PLATFORM.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Android Pendingintent Abuse?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-android-pendingintent-abuse)
---
name: android-pendingintent-abuse
description: Abuse mutable PendingIntents and weak custom permissions on Android — a mutable PendingIntent with an empty/implicit base intent lets a recipient act with the sender's identity; weak protectionLevel custom permissions let any app hold privileged capabilities. Tier 1. Use when PendingIntents or custom permissions are present. Aligns to OWASP MASTG MASVS-PLATFORM.
---
# Android PendingIntent & Custom-Permission Abuse
A mutable `PendingIntent` is a signed blank cheque in the victim's name; a weakly-protected custom permission is a lock anyone can open.
## Trigger phrases
`pendingintent, mutable pendingintent, flag_immutable, custom permission, protectionlevel, permission squatting, pendingintent hijack`
## Method
1. **Find mutable PendingIntents** in decompiled code:
- `grep -rniE "PendingIntent\.(getActivity|getBroadcast|getService)" app_java/`
- Flag any without `FLAG_IMMUTABLE` **and** with an empty/implicit base intent (no explicit component/action) — the recipient can fill in action/component/data and execute it as the victim app.
2. **Exploit the mutable PendingIntent:** obtain it (handed to a notification, widget, or another app), then fill the blank base intent to target a privileged/private component or action and fire it — it runs with the *sender's* identity/permissions.
3. **Custom permission review:**
- In the manifest, find `<permission android:name="..." android:protectionLevel="normal|dangerous">` guarding components.
- Build a PoC app that declares `<uses-permission>` for that name and accesses the guarded component — if it succeeds, the protection is ineffective.
4. **Permission squatting / race:** on older platforms a malicious app that *defines* the same permission name first can control its effective protection level — test install-order on the target OS version.
## Modern / rare techniques
- **[RARE] Mutable PendingIntent → action-as-victim:** the highest-impact variant — reaching a non-exported component or sending a privileged broadcast with the victim's UID.
- **[RARE] Custom-permission squatting** on pre-Android-5 install-order semantics.
- Since Android 12 (API 31) `FLAG_MUTABLE`/`FLAG_IMMUTABLE` must be explicit — apps that chose `FLAG_MUTABLE` to keep old behavior are the prime targets.
## Escalation / chaining
Privilege escalation, component access, and action execution as the victim app — chains with `android-exported-components` and `android-intent-injection-redirection` to reach otherwise-protected functionality.
## Backend & tooling
Preferred Kali path (native Kali / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike). Needs the user's device/emulator (adb; a PoC app to receive/fill the PendingIntent or claim the permission) + Kali tooling (jadx/apktool/drozer). Windows-local last resort. See `zazy-orchestrator`.
## Verification (background, before reporting)
Reproduce with an unprivileged PoC app and confirm the privileged action executed as the victim (state change / component reached) before marking CONFIRMED. Re-run to rule out a fluke.
## Evidence
The vulnerable `PendingIntent`/permission declaration, the PoC that abused it, and the privileged result. Remediation: `FLAG_IMMUTABLE` + explicit base intents on all PendingIntents; `signature` protection level for custom permissions.