# Android Intent Redirection

> Detects Android intent redirection vulnerabilities where attacker-controlled intents are re-sent or forwarded, enabling privilege escalation.

- Skill: `zakirkun/android-intent-redirection` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add zakirkun/android-intent-redirection`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zakirkun/android-intent-redirection/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: zakirkun (https://skillmd.com/u/zakirkun)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/zakirkun/android-intent-redirection

---


# Android Intent Redirection

## Overview
Intent redirection occurs when an exported component receives an Intent from an untrusted source and forwards it to another component (potentially a private one). This allows attackers to:
- Access private Activities, Services, or ContentProviders
- Bypass permission requirements
- Escalate privileges

Common vulnerable pattern:
```java
// Exported component receives intent with embedded redirect
Intent redirectIntent = (Intent) getIntent().getParcelableExtra("extra_intent");
startActivity(redirectIntent); // Attacker controls redirectIntent!
```

## Remediation
- Validate Intent targets before forwarding
- Reject Intents with `FLAG_GRANT_READ_URI_PERMISSION` or `FLAG_GRANT_WRITE_URI_PERMISSION` if not expected
- Do not forward attacker-controlled Intents to sensitive components

