PendingIntent provenance confusion lets attackers spoof SDK authentication
Using PendingIntent.getCreatorPackage() for SDK authentication is vulnerable to impersonation attacks
Security & privacy arXiv 3 Mar 2026 Attack Prototype evidence
Published as “Exploiting PendingIntent Provenance Confusion to Spoof Android SDK Authentication”
Why it matters
SDK developers must stop using PendingIntent.getCreatorPackage() for authentication and adopt kernel-backed identity checks to prevent ecosystem-wide impersonation attacks.
Summary
The paper shows that using PendingIntent.getCreatorPackage() for SDK authentication suffers from provenance confusion, allowing a malicious app with NotificationListenerService access to steal a partner's PendingIntent and impersonate it with 100% success; a three-layer defense based on Bound Service IPC, Binder UID verification, and server-side certificate validation blocks the attack completely. The evidence comes from a proof-of-concept on Android 14 with 50 attack attempts per SDK variant.
What they found 1
- The proposed three-layer defense rejects all spoofed attempts.
“Against SecureSDK, 100% of attempts were rejected. Binder.getCallingUid() returned the attacker’s own UID (10234), which resolved to !com.poc.attacker!-correctly identifying the actual caller rather than the PendingIntent’s creator.”
Caveats 4
- The attack requires the victim to have granted NotificationListenerService access, which needs explicit user opt-in and may not be present on all devices.
- The evaluation is limited to a small PoC (four apps, 50 attempts each) and does not measure prevalence of the vulnerable pattern in real-world SDKs.
- Our PoC validates the attack and defense mechanisms but does not include a large-scale binary analysis quantifying how many production SDKs use the vulnerable pattern.
- Scenario names (Ampli!er, MyBeats) are fictitious.
What’s new here 4
- Identifies a new provenance-confusion attack specific to cross-app SDK authentication using PendingIntent tokens.
- Systematically evaluates eight Android IPC/authentication mechanisms against a defined SDK threat model.
- Proposes a three-layer defense combining kernel-backed Binder UID checks, certificate verification, and server-side validation.
- Demonstrates both attack and defense with a PoC implementation achieving 100% success and 0% false-positives respectively.