Skip to content
Back to skills

Android Legacy Security

ASecurity

Treat the entire incoming implicit Intent as untrusted. If the Activity is internal, make it `android:exported="false"` and use an explicit Intent instead. If it must receive a deep link or another external request, validate all of the following before performing any action: - Allow only the expected action, categories, MIME type, and data scheme/host/path. Reject unexpected or missing values; do not accept arbitrary `file://` data. - Read each extra with the expected type (`getStringExtra`, ...

  • 584 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 5, 2026
developmentrustgoapi

Works with

  • api

Security analysis

A100/100

Pro scans all 18 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill android-legacy-security --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Android Legacy Security?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Android Legacy Security
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-android-legacy-security-71f7c116/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-android-legacy-security-71f7c116)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
Treat the entire incoming implicit Intent as untrusted. If the Activity is internal, make it `android:exported="false"` and use an explicit Intent instead. If it must receive a deep link or another external request, validate all of the following before performing any action:

- Allow only the expected action, categories, MIME type, and data scheme/host/path. Reject unexpected or missing values; do not accept arbitrary `file://` data.
- Read each extra with the expected type (`getStringExtra`, `getIntExtra`, or a typed Parcelable API), then validate format, length, range, and allowed values. Treat null, malformed, oversized, duplicate, or unexpected extras as invalid. Do not blindly deserialize untrusted `Serializable` or `Parcelable` data.
- Do not use an extra such as `user_id`, role, path, or “is_admin” as proof of identity or authorization. Re-check authorization against the authenticated account and server-side state. If only a trusted caller may invoke the component, enforce a platform signature-level permission or another authenticated caller mechanism; do not trust a package name supplied in an extra.
- If the Intent carries a URI or stream, require the expected `content://` provider and validate the authority and resource before reading it. Use only the temporary grant needed for that resource.

For a sensitive operation, reject the request on any failed check, log only safe diagnostic metadata, and avoid launching another implicit Intent with unvalidated values. For outgoing implicit Intents, separately verify `resolveActivity(packageManager)` before starting them; that check does not make incoming Intent data trustworthy.

Files in this skill

  • eval-1.baseline.md1.5 KB
  • eval-1.with-skill.md1.3 KB
  • eval-2.baseline.md1.5 KB
  • eval-2.with-skill.md1.7 KB
  • eval-3.baseline.md1.7 KB
  • eval-3.with-skill.md1.6 KB
  • trigger-1.md99 B
  • trigger-10.md117 B
  • trigger-11.md130 B
  • trigger-2.md143 B
  • trigger-3.md140 B
  • trigger-4.md150 B
  • trigger-5.md143 B
  • trigger-6.md153 B
  • trigger-7.md125 B
  • trigger-8.md138 B
  • trigger-9.md139 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.