Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Read the Android manifest before you open a proxy

Most Android pentest write-ups start with a proxy and a hooking framework. The manifest is a faster place to begin, and it is already on your disk once you have the APK. Unpack the app apktool d app.apk -o app_out cat app_out/AndroidManifest.xml apktool turns the binary manifest into readable XML. Nothing runs yet. You are reading what the developer declared. Check one: debuggable Search the…

Before launching a proxy in an Android penetration test, scrutinize the app's manifest file. This file, housed within the APK, contains vital information about the app's components and behavior. Begin by unpacking the APK using apktool, converting the binary manifest into a comprehensible XML format. With the manifest at hand, you can commence your analysis. The manifest serves as the initial point of investigation, as it holds the developer's intended declarations.

First, verify if the application is debuggable by searching for the android:debuggable attribute within the application tag. If a release build sets this value to true, the app operates on a regular device, granting you access to private data directories, local SQLite files, preferences, and cached tokens. This discovery should raise concerns, as a release build should not include such sensitive data.

Next, identify exported components within the manifest. Each activity, service, receiver, and provider labeled with android:exported="true" can be invoked by any other app on the device. Compile this list and meticulously test each entry using adb shell am start -n com.example.shop/.AdminActivity. Assess whether the activity verifies user login and whether it reveals data that should remain confidential.

Additionally, examine content providers declared within the manifest. These providers are prone to data exposure if exported without proper security measures. Query the content URI to ascertain if data is accessible without logging in. Also, review the android:grantUriPermissions attribute to ensure providers are restricted by appropriate permissions. A provider protected by a signature-level permission poses a different threat than one unprotected.

While conducting these checks, remain attentive to two more attributes: android:allowBackup and android:usesCleartextTraffic. The former indicates whether the app's data can be backed up, while the latter reveals if the app communicates using unencrypted HTTP. Both findings are crucial in evaluating the app's security posture.

By diligently analyzing the manifest, you can generate a concise list of potential entry points and ascertain whether the app is debuggable before investing time in setting up a proxy or using tools like Frida. This preliminary examination provides valuable insights, enabling you to focus your efforts on critical vulnerabilities.

Should you prefer a more structured approach, consider the Android app pentesting book, a comprehensive 314-page PDF offering 12 guided labs, two independent assessments, and supplementary resources to aid your penetration testing endeavors.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

More from Dev.to on urgent.news

Get the news by email. Yesterday's most-covered stories, every morning.

See today's edition · More options

More in Tech

54,277 lines of Rust behind Forma's 1.7MB claim

Forma's headline is a ~1.7 MB binary replacing a 953 MB headless Blender stack. I counted what's behind that number: 54,277 lines of Rust across 62 files, 7 crates, and exactly 4 direct external…

  • Forma claims 1.7MB binary size with 54,277 lines of Rust code
  • Code distributed across 62 files, 7 crates, 4 direct dependencies
  • Focus on minimal dependencies, hand-written components for efficiency

More from Saturday, 5 December 2026 →