Recently there has been a rise in digital frauds where the fraudsters lure less-vigilant users into downloading malicious APK and stealing banking information through them. I recently received a SMS, saying that my car has some fines associated with it, and I need to pay the fine using official (RTO - mParivahan) app. This article takes us through my journey to find what malicious things this app is designed to do.

I received this SMS recently:

Image

Since my telecom provider Airtel categorized it as SPAM, this also came to my mind - if Airtel already knows this is a bad URL, why can’t they directly report it to CERT-IN through some automation?

Since many of the digital frauds start with SMS, Indian Govt and telecom providers can collaborate and take action on such URLs before they claim any victim. Privacy would be an issue, hence the telecom provider may not check every SMS, but when they find a pattern (too many SMS, links within SMS, newly registered links, links taking to download of APKs, etc), they should flag those SMS and the CERT team can take action.

I went to the URL to download that APK. The loon-n-feel of that page was very similar to the Google Play Store. Anyone can get duped to trust this as the real Play Store and download the APK files present there. Downloaded that in a temp Genymotion emulator, and installed it. Kept my BurpSuite and Logcat running to see what happens. Also did some further analysis using MobSF and ChatGPT, for a static review.

Image

APK Information

AttributeObserved value
Submitted filenameMparivahan.apk
SHA-25645ac9d755d187d20f0ef26b19da3f751e8311897764cea4cf9e38fd155f29f87
File size16,211,825 bytes
First-stage packagenet.realme.receiver.mlhtq11
Version name2.6.84
Version code175
Minimum Android SDK24
Target Android SDK37
Compile SDK37
Application classcom.sanaminfo.payload.StubApplication
Launcher activitycom.sanaminfo.payload.MainActivity
Observed second-stage packagecom.veltrix.documents

APK Structure

The APK appears to operate as an installer or dropper. Its primary purpose is to facilitate the installation and execution of another Android application.

The APK contains the following noteworthy assets:

  • assets/i.html
  • assets/m.html
  • assets/README.txt

The HTML files implement an installation-progress screen and an application-update screen.

The update page uses a Google Play-style presentation, including:

  • An application update interface.
  • A Google Play logo.
  • A rating display showing 4.7.
  • A review count showing 3.12 million reviews.
  • A statement that ratings and reviews are verified.
  • Update notes claiming bug fixes and a critical security vulnerability patch.

These rating and review figures are present as static values in the HTML template. They should not be treated as actual Google Play statistics.

The update button invokes a native Android bridge method:

window.Android.onUpdateClicked()

This connects the displayed HTML interface to native application functionality.

The embedded README.txt contains the instruction:

Place your update APK file here with the name “update.apk” so the app can install/update it from assets!

However, the supplied APK does not contain an assets/update.apk file.

Package Installation Capability

The first-stage APK declares permissions associated with application installation and package management, including:

  • android.permission.REQUEST_INSTALL_PACKAGES
  • android.permission.REQUEST_DELETE_PACKAGES
  • android.permission.UPDATE_PACKAGES_WITHOUT_USER_ACTION
  • android.permission.QUERY_ALL_PACKAGES

It also declares package-installation receivers that respond to package-related events and boot-related broadcasts.

The manifest contains a VPN service named:

com.sanaminfo.payload.vpn.VpnGuard

Together, these components indicate that the first-stage application has been designed to manage installation activity and provide additional background functionality.

Unknown-app Installation Setting

During execution, the application opens Android’s settings page for managing the installation of unknown applications.

The relevant activity is:

android.settings.MANAGE_UNKNOWN_APP_SOURCES

The logcat subsequently records:

REQUEST_INSTALL_PACKAGES changed

The application then successfully installs the second-stage package.

This sequence is consistent with the user being guided to enable installation of applications from an untrusted source.

Manifest Permissions - First-stage APK

The supplied APK declares 16 Android platform permissions.

CategoryPermissionSecurity relevance
NetworkINTERNETAllows network communication
NetworkACCESS_NETWORK_STATEAllows inspection of network connectivity
NetworkACCESS_WIFI_STATEAllows inspection of Wi-Fi state
NetworkCHANGE_WIFI_STATEAllows changes to Wi-Fi state
InstallationREQUEST_INSTALL_PACKAGESRequests permission to initiate installation of other APKs
Package managementREQUEST_DELETE_PACKAGESRequests permission to initiate package deletion
Package managementQUERY_ALL_PACKAGESAllows broad package visibility, subject to Android restrictions
Package managementUPDATE_PACKAGES_WITHOUT_USER_ACTIONRequests the ability to update packages without a normal user action, subject to platform restrictions
Usage informationPACKAGE_USAGE_STATSSupports access to application usage statistics when special access is granted
SchedulingSCHEDULE_EXACT_ALARMAllows exact-alarm scheduling, subject to Android restrictions
StartupRECEIVE_BOOT_COMPLETEDAllows receiving the boot-completed broadcast
Background operationFOREGROUND_SERVICEAllows foreground-service operation
Background operationFOREGROUND_SERVICE_SPECIAL_USEDeclares use of the special-use foreground-service category
NotificationsPOST_NOTIFICATIONSRequests permission to post notifications
BiometricsUSE_BIOMETRICRequests biometric authentication functionality
User interactionVIBRATEAllows vibration functionality

