bedkillerspacex-boop/codex-skill-library/android-intent-security

Claude Code and agent skill by bedkillerspacex-boop/codex-skill-library

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Review Android Intent security: exported components, intent filters, PendingIntent mutability, deeplinks, and parcel extras validation. Use when auditing owned apps or authorized mobile assessments beyond generic exported-component lists.

Install

npx vskill@latest install bedkillerspacex-boop/codex-skill-library/android-intent-security

SKILL.md

The same SKILL.md was published earlier as bedkillerspacex-boop/codex-skill-library/android-intent-security.

Android Intent Security

Scope And Authorization

  • In scope: Owned apps, labs, CTFs, authorized mobile assessments.
  • Out of scope: Delivering malware intents against third-party apps without authorization.
  • Use test devices/accounts; redact tokens found in extras.
  • Builds on android-exported-components; pair fixes with code-quality-standards.

When To Use

  • Auditing Intent extras handling and type confusion.
  • PendingIntent flags (FLAG_IMMUTABLE / mutability).
  • Deep link parameter injection and identity assertion.
  • Implicit intent hijacking / intent redirection.

Do Not Use As Primary

NeedSkill instead
Exported surface inventory onlyandroid-exported-components
WebView-specific issuesandroid-webview-security
Full pentest toolboxandroid-pentesting-tricks
Implementation quality baselinecode-quality-standards

Domain Focus

Issue classSummary
Implicit intent hijackSending implicit intents with sensitive extras
Intent redirectionForwarding attacker-controlled Intent to privileged component
Extras trustAssuming types/ranges; parcel mismatch
PendingIntentMutable PI allows attacker fill-in
Deep linksAuth tokens in query; open redirect
Task affinity / trampolineUI spoofing patterns

Workflow

1. Confirm scope and success criteria
  1. Package, components of interest, auth model.
  2. Success: dangerous intent paths listed with repro; PendingIntents immutable where required; extras validated; deep links don’t grant auth alone.
  3. Combine with exported inventory.
2. Static review
bash
jadx -d out app.apk
rg -n "getParcelableExtra|getSerializableExtra|getStringExtra|startActivity|sendBroadcast|PendingIntent" out/
rg -n "FLAG_MUTABLE|FLAG_IMMUTABLE|getIntent\\(\\)" out/
  1. Flag getIntent() data passed to startActivity without validation (redirection).
  2. Flag mutable PendingIntents for notifications/alarms on modern SDKs.
3. PendingIntent hardening
kotlin
val flags = PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
PendingIntent.getActivity(ctx, 0, explicitIntent, flags)
CaseGuidance
Fixed target/actionPrefer IMMUTABLE
Need fill-inUse carefully; explicit component; minimal attacker control
NotificationsImmutable default on recent Android
4. Extras validation
kotlin
// Bad: trust
val url = intent.getStringExtra("url")
webView.loadUrl(url!!)
// Better: allowlist schemes/hosts; null-check; size limits
CheckAction
Null/missingFail closed
TypeUse typed APIs; careful with custom Parcelable
RangesIDs positive; lengths capped
Nested intentsUnwrap only if trusted
5. Intent redirection tests
bash
# Attacker crafts intent extra that victim forwards
adb shell am start -n com.victim/.GatewayActivity --es redirect '...'
# Prefer instrumented PoC app in lab
  1. Prove whether untrusted app can force privileged activity or data leak.
  2. Fix: never forward raw attacker Intent; copy allowed fields only.
6. Deep links and identity
bash
adb shell am start -a android.intent.action.VIEW -d 'myapp://login?token=STOLEN'
  1. Tokens in links leak via logs, referrers, history — prefer server-side one-time codes.
  2. Validate path/host; reject unexpected schemes.
7. Implicit intents with sensitive data
  1. Prefer explicit component when targeting your own app.
  2. For ACTION_SEND, assume other apps can read extras.
8. Hand off
  1. File each issue with component, intent payload, impact.
  2. Add lint/rules if available for mutable PI and intent redirects.
  3. Regression tests for deep link allowlists.

Good / Bad

TopicGoodBad
PI flagsIMMUTABLE defaultMutable “for convenience”
RedirectionField allowliststartActivity(intent.getParcelableExtra("next"))
Deep linkOne-time server codeLong-lived session in URL
ImplicitNo secrets in extrasAuth headers in SEND extras

Output Checklist

  • [ ] Exported inventory available
  • [ ] PendingIntent mutability reviewed
  • [ ] Extras validation reviewed on entry points
  • [ ] Redirection paths tested
  • [ ] Deep links auth model verified
  • [ ] Implicit sensitive sends reviewed
  • [ ] Fixes verified
  • [ ] code-quality-standards applied

Rules

  • Authorized testing only.
  • Validate all untrusted Intent data.
  • Prefer explicit intents and immutable PendingIntents.
  • Deep links are not authentication by themselves.
  • Redact tokens from PoCs and reports.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bedkillerspacex-boop/codex-skill-library/android-intent-security/badge)](https://verified-skill.com/skills/bedkillerspacex-boop/codex-skill-library/android-intent-security)

Something wrong with this skill or its page? Tell us.