Skip to content
Haxset
Back to Blog

Agentic Mobile App Pentesting: Android Apps, Protections On

By Haxset Research11 min read

TL;DR: Agentic mobile app pentesting means AI agents install your app on a device or emulator and use it like a person. They intercept its traffic, test its backend API and report the findings they confirm while the app runs. Haxset Agentic Pentesting now tests Android apps this way, on an emulator, with pinning and root detection still in the build you ship. Each finding is mapped to the OWASP Mobile Application Security Verification Standard (MASVS) v2.1.

Key points

  • A lead that only static analysis raised, with no confirmation while the app ran, is reported as an observation, not a finding.
  • If the app rejects the proxy's certificate for an in-scope host in every TLS handshake, the report lists that host as not tested.
  • An emulator that fails Google's integrity checks gets a blank Play Integrity device verdict, so flows gated on that verdict stay untested.

What is agentic mobile app pentesting?

Agentic mobile app pentesting is a penetration test run by AI agents that choose each step from what the running app shows them. A static mobile scan reads only the app's code. An agent is a language model that works through tools over many steps, such as tapping through screens and sending requests. Our guide to agentic penetration testing compares agents with scanners and manual tests.

In Haxset Agentic Pentesting, you upload the APK, XAPK, APKS, APKM or AAB file you ship and choose gray box or black box. Gray box signs in with test accounts you supply, or with an account the agents register. Black box creates no account.

How do AI mobile pentest tools handle pinning and root detection?

AI mobile pentest tools either test a build with the protections turned off or try to bypass the protections while the app runs. The protections are certificate pinning, root and emulator detection, and runtime application self-protection (RASP). They block testers as well as attackers. We found these approaches in vendor documentation published before 27 October 2026.

ApproachWhat you must changeWhere the app runsWhat the test cannot show
Protections turned off in a test build (Aikido)Pinning, root, emulator and RASP checks removed, and source code suppliedA test deviceWhether those protections hold
Bypass on a device you pair (Strobes)A rooted phone or emulator you supply, and a person approves instrumentation on itYour phone or emulatorFlows behind a protection that holds
Bypass by the vendor (FireCompass, Haxset)NothingThe vendor's test environmentFlows behind a protection that holds

How does Haxset test an Android app?

Haxset tests the package and the running app, and confirms each candidate finding, a possible finding, before it reaches the report. A test includes these steps:

  • Decompile the package, identify its protections, detect Flutter or React Native, and collect hard-coded secrets. Read-only static agents then turn the decompiled code into leads.
  • Start a clean emulator on an isolated network, with a proxy and egress filter for this engagement only, and wipe it at the end.
  • Explore the screens, sign in, and run scripted device checks, for example for test credentials left in app storage, logs or the clipboard.
  • Test the device side with specialist agents, for example exported components, deep links and WebView JavaScript bridges.
  • Test the backend API, for example for broken access control, injection and business logic flaws.
  • Validate each candidate finding: Haxset's false-positive validator replays the proofs it can and keeps only findings confirmed while the app ran.

A finding is a weakness confirmed while the app runs, with a screenshot or a captured request as proof. An observation is a static lead that no test confirmed. The report maps findings to MASVS controls and includes a MASVS coverage table.

How does Haxset intercept the app's traffic?

Every TCP connection the emulator makes passes through the engagement's own proxy. The emulator trusts Haxset's certificate authority (CA) as a system CA. So the proxy can decrypt traffic from Flutter (Dart), OkHttp and in-app WebViews, unless the app pins its certificates. The agents test only in-scope hosts, such as hosts on the domain in the app's package name and hosts you add. An excluded host gets no traffic at all.

The engine also checks whether the app accepts certificates it should reject, such as one from an untrusted authority or one issued for another hostname. An app that accepts one gets a candidate finding, "Certificate Validation Disabled" (CWE-295) or "Hostname Verification Disabled" (CWE-297), with the captured traffic as proof.

Two gaps remain. UDP is not carried, so QUIC is blocked, HTTP clients fall back to TCP, and other UDP traffic is not tested. On the Android 16 image, which Haxset uses only for apps that need it, Chrome and Custom Tabs reject Haxset's CA. Traffic from pages opened there, such as a sign-in page in a Custom Tab, is not read.

Can Haxset bypass certificate pinning?

Haxset tries to bypass certificate pinning while the app runs, and the report says when a pin it detects still holds. Certificate pinning, or SSL pinning, means the app accepts only specific certificates or keys for its servers, so it refuses a testing proxy's certificate. OWASP's pinning control is MASVS-NETWORK-2: "The app performs identity pinning for all remote endpoints under the developer's control."1

You do not remove pinning, root detection or emulator detection from the build. While the app runs, the engine tries one method at a time to bypass them. Methods include runtime hooks that hide root and emulator signals and disable pin checks, and a hook in Flutter's own TLS library for Flutter apps. Repackaging and re-signing the app is the last resort.

If the protections stop the app at every step, static and backend testing continue, and the report recommends a test build with the protections removed. If the app rejects the proxy's certificate for an in-scope host in every TLS handshake, the report's "Could not test" section lists that host as pinned. An app that checks its pin after the handshake, as OkHttp's CertificatePinner does, causes no such rejection, so that host can be missing from the section.

How does Haxset capture evidence from protected screens?

Screens that set Android's FLAG_SECURE flag block screenshots. When a proof needs one, an agent lifts the flag with a test hook, and the figure caption says so. Apps set it to "treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays".2

Haxset checks sensitive screens for the flag before any hook runs. A sensitive screen without it becomes a candidate finding (CWE-200) for the validator to confirm. If the app blocks the hook, the figure marks a secure window and shows the output of the command that proves the finding instead. A screenshot that may show a test-account secret is withheld.

What are the limits of agentic mobile app pentesting?

On Haxset's emulators, agentic mobile app pentesting has four limits: server-side device attestation, pins the hooks do not remove, ARM-only native code and unreached features.

LimitWhy it stops the testWhat you can do
Server-side device attestation, such as Google Play IntegrityThe backend checks a verdict from Google, and no hook on the device changes itLet the test pass your backend's integrity check through an allowlist, or use a staging backend
Pins the hooks do not removeThe proxy cannot read that trafficAdd a second run on a build with pinning off
Native code built only for ARMIt runs under ARM translation on an x86_64 emulator and cannot be hooked nativelySupply a universal or x86_64 build
Features the agents could not reachNo runtime test reaches what is behind themProvide test accounts with the roles and data those features need

Device attestation means the app gets a verdict about the device from a service such as Google Play Integrity, and the backend checks it. Google documents the limit. The Play Integrity device verdict is blank when "the app is not running on a physical device (such as an emulator that does not pass Google Play integrity checks)".3 If your backend rejects requests without the expected verdict, device-side tests of those flows stop. Haxset does not try to forge attestation verdicts.

How Haxset can help

Haxset Agentic Pentesting tests web applications and Android apps with their backend APIs, and Haxset AI SAST reviews Android and iOS source code. Haxset does not keep the prompts its AI models process and does not train models on them. It stores only scan metadata and scan results. Contact us to discuss testing your Android app.

FAQ

Do we need source code, a test build or a rooted device?

Not to start. You upload the file you ship, with its protections on, and the static analysis works on the decompiled package. You supply no phone, rooted or not, because the app runs on Haxset's emulators.

If the protections block every step, or native code is built only for ARM, the report recommends a different build for a second run. An AAB is re-signed with Haxset's key when it is installed, and so is a build that the last-resort step repackages. An app that checks its own signature therefore sees a different key in those two cases.

Does Haxset test iOS apps?

Not with Agentic Pentesting. On mobile, it tests Android apps only. Haxset AI SAST accepts iOS source code and scans it with its mobile vulnerability classes, as our AI SAST and AI DAST launch post explains. It does not accept compiled .ipa files, so an iOS review needs the source code.

Can the agents sign in if our app uses SMS one-time passwords?

Not by reading text messages, because the agents have no SMS inbox. Provide test accounts that share a fixed one-time password, and the agents enter it. Email verification and email codes go through a Haxset test mailbox, as our post on authenticated AI pentesting describes. Two accounts per role let the agents test whether one user can reach another's data.

Will testing make payments or delete accounts in our app?

Payments, transfers and orders are blocked unless you allow financial actions on your test accounts. Taps on delete-account, log-out-everywhere and messaging controls are refused in every case.

The guards check each tap and each API request the agents send with the engine's own tools, including direct requests to your backend. They recognize a payment by words such as "transfer" or "payment" in the request. An endpoint named another way, or a request sent by other means, can get through. Use test accounts that hold no real funds, and exclude any host that must receive no test traffic.

Does NCA's ECC definition of penetration testing include mobile apps?

Yes. In our paraphrase, the Essential Cybersecurity Controls (ECC-2:2024) of the National Cybersecurity Authority (NCA) define penetration testing to include mobile applications. The definition also names computer systems, networks and web applications. Our post on ECC 2-11 penetration testing quotes the definition with its source and covers scope, frequency and evidence. Each Haxset finding maps to an OWASP MASVS v2.1 control, and the report's "Could not test" section lists each gap the engine detects, with the reason.

Related research

References

  1. OWASP Mobile Application Security, MASVS-NETWORK-2, Mobile Application Security Verification Standard v2.1.0 (released 18 January 2024), as archived on 20 October 2026. ↩

  2. Google, WindowManager.LayoutParams: FLAG_SECURE, Android API reference, as archived on 9 October 2026. ↩

  3. Google, Integrity verdicts, Android Developers documentation for the Play Integrity API, as archived on 30 September 2026. ↩

Interested in how this research applies to your organization?

Get in touch