Skip to content
Tamandua
← All posts

Your app's third-party SDKs are attack surface too

Analytics, ads, crash reporting and payment SDKs run with your app's permissions and ship under your name. How to inventory them, what to check before adding one, and why app hardening doesn't change who you trust.

Tamandua Team · · 6 min read

A typical production app contains more code written by other companies than by its own team: analytics, crash reporting, ads, attribution, chat, payments, feature flags. Each SDK runs inside your process, with every permission your app holds, and ships under your name in the store listing. The OWASP Mobile Top 10 (2024) includes inadequate supply chain security (M2) among the main mobile risks. This post is about treating SDKs as part of your attack surface rather than as background.

What an SDK can do inside your app

  • Use your permissions. Android permissions belong to the app, not to the code that requests them. If your app can read location or contacts, so can every library in it.
  • Add permissions. Library manifests are merged into yours at build time. A dependency update can add a permission or an exported component without a single line of your code changing.
  • Load or fetch code and configuration at runtime. Remote config can change an SDK's behavior after your release has been reviewed and published.
  • Send data to its own servers. What it collects becomes part of what your app collects, and of what you have to declare in the Play Data safety form.

How it goes wrong

The risks are mostly unglamorous: an SDK that collects more than you declared and gets your app flagged by a store review; an outdated library with a known vulnerability; an exported component added by a dependency; a vendor whose backend is breached and whose keys or data flows include your users. Occasionally a library is compromised outright, as has happened repeatedly in open-source package ecosystems. In every case the store and your users see your app, not the SDK.

Inventory what you ship

You cannot review what you have not listed. For an Android app:

  • Dependency tree. ./gradlew :app:dependencies --configuration releaseRuntimeClasspath shows every library in the release build, including the transitive ones nobody added on purpose.
  • Merged manifest. Android Studio's merged manifest view, or apkanalyzer manifest permissions app-release.apk on the built APK, show the permissions and components that actually ship. The merged manifest view also shows which library contributed each entry.
  • Known issues. Google's Play SDK Index lists widely used SDKs with their versions, permissions and any Play policy issues reported against them.

Before adding the next one

  1. What data does it collect, where does it send it, and can you turn collection off until the user consents?
  2. What permissions and components does it add to the merged manifest?
  3. Does it download code or configuration at runtime, and can that be disabled or pinned?
  4. How quickly does the vendor ship security fixes, and how will you hear about them?
  5. Could the same feature run on your server instead of inside the app?

What app hardening does and doesn't change

Obfuscation and runtime protection make your app harder to analyze and modify, and that includes the SDKs inside it. They do not change what an SDK is allowed to do, because the SDK is part of the app being protected. A library that over-collects data still over-collects it after hardening. Hardening also has to be tested with each SDK: libraries that rely on reflection or on their own class names can break under aggressive obfuscation, so run your release tests against the protected build.

Next step: a 15-minute SDK inventory

  1. Run the dependency command above on your release configuration and paste the top-level SDKs into a list.
  2. Run apkanalyzer manifest permissions on your latest release APK and note any permission you can't explain.
  3. For each SDK, write down its owner on your team. An SDK nobody owns is the one that will not be updated.

Where Tamandua App Guard is today

Current App Guard evidence is limited to detect-only Android lab results on one tested device: root and re-signing were detected and logged on-device. No hosted completion, console telemetry, public enrollment, purchase, blocking, or verified effect is offered. An assisted Android pilot is under consideration, not available. iOS is source/preview only, with no enrollment or availability offer. A request records interest and does not grant access or guarantee delivery. App Guard does not inspect or restrict what third-party SDKs inside your app do.

Account takeover on mobile: the device-side signals that matter

Most account takeover is decided on the server, but the device often knows something first. Which client-side signals are worth collecting, how to bind a session to a device, and how to use them without locking out real users.

· 7 min read

Ship apps that fight back

App Guard protects Android and iOS apps: zero-code hardening for APKs, a native iOS SDK, real-time telemetry and a verifiable receipt for every build.