The first-stage application requests a combination of network access, package-management capabilities, background execution and device-level functionality.

This first-stage manifest does not declare the six SMS and telephony runtime permissions listed below. Those belong to the separately installed application.

Manifest Permissions - Second-stage APK

The most significant permission evidence comes from the Android permission-controller entries in the supplied logcat.

The following six unique permissions were granted to com.veltrix.documents.

PermissionWhat it enablesSecurity impact
android.permission.READ_SMSReading SMS messages stored on the devicePotential exposure of OTPs, banking messages and private messages
android.permission.RECEIVE_SMSReceiving SMS broadcastsEnables monitoring of incoming SMS messages
android.permission.SEND_SMSSending SMS messagesProvides the capability to send messages from the device
android.permission.READ_PHONE_STATEAccess to certain telephony state informationPotential exposure of phone and network-related information
android.permission.READ_PHONE_NUMBERSAccess to phone-number informationPotential exposure of the device’s phone number
android.permission.CALL_PHONEInitiating telephone callsProvides the capability to place calls

The logcat records the permissions under two permission groups.

PHONE permission group

  • READ_PHONE_STATE
  • CALL_PHONE
  • READ_PHONE_NUMBERS

SMS permission group

  • READ_SMS
  • RECEIVE_SMS
  • SEND_SMS

The relevant entries contain:

callingPackage=com.veltrix.documents

and:

result=4

In Android’s permission-result enumeration, value 4 represents USER_GRANTED. Therefore, these are not merely permissions requested by the application: the log records them as granted through user action.

Android source reference: AOSP permission-result definitions

Notification-listener access

In addition to the six runtime permissions, the second-stage application obtains notification-listener access.

The service identified in the logs is:

com.veltrix.documents.service.MyNotificationListener

Android records:

Allowing notification listener com.veltrix.documents/com.veltrix.documents.service.MyNotificationListener

The logs also show the service connecting successfully.

This is particularly concerning because notification-listener access can expose notifications generated by other applications.

Depending on notification content and the user’s notification settings, this could expose:

  • Banking transaction notifications.
  • OTP notifications.
  • Payment application notifications.
  • Account-security alerts.
  • Private message previews.

The log also contains the application’s own message:

Notification Listener connected — monitoring all app notifications

VPN access

The first-stage APK declares a VPN service:

com.sanaminfo.payload.vpn.VpnGuard

During execution, Android displays the system VPN confirmation interface and subsequently establishes a VPN network.

The log records the interface:

tun0

The associated network configuration includes default routes:

  • 0.0.0.0/0
  • ::/0

The VPN network is associated with the first-stage application’s UID.

This configuration is significant because the default routes cover IPv4 and IPv6 traffic, rather than only a specific destination.

A VPN configured in this manner can potentially route a device’s network traffic through the application.

Battery optimisation request

The second-stage application also launches:

android.settings.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS

This indicates an attempt to request exemption from battery optimisation. Such an exemption can make background services more persistent.

Dynamic Behaviour Observed in Logcat

The logcat captures two installation cycles. The following sequence summarises the first observed execution.

  • First-stage package net.realme.receiver.mlhtq11 is installed and launched.
  • Application opens Android’s unknown-app installation settings.
  • Android records a change to REQUEST_INSTALL_PACKAGES.
  • A VPN interface named tun0 is established with default IPv4 and IPv6 routes.
  • The second-stage package com.veltrix.documents is successfully installed.
  • The first-stage installer automatically launches the second-stage application.
  • The second-stage application receives the PHONE permission group grants.
  • The second-stage application receives the SMS permission group grants.
  • The notification-listener service is enabled and connected.
  • The application registers an SMS/MMS observer and attempts a WebSocket connection.

The second installation cycle repeats the same general pattern. The second-stage package again receives the six sensitive runtime permissions, the VPN is re-established, and notification-listener access is enabled again.

SMS and MMS Monitoring

One of the strongest indicators in the logcat is the following message:

SmsObserver registered — instant SMS+MMS detection active

This message is generated by the second-stage application.

The application also creates a background foreground-service component identified by the SyncFGS log tag.

The SMS-related worker is identified as:

com.veltrix.documents.sync.SmsSyncWorker

The log contains repeated entries such as:

worker_start attempt=0 pending=0

and:

worker_retry reason=server_url_unset

This suggests that the application has an SMS synchronisation mechanism that attempts to process pending data and schedule background work.

The SmsObserver registration is particularly important: together with the granted READ_SMS and RECEIVE_SMS permissions, it indicates that the application is configured to monitor SMS/MMS activity.

Security implication: An application with these capabilities could potentially access OTP messages and other sensitive SMS content. This presents a serious risk to users relying on SMS-based authentication.

Network and Command-and-Control Indicators

The second-stage application’s logs identify the following WebSocket endpoint:

wss://nexus-panel.in/api/ws

The application repeatedly attempts to establish a connection to this endpoint.

The captured execution records the error:

WebSocket failure: Expected HTTP 101 response but was '200 OK'

A WebSocket connection normally requires an HTTP 101 Switching Protocols response during the upgrade handshake. The application received HTTP 200 instead, and its WebSocket client reported a failure.

This establishes that the application attempted to communicate with the endpoint, but the captured session does not establish a successful WebSocket connection. While checking with BurpSuite, I found that this domain is not responsive.

The logs also show Firebase and Firestore initialisation, including an attempt to retrieve a remote configuration value named syncBaseUrl.

The Firestore request failed because the client was offline or could not reach the backend.

Potential Security Impact

The combination of permissions and runtime behaviour presents several serious risks -

SMS and OTP exposure

The application received permission to read and receive SMS messages and registered an SMS/MMS observer.

This could expose OTPs used for banking, payment applications, account logins and other services.

Notification exposure

Notification-listener access allows the application to monitor notifications from other installed applications.

This could expose sensitive information displayed in banking, payment and messaging notifications.

Telephony abuse

The application received permission to read certain phone-related information, retrieve phone-number information and initiate calls.

It also received permission to send SMS messages.

These permissions create the capability for telephony-related abuse, although the supplied logs do not prove that the application actually placed calls or sent SMS messages.

Network traffic routing

The first-stage application established a VPN interface with default IPv4 and IPv6 routes.

This provides a mechanism through which device network traffic could be routed through the application.

The logs do not prove that the application inspected, decrypted or exfiltrated the traffic.

Secondary application installation

The first-stage APK successfully installed a second-stage application.

This is an important aspect of the attack because the initial application and the application requesting sensitive runtime permissions have different package identifiers.

A user may believe they are installing one application while actually being led through a process that installs and activates another.


Indicators of Compromise

The following indicators were identified in the supplied sample or its associated runtime logs.

Indicator typeIndicator
Sample filenameMparivahan.apk
SHA-25645ac9d755d187d20f0ef26b19da3f751e8311897764cea4cf9e38fd155f29f87
First-stage packagenet.realme.receiver.mlhtq11
Second-stage packagecom.veltrix.documents
Application classcom.sanaminfo.payload.StubApplication
Installer componentcom.sanaminfo.payload.installer.PackageInstalledReceiver
VPN componentcom.sanaminfo.payload.vpn.VpnGuard
Notification-listener componentcom.veltrix.documents.service.MyNotificationListener
SMS synchronisation componentcom.veltrix.documents.sync.SmsSyncWorker
WebSocket endpointwss://nexus-panel.in/api/ws
Suspicious network domainnexus-panel.in
Relevant embedded assetsassets/i.html, assets/m.html, assets/README.txt

Recommendations for Android Users

Users should avoid installing APK files received through unsolicited SMS, WhatsApp messages, social-media links or unofficial websites, even when the message refers to a traffic challan or vehicle-registration service.

For anyone who has installed this or similar APK files:

  • Disconnect the affected device from the internet while investigating it.
  • Uninstall both suspicious packages, net.realme.receiver.mlhtq11 and com.veltrix.documents, if present.
  • Revoke notification-listener access from suspicious applications.
  • Remove any VPN configuration associated with the suspicious application.
  • Disable permission to install unknown applications for untrusted sources.
  • Review accessibility, device-administrator and other special-access settings for unexpected entries.
  • Check for suspicious outgoing SMS messages, calls and banking activity.
  • From a clean device, change passwords for important accounts and contact financial institutions promptly if sensitive information may have been exposed.

Users should obtain NextGen mParivahan only through its official distribution channels and verify the publisher before installing it.