Anti-AIClone

Log date · Mon

How do you audit Android entry points and deep links?

Inventory external entry points, then verify inputs and permissions. A host-check comparison shows why suffix matching can fail.

How should you audit Android entry points?

Inventory externally reachable components, trace data through intents, deep links and WebViews, and have a person verify each suspected path. In our Java sample, a simple suffix rule accepted 4 of 5 URLs; a rule requiring HTTPS and an exact host accepted 1.

On September 28, 2026, GitHub Security Lab’s Kevin Stubbings described auditing Android source with the open-source Taskflow Agent; the team found and reported 24 vulnerabilities. [1] The work offers concrete leads for reviewing entry-point boundaries.

Our comparison and the original report
QuestionFinding or recommendation
What did the suffix check accept?4 / 5, including notexample.com.
What did the exact rule accept?1 / 5; the subdomain was rejected too.
What did GitHub report?24 vulnerabilities; a researcher reviewed findings.

Experiment: suffix versus whole host

We parsed five invented URLs with Java 17’s URI. The first rule checks only whether the host ends in example.com; the second requires both the https scheme and a host equal to example.com. This uses java.net.URI rather than Android Uri: it illustrates validation logic and is not a run of Taskflow Agent, an Android app or a reproduction of GitHub’s vulnerabilities.

The two checks in our sample.
boolean suffix = host != null && host.endsWith("example.com");
boolean exact = "https".equals(uri.getScheme()) && "example.com".equals(host);
Complete results for the five inputs.
https://example.com/path | suffix=true | https-exact=true
https://notexample.com/path | suffix=true | https-exact=false
http://example.com/path | suffix=true | https-exact=false
https://sub.example.com/path | suffix=true | https-exact=false
https://example.com.evil.test/path | suffix=false | https-exact=false

notexample.com is not a subdomain of example.com, yet the boundary-free suffix check accepts it. HTTP passes too because the first rule never examines the scheme. The exact rule rejects a legitimate subdomain: if the product needs subdomains, define the permitted set and test the dot boundary instead of accepting arbitrary suffixes. Android’s guidance says to parse the URI and validate both scheme and the complete host. [2]

Why the GitHub audit starts at entry points

GitHub’s taskflows identify entry points first, then consider likely vulnerability classes for each entry point and component. In the OsmAnd case, an exported activity accepted settings-import extras expected from an internal service. In the Wikipedia case, a deep-link hostname parsing problem combined with two suffix-based cookie-domain checks. The first involved settings and map tile URLs; the second could lead to account takeover. [1] Both show data crossing a trust boundary into a privileged operation.

Exporting a component is not automatically a vulnerability: an external entry point may be intentional. The questions are what a caller can supply, whether the receiver treats input as trusted internal state, and what constrains the eventual operation. Android recommends explicitly setting android:exported rather than relying on defaults that differ by component and platform version. [3] Obfuscating names does not replace access control or input validation.

GitHub describes false positives, severity mistakes, the need for review by someone experienced in mobile security, and run costs. [1] For each lead, record the entry point, controlled input, data path, prerequisites and actual impact, then check existing mitigations. An empty result is not proof of absence; update review decisions and regression cases as code changes.

Recommendations by case

These are engineering recommendations, not effects measured in our experiment. Establish which external entry points the product needs, then verify access and inputs for each one.

Recommendations by entry point
QuestionFinding or recommendation
Internal-only componentExplicitly mark it unexported and test normal flows.
Required exported componentReview caller permissions, intent extras and authorization for sensitive actions.
Deep link and WebViewValidate parsed scheme, full host and subsequent redirects; review JavaScript bridges.
Cookies and sessionsScope domains to need and review every write and send path.
AI audit leadReproduce or dismiss it with human review, retain evidence and add a regression test.

A deep link can pass through multiple components. Passing one check does not establish that a later WebView load, redirect or cookie operation is safe. At every component handoff, confirm what the input means; do not assume it was validated merely because another component in your app passed it along.

Review your own app

Search your own source for manifests, export declarations, and URI and WebView handling. These searches create a review list; they cannot establish safety and can miss generated code or indirect calls.

Run these searches from your own project root.
# From your Android project root:
rg -n 'android:exported|<activity|<service|<receiver|<provider' --glob "*Manifest.xml" .
rg -n 'getData\(|getHost\(|endsWith\(|loadUrl\(|addJavascriptInterface' --glob "*.java" --glob "*.kt" .

For each external entry point, add tests with explicit expectations for the intended HTTPS host, a lookalike suffix, a non-HTTPS scheme, a subdomain and a missing host. Inspect the merged release manifest as well as source manifests, and verify component behavior in a real release build. If the product permits subdomains, document that policy and its test cases; do not copy a single-host example unchanged.

The GitHub post provides steps for running the taskflows on your own repository and notes that a Copilot license, premium model requests and tokens are involved. [1] Check repository access and budget first. Once results arrive, apply the same evidence standard to review and verify fixes.

Your checklist

  • Inventory exported components in the merged manifest and confirm their purpose.
  • Validate intent extras, caller permissions and authorization for sensitive actions.
  • Test deep-link scheme, complete host and subdomain policy.
  • Review WebViews, JavaScript bridges and cookie domain scope.
  • Have a person verify AI findings and add regression tests for fixes.

Primary sources

All sources and reproduction status ↗