Skip to content

Benchmarks

Sam MG Harish edited this page Oct 15, 2026 · 1 revision

Benchmarks

How well lu77U-MobileSec finds known vulnerabilities, measured on Ghera: a public benchmark of 60 small Android apps, each with one planted vulnerability, and most with a fixed version of the same app. The vulnerable apps measure what the tool finds; the fixed apps measure what it still reports once the issue is gone.

Every scan scored here is in the UI demo, listed by where to download its APK, so each result can be opened and checked.

Results at a glance

Result
Vulnerable apps where the planted issue is reported, at any severity 59 of 60 (98.3%)
The same, at Low or above 48 of 60 (80.0%)
Fixed apps where the fixed issue is still reported 17 of 59, 14 of them at Low or above. 12 of those 14 are weaknesses Ghera's fix left in place (below)
Findings across the 60 vulnerable apps 551, of which 151 above Informational

The scans used the free Ollama cloud model gemma4:31b, static analysis only.

Read the first two rows together. "Any severity" counts a benchmark as found when a finding names its planted issue. "Low or above" leaves out the 11 benchmarks the tool reported only as Informational: it saw the code but did not grade it as a confirmed issue. Each is listed below with the reason for its grade.

Most of the 551 findings are not about the planted issue. Each app also gets a few Informational notes (debuggable build, no FLAG_SECURE, the target SDK's defaults), and Ghera's apps carry other real weaknesses besides the one they plant.

Compared with other tools

The published numbers for other tools on the same 60 Ghera benchmarks come from Wang and Zhou, A2: Agentic Discovery and Validation of Android App Vulnerabilities (2025), Table 6:

Tool Benchmarks found (of 60) Recall Findings reported
lu77U-MobileSec, any severity 59 98.3% 551 (151 above Informational)
lu77U-MobileSec, Low or above only 48 80.0%
A2 (four LLMs aggregated) 47 78.3% 82 to 157, by aggregating model
o3 43 71.7% 116
gpt-oss-120b 42 70.0% 193
Gemini 2.5 Pro 40 66.7% 92
Gemini 2.5 Flash 40 66.7% 89
APKHunt 18 30.0% 1405
MobSF 11 18.3% 5654
Trueseeing 8 13.3% 978

Eleven benchmarks were found by none of the seven detectors in that table. lu77U-MobileSec reports all eleven, five of them at Low or above:

Benchmark lu77U-MobileSec
ICC / TaskAffinity-ActivityHijack Low
ICC / TaskAffinity-PhishingAttack Low
ICC / TaskAffinity-LauncherActivity-PhishingAttack Informational
ICC / TaskAffinityAndReparenting-PhishingAndDoSAttack Informational
ICC / OrderedBroadcast-DataInjection Informational
Networking / InsecureSSLSocket-MITM High
Networking / OpenSocket-InformationLeak Informational
System / EnforcePermission-PrivilegeEscalation Medium
Web / WebView-CookieOverwrite Informational
Web / WebViewInterceptRequest-MITM Informational
Web / WebViewProceed-UnauthorizedAccess Low

How to read the comparison:

  • The other rows are the paper's numbers, not rerun here. Each of those tools ran once per APK, as lu77U-MobileSec did, and counted a benchmark as found when a finding identified its planted issue, which is the "any severity" row. The paper gives no formal matching rule, so its matching and the one below may differ at the edges. It does not report the fixed apps, so there is no comparison for those.
  • Those tools were evaluated blind. lu77U-MobileSec was not: its misses on Ghera were studied and fixed with general rules (see What to keep in mind).
  • The finding counts are not like for like. lu77U-MobileSec's include Informational notes every app gets; its count above Informational is the closer one.

Fixed apps

59 of the 60 benchmarks ship a fixed (Secure) version of the app. 42 of them are clean: nothing in their report names the planted issue. 17 still have a finding that the same matching accepts, and reading each against Ghera's source shows why:

Benchmark Severity Why it is still reported
Crypto / ConstantKey-ForgeryAttack Low The fix generates the key at random, but the old key is still shipped in strings.xml, unused
Crypto / ExposedCredentials-InformationExposure Medium The key store now has a password, but the password is written in the app's code, and the file is still on external storage
ICC / EmptyPendingIntent-PrivEscalation High The base Intent now has an action but no component, so the PendingIntent is still implicit, and mutable
ICC / FragmentInjection-PrivEscalation Medium The fix rejects one fragment name; any other class name in the extra is still instantiated
ICC / IncorrectHandlingImplicitIntent-UnauthorizedAccess Medium The activity is guarded by edu.ksu.cs.secure.perm, but the app declares edu.ksu.cs.benign.perm, so any app can declare the guard itself and pass it
ICC / UnprotectedBroadcastRecv-PrivEscalation Medium The same mistake: the receiver requires a permission the app never declares
ICC / WeakChecksOnDynamicInvocation-DataInjection High The provider is guarded by dangerous-level permissions, which any app gets with one user prompt, and call() still builds a file path from the caller's argument
Networking / CheckValidity-InformationExposure High The fix adds an expiry check, but the TrustManager still trusts every certificate and the HostnameVerifier every host
Networking / InsecureSSLSocket-MITM Medium The socket now verifies the host name, but the TrustManager still trusts every certificate
Networking / OpenSocket-InformationLeak Informational The server now answers only clients whose reverse-DNS name matches, and an attacker sets their own reverse DNS
Storage / InternalToExternalStorage-InformationLeak Medium The service now requires a signature permission, but still copies private files to external storage, which other apps read on Android 10 and lower
Web / UnsafeIntentURLImpl-InformationExposure High The expected intent is checked, but any other intent:// URL is still started as it is, without clearing its component or selector
Web / WebView-NoUserPermission-InformationExposure High The JavaScript bridge is still exposed to every page; the fix asks the user before it returns the location
ICC / NoValidityCheckOnBroadcastMsg-UnintendedInvocation Medium False positive. The receiver is still exported with no permission, which the manifest finding reports, but its code now acts only on DEVICE_STORAGE_LOW, which other apps cannot send; the manifest scanner cannot see the code
ICC / UnhandledException-DOS Medium False positive. The fixed code catches the NullPointerException, but JADX's output puts the loop condition outside that try, and the agent read the crash as uncaught
System / ClipboardUse-InformationExposure Informational A note: the fixed app copies a placeholder string, which the clipboard rule flags by its "Password" label
System / DynamicCodeLoading-CodeInjection Informational A lead: the fixed app checks the JAR's signer before loading it, and the rule asks to confirm the check runs on the loaded file

So 13 are real issues left in the fixed apps, two of them (the undeclared permissions) mistakes the fix itself introduced; two are false positives at Medium; and two are Informational notes.

By category

Category Benchmarks Found Found at Low or above Fixed apps still reported
Crypto 5 5 5 2 of 5
ICC 17 17 13 7 of 17
Networking 8 7 5 3 of 8
NonAPI 2 2 2 0 of 1
Permission 2 2 2 0 of 2
Storage 7 7 6 1 of 7
System 7 7 7 2 of 7
Web 12 12 8 2 of 12

Every benchmark

"Vulnerable app" is the severity of the finding that names the planted issue. "Fixed app" is whether the scan of Ghera's fixed version still reports it; the table above says why for each one that does.

Category Benchmark Planted issue Vulnerable app Fixed app
Crypto BlockCipher-ECB-InformationExposure A block cipher in ECB mode encrypts sensitive data. found (Medium) clean
Crypto BlockCipher-NonRandomIV-InformationExposure CBC encryption uses a constant, non-random IV. found (High) clean
Crypto ConstantKey-ForgeryAttack The encryption key is a constant in the app, so tokens can be forged. found (High) still reported
Crypto ExposedCredentials-InformationExposure A key is stored with KeyStore.setEntry and a null ProtectionParameter in a keystore file other apps can read. found (Medium) still reported
Crypto PBE-ConstantSalt-InformationExposure Password-based encryption uses a constant salt. found (Low) clean
ICC DynamicRegBroadcastReceiver-UnrestrictedAccess A receiver registered at runtime with no permission accepts broadcasts from any app. found (Medium) clean
ICC EmptyPendingIntent-PrivEscalation A PendingIntent wrapping an empty base Intent is handed to other apps. found (High) still reported
ICC FragmentInjection-PrivEscalation An exported activity loads a fragment named in the incoming Intent by reflection. found (Medium) still reported
ICC HighPriority-ActivityHijack A sensitive activity is reached by an implicit Intent, so a higher-priority filter in another app can take it. found (Info) clean
ICC ImplicitPendingIntent-IntentHijack A PendingIntent wraps an implicit base Intent that another app can intercept. found (High) clean
ICC InadequatePathPermission-InformationExposure An exported content provider relies on path-permission, which does not protect the data. found (High) clean
ICC IncorrectHandlingImplicitIntent-UnauthorizedAccess An activity reachable by implicit Intent returns sensitive data to any caller. found (Medium) still reported
ICC NoValidityCheckOnBroadcastMsg-UnintendedInvocation A receiver for a system broadcast is exported and acts on any sender's Intent without checking it. found (Medium) still reported
ICC OrderedBroadcast-DataInjection The app trusts the result data of an ordered broadcast that a higher-priority receiver can rewrite. found (Info) clean
ICC StickyBroadcast-DataInjection The app sends sticky broadcasts that any app can read or replace. found (Medium) clean
ICC TaskAffinity-ActivityHijack Activities started in a new task can be hijacked through taskAffinity. found (Low) clean
ICC TaskAffinity-LauncherActivity-PhishingAttack The launcher activity can be phished through a malicious app's taskAffinity. found (Info) clean
ICC TaskAffinity-PhishingAttack Activities started in a new task can be phished through taskAffinity. found (Low) clean
ICC TaskAffinityAndReparenting-PhishingAndDoSAttack allowTaskReparenting with a shared taskAffinity enables phishing and denial of service. found (Info) clean
ICC UnhandledException-DOS An exported component crashes on a null or malformed extra, so any app can stop it. found (Low) still reported
ICC UnprotectedBroadcastRecv-PrivEscalation An exported receiver performs a privileged action for any sender. found (High) still reported
ICC WeakChecksOnDynamicInvocation-DataInjection A content provider's call() writes data with only the read permission checked. found (High) still reported
Networking CheckValidity-InformationExposure A custom TrustManager does not check the certificate's validity period. found (High) still reported
Networking IncorrectHostNameVerification-MITM A HostnameVerifier accepts any host name. found (High) clean
Networking InsecureSSLSocket-MITM SSLCertificateSocketFactory.getSocket(InetAddress, ...) is used, which skips host name verification. found (High) still reported
Networking InsecureSSLSocketFactory-MITM SSLCertificateSocketFactory.getInsecure() disables certificate checks. found (High) clean
Networking InvalidCertificateAuthority-MITM A TrustManager trusts any certificate authority. found (High) clean
Networking OpenSocket-InformationLeak A service listens on an open port and sends sensitive data to whoever connects. found (Info) still reported
Networking UnEncryptedSocketComm-MITM The app talks to its server over a plain TCP socket. found (Info) clean
Networking UnpinnedCertificates-MITM The app does not pin its server's certificate. missed clean
NonAPI MergeManifest-UnintendedBehavior A library's manifest merges an exported service into the app. found (Medium) no fixed app
NonAPI OutdatedLibrary-DirectoryTraversal An outdated library with a known directory traversal flaw is bundled. found (Medium) clean
Permission UnnecesaryPerms-PrivEscalation The app requests a permission it does not use, which an exported library service can exercise for others. found (Low) clean
Permission WeakPermission-UnauthorizedAccess An exported component is guarded by a normal-level permission any app can hold. found (Low) clean
Storage ExternalStorage-DataInjection The app reads and trusts a file on external storage that other apps can write. found (Info) clean
Storage ExternalStorage-InformationLeak The app writes sensitive data to external storage. found (Medium) clean
Storage InternalStorage-DirectoryTraversal A file name taken from an Intent is written to internal storage without path sanitization. found (High) clean
Storage InternalToExternalStorage-InformationLeak An exported service copies any named internal file to external storage. found (High) still reported
Storage SQLite-execSQL SQLiteDatabase.execSQL() runs a query built from input. found (High) clean
Storage SQLlite-RawQuery-SQLInjection SQLiteDatabase.rawQuery() runs a query built from input. found (High) clean
Storage SQLlite-SQLInjection Selection clauses are built from input instead of selectionArgs. found (High) clean
System CheckCallingOrSelfPermission-PrivilegeEscalation Access control uses checkCallingOrSelfPermission, which passes when the app itself holds the permission. found (Medium) clean
System CheckPermission-PrivilegeEscalation Access control uses checkPermission with the app's own pid and uid. found (Medium) clean
System ClipboardUse-InformationExposure Sensitive data is copied to the clipboard, which other apps can read. found (Medium) still reported
System DynamicCodeLoading-CodeInjection Code is loaded dynamically from a location other apps can write, without an integrity check. found (Medium) still reported
System EnforceCallingOrSelfPermission-PrivilegeEscalation Access control uses enforceCallingOrSelfPermission, which passes when the app itself holds the permission. found (Medium) clean
System EnforcePermission-PrivilegeEscalation Access control uses enforcePermission with the app's own pid and uid. found (Medium) clean
System UniqueIDs-IdentityLeak A device identifier is used to identify the app instance and is exposed. found (Low) clean
Web HttpConnection-MITM The app connects to its server over plain HTTP. found (Info) clean
Web JavaScriptExecution-CodeInjection A WebView with JavaScript enabled loads content that can inject script. found (Low) clean
Web UnsafeIntentURLImpl-InformationExposure An intent:// URL from web content is parsed and started without restricting it. found (High) still reported
Web WebView-CookieOverwrite A WebView lets a visited site overwrite the app's cookies. found (Info) clean
Web WebView-NoUserPermission-InformationExposure A JavaScript bridge returns the device location to any page without asking the user. found (High) still reported
Web WebViewAllowContentAccess-UnauthorizedFileAccess A WebView allows content:// access to JavaScript from unverified pages. found (Medium) clean
Web WebViewAllowFileAccess-UnauthorizedFileAccess A WebView allows file:// access to JavaScript from unverified pages. found (High) clean
Web WebViewIgnoreSSLWarning-MITM onReceivedSslError calls proceed(), ignoring TLS errors. found (High) clean
Web WebViewInterceptRequest-MITM shouldInterceptRequest loads resources without validating them. found (Info) clean
Web WebViewLoadDataWithBaseUrl-UnauthorizedFileAccess loadDataWithBaseURL uses a file:// base URL with JavaScript from unverified sources. found (High) clean
Web WebViewOverrideUrl-MITM shouldOverrideUrlLoading does not validate the pages a WebView navigates to. found (Info) clean
Web WebViewProceed-UnauthorizedAccess HttpAuthHandler.proceed sends stored credentials to any host that asks. found (Low) clean

Reported only as Informational

These 11 are found but graded Informational, so they drop out of the "Low or above" row:

Benchmark What the tool reported Why it is Informational
ICC / HighPriority-ActivityHijack An implicit Intent with an app-defined action carries extras The scanner rule reports it at low confidence, and a low-confidence rule finding is a lead to verify, not a confirmed issue
ICC / OrderedBroadcast-DataInjection An ordered broadcast's result is trusted in onReceive() Low-confidence rule finding, as above
Web / WebView-CookieOverwrite A WebView that loads outside URLs shares the app's cookies Low-confidence rule finding, as above
ICC / TaskAffinity-LauncherActivity-PhishingAttack Task hijacking (StrandHogg) on Android 10 and lower Informational by design: Android 11 fixed the attack in the OS, and an app can only reduce it, with an empty taskAffinity (which the fixed app sets, and so does not get the note)
ICC / TaskAffinityAndReparenting-PhishingAndDoSAttack The same note The same
Storage / ExternalStorage-DataInjection A file on shared external storage is read back Informational by design: other apps, given the storage permission, can write there only on Android 10 and lower
Web / WebViewInterceptRequest-MITM shouldInterceptRequest() checks nothing Informational by design: a hook that checks nothing matters only once the WebView is shown to load untrusted content
Web / WebViewOverrideUrl-MITM shouldOverrideUrlLoading() checks nothing The same
Web / HttpConnection-MITM Plain HTTP in HttpIntentService Cleartext traffic is graded above Informational only when the finding names what the traffic carries, and this one did not (weak classes)
Networking / UnEncryptedSocketComm-MITM A plain TCP socket carries data without TLS The same cleartext rule
Networking / OpenSocket-InformationLeak An unauthenticated server on a ServerSocket The agent filed it as cleartext traffic, so the same rule applied. A server that hands data to anyone who connects is a different issue from cleartext, so the class was the wrong one

The one miss

Networking / UnpinnedCertificates-MITM. Ghera stages this one. The vulnerable app's TrustManager accepts only a certificate bundled under assets/: the attacker's, standing in for a certificate a trusted CA signed by mistake. The fixed app pins the real server's certificate, also bundled under assets/. So both apps trust exactly one bundled certificate, and which one is the right one cannot be told from the app. A static scan cannot find this one without knowing which server the app is meant to talk to.

How it was scored

The benchmark. Ghera (Mitra and Ranganath, Kansas State University; BSD 3-Clause) has 60 lean benchmarks in eight categories. Each is a small app with one planted vulnerability. Ghera calls it the Benign app. Most benchmarks also have a Secure app with the vulnerability fixed, and a Malicious app that exploits it. 59 of the 60 have a Secure app; MergeManifest-UnintendedBehavior does not. The Malicious apps were not scanned. The checkout used was revision ea1dbe23.

The scans. One scan per APK: 60 Benign and 59 Secure, all with gemma4:31b on Ollama's free cloud plan and device verification turned off, so none of them carries device evidence. All 119 were scanned on 22 and 23 October 2026. Fixes for false positives that run exposed were then made, and the 10 benchmarks those fixes could change were scanned again, both apps each, replacing their first scans. The other 99 scans were kept, because nothing changed for them: the changed scanner rules were run offline over every stored scan to find the apps whose rule output differs, the new gates were run over every stored finding to find the ones they would grade differently, and the one review-prompt change concerns receivers, whose two benchmarks were among those rescanned.

The matching. A benchmark counts as found when any finding in the report names its planted issue; a finding about something else in the same app does not count. scripts/ghera_answer_key.json gives each benchmark its issue, the vulnerability classes a finding about it can carry, the words it must contain and, for some, which fields those words must be in. That proposes candidates; each was then checked by hand against the finding's text, and the key holds a review entry, with its reason, wherever the hand check disagreed. The answer key is used only for scoring. The tool never reads it, and nothing in it is copied into a prompt, a skill or a scanner rule.

The fixed apps. A Secure app counts as still reported when its scan has a finding that the same matching would accept for the vulnerable app.

What to keep in mind

  • This is not a blind test. Ghera was used to find gaps. Misses and false positives from earlier runs were studied and fixed with general rules: for example, an ordered broadcast's result being trusted, a permission the app holds being exercised for any caller, a WebView sharing the app's cookies with outside pages, a TLS socket opened by IP address, a component guarded by a permission the app never declares, a SQL statement judged by its riskiest operand. No rule names a Ghera app, class or string, and each was checked against the fixed apps. Still, the rules exist because these apps exposed the gaps. Expect lower recall on apps the tool has not been improved against.
  • The same APK and model do not necessarily give the same results. The agents, the file review and the review pass are model calls, and a model call is not repeatable: a rerun can word a finding differently, grade a borderline one a rung differently, or find one issue more or less. The deterministic scanners, gates and deduplication do repeat. See UI demo.
  • Static analysis only. Device verification was off for speed. Findings that a device run would confirm or refute were left as static findings.
  • Ghera's apps are small. Each is a few classes with one planted issue, and they target old SDKs (around API 27). Real apps are larger, and the issues are harder to find in them.

Rerunning it

The run needs a Ghera checkout with its APKs, which Ghera stores in Git LFS, and a running dashboard set to the provider and model to test.

git clone https://bitbucket.org/secure-it-i/android-app-vulnerability-benchmarks.git etc/vulnerable-apps/ghera
git -C etc/vulnerable-apps/ghera lfs pull
lu77U-MobileSec -V        # note the port it prints; turn off device verification in Settings for a static-only run

Then, in another terminal, from the repository root:

python scripts/ghera_benchmark.py run --ghera etc/vulnerable-apps/ghera --state ghera_benign.json --variant Benign --api http://127.0.0.1:<port>/api
python scripts/ghera_benchmark.py run --ghera etc/vulnerable-apps/ghera --state ghera_secure.json --variant Secure --api http://127.0.0.1:<port>/api
python scripts/ghera_benchmark.py score --benign ghera_benign.json --secure ghera_secure.json
python scripts/build_demo_data.py

run keeps two scans in flight, which took about 75 minutes per variant here, and it resumes from its state file if stopped; --only limits it to named benchmarks, as for the rescan above. score writes scripts/ghera_results.json, which this page's tables and the demo's scan list are built from. build_demo_data.py publishes exactly the scans that file scored.

Clone this wiki locally