Malware Analysis Report

2024-09-09 14:35

Sample ID 240615-115rzszgqp
Target 2d19cbdd421ebf5024a12f4380d870d127a8b9348d7ababcced56c1bb8702956.bin
SHA256 2d19cbdd421ebf5024a12f4380d870d127a8b9348d7ababcced56c1bb8702956
Tags
ermac hook collection credential_access discovery evasion execution impact infostealer persistence rat trojan
score
10/10

Table of Contents

Analysis Overview

MITRE ATT&CK Matrix

Analysis: static1

Detonation Overview

Signatures

Analysis: behavioral1

Detonation Overview

Command Line

Signatures

Processes

Network

Files

Analysis: behavioral2

Detonation Overview

Command Line

Signatures

Processes

Network

Files

Analysis: behavioral3

Detonation Overview

Command Line

Signatures

Processes

Network

Files

Analysis Overview

score
10/10

SHA256

2d19cbdd421ebf5024a12f4380d870d127a8b9348d7ababcced56c1bb8702956

Threat Level: Known bad

The file 2d19cbdd421ebf5024a12f4380d870d127a8b9348d7ababcced56c1bb8702956.bin was found to be: Known bad.

Malicious Activity Summary

ermac hook collection credential_access discovery evasion execution impact infostealer persistence rat trojan

Hook

Ermac2 payload

Ermac family

Obtains sensitive information copied to the device clipboard

Loads dropped Dex/Jar

Makes use of the framework's Accessibility service

Queries the phone number (MSISDN for GSM devices)

Reads information about phone network operator.

Queries the mobile country code (MCC)

Acquires the wake lock

Makes use of the framework's foreground persistence service

Queries information about the current Wi-Fi connection

Requests dangerous framework permissions

Declares services with permission to bind to the system

Declares broadcast receivers with permission to handle system events

Registers a broadcast receiver at runtime (usually for listening for system events)

Schedules tasks to execute at a specified time

Uses Crypto APIs (Might try to encrypt user data)

Checks CPU information

Checks memory information

MITRE ATT&CK Matrix

N/A

Analysis: static1

Detonation Overview

Reported

2024-06-15 22:07

Signatures

Ermac family

ermac

Ermac2 payload

Description Indicator Process Target
N/A N/A N/A N/A

Declares broadcast receivers with permission to handle system events

Description Indicator Process Target
Required by device admin receivers to bind with the system. Allows apps to manage device administration features. android.permission.BIND_DEVICE_ADMIN N/A N/A

Declares services with permission to bind to the system

Description Indicator Process Target
Required by notification listener services to bind with the system. Allows apps to listen to and interact with notifications on the device. android.permission.BIND_NOTIFICATION_LISTENER_SERVICE N/A N/A
Required by accessibility services to bind with the system. Allows apps to access accessibility features. android.permission.BIND_ACCESSIBILITY_SERVICE N/A N/A

Requests dangerous framework permissions

Description Indicator Process Target
Required to be able to access the camera device. android.permission.CAMERA N/A N/A
Allows an application to write to external storage. android.permission.WRITE_EXTERNAL_STORAGE N/A N/A
Allows an application to read from external storage. android.permission.READ_EXTERNAL_STORAGE N/A N/A
Allows an application to read SMS messages. android.permission.READ_SMS N/A N/A
Allows an application to send SMS messages. android.permission.SEND_SMS N/A N/A
Allows an application to receive SMS messages. android.permission.RECEIVE_SMS N/A N/A
Allows read only access to phone state, including the current cellular network information, the status of any ongoing calls, and a list of any PhoneAccounts registered on the device. android.permission.READ_PHONE_STATE N/A N/A
Allows read access to the device's phone number(s). android.permission.READ_PHONE_NUMBERS N/A N/A
Allows an application to read the user's call log. android.permission.READ_CALL_LOG N/A N/A
Allows an application to initiate a phone call without going through the Dialer user interface for the user to confirm the call. android.permission.CALL_PHONE N/A N/A
Allows an app to access approximate location. android.permission.ACCESS_COARSE_LOCATION N/A N/A
Allows an application to read the user's contacts data. android.permission.READ_CONTACTS N/A N/A
Allows an application to write the user's contacts data. android.permission.WRITE_CONTACTS N/A N/A
Allows access to the list of accounts in the Accounts Service. android.permission.GET_ACCOUNTS N/A N/A
Allows an app to create windows using the type LayoutParams.TYPE_APPLICATION_OVERLAY, shown on top of all other apps. android.permission.SYSTEM_ALERT_WINDOW N/A N/A

Analysis: behavioral1

Detonation Overview

Submitted

2024-06-15 22:07

Reported

2024-06-15 22:11

Platform

android-x86-arm-20240611.1-en

Max time kernel

177s

Max time network

137s

Command Line

com.tencent.mm

Signatures

Hook

rat trojan infostealer hook

Makes use of the framework's Accessibility service

collection evasion credential_access
Description Indicator Process Target
Framework service call android.accessibilityservice.IAccessibilityServiceConnection.findAccessibilityNodeInfoByAccessibilityId N/A N/A
Framework service call android.accessibilityservice.IAccessibilityServiceConnection.findAccessibilityNodeInfosByText N/A N/A
Framework service call android.accessibilityservice.IAccessibilityServiceConnection.findAccessibilityNodeInfosByViewId N/A N/A

Queries the phone number (MSISDN for GSM devices)

discovery

Acquires the wake lock

Description Indicator Process Target
Framework service call android.os.IPowerManager.acquireWakeLock N/A N/A

Makes use of the framework's foreground persistence service

evasion persistence
Description Indicator Process Target
Framework service call android.app.IActivityManager.setServiceForeground N/A N/A

Queries information about the current Wi-Fi connection

discovery
Description Indicator Process Target
Framework service call android.net.wifi.IWifiManager.getConnectionInfo N/A N/A

Queries the mobile country code (MCC)

discovery
Description Indicator Process Target
Framework service call com.android.internal.telephony.ITelephony.getNetworkCountryIsoForPhone N/A N/A

Reads information about phone network operator.

discovery

Registers a broadcast receiver at runtime (usually for listening for system events)

persistence
Description Indicator Process Target
Framework service call android.app.IActivityManager.registerReceiver N/A N/A

Schedules tasks to execute at a specified time

execution persistence
Description Indicator Process Target
Framework service call android.app.job.IJobScheduler.schedule N/A N/A

Uses Crypto APIs (Might try to encrypt user data)

impact
Description Indicator Process Target
Framework API call javax.crypto.Cipher.doFinal N/A N/A

Checks CPU information

Description Indicator Process Target
File opened for read /proc/cpuinfo N/A N/A

Checks memory information

Description Indicator Process Target
File opened for read /proc/meminfo N/A N/A

Processes

com.tencent.mm

Network

Country Destination Domain Proto
N/A 224.0.0.251:5353 udp
US 1.1.1.1:53 semanticlocation-pa.googleapis.com udp
US 1.1.1.1:53 url_connection udp
GB 142.250.187.206:443 tcp
US 1.1.1.1:53 android.apis.google.com udp
GB 216.58.212.206:443 android.apis.google.com tcp
GB 172.217.169.10:443 semanticlocation-pa.googleapis.com tcp

Files

/data/data/com.tencent.mm/no_backup/androidx.work.workdb-journal

MD5 1f20b0b047ee2d6866bdf4ba18e51f8c
SHA1 b8d97366c5609b4a4ea0bad227bdcdefd11bd4b5
SHA256 3670ca6ef2df6bfe9d4118aaea5fb2a4f46b1c360147bd4a2349fe55e05881b9
SHA512 3cf72bb827bba6be602f20d583a1fe98fb52d12067a0902c593adb19b3f33ffe4666c369c35c55485f072cf3d0cc68aaf8a89e5bf6ce6f72eb8d89a7a22784df

/data/data/com.tencent.mm/no_backup/androidx.work.workdb

MD5 f2b4b0190b9f384ca885f0c8c9b14700
SHA1 934ff2646757b5b6e7f20f6a0aa76c7f995d9361
SHA256 0a8ffb6b327963558716e87db8946016d143e39f895fa1b43e95ba7032ce2514
SHA512 ec12685fc0d60526eed4d38820aad95611f3e93ae372be5a57142d8e8a1ba17e6e5dfe381a4e1365dddc0b363c9c40daaffdc1245bd515fddac69bf1abacd7f1

/data/data/com.tencent.mm/no_backup/androidx.work.workdb-shm

MD5 bb7df04e1b0a2570657527a7e108ae23
SHA1 5188431849b4613152fd7bdba6a3ff0a4fd6424b
SHA256 c35020473aed1b4642cd726cad727b63fff2824ad68cedd7ffb73c7cbd890479
SHA512 768007e06b0cd9e62d50f458b9435c6dda0a6d272f0b15550f97c478394b743331c3a9c9236e09ab5b9cb3b423b2320a5d66eb3c7068db9ea37891ca40e47012

/data/data/com.tencent.mm/no_backup/androidx.work.workdb-wal

MD5 10d02f81e083c8c469c5699943289ea3
SHA1 394d8f189066d7ce7f36355d7ef3286e05fc8045
SHA256 e090758f7285894cf387650140b8b4c0f92f86d8e0b2ed612e1f440a1472334d
SHA512 fa70fa270d7221c18a5dd525be5c5bbc9d2f25bea808dab013b65a2e45e3e2032dbf3ffed30c0a6ca1617160f50b6795283a50e5262b3e1bcec9ba222d92da8e

/data/data/com.tencent.mm/no_backup/androidx.work.workdb-wal

MD5 dd8ac34d65ffc2b738e96dd3e130c43a
SHA1 cf24bcefb4c2eec9d484d5e75aded255f56c7094
SHA256 78e21c103a115da77c9e597da1c577af32e3a71ee6ef864dd8deff0cbda0f28d
SHA512 61210880c4cce52f1fc17e509d26168c7b5819078658ed5f41962d49a89e319b0bd6a5cf5166d1cf09aa5db58aadada048342f36ca921574c66b787e5a18cee3

/data/data/com.tencent.mm/no_backup/androidx.work.workdb-wal

MD5 8d906c83c3ab5e7da1612a5811963707
SHA1 b66b23e0d86ef1327a25ad9acbe6987d3f133269
SHA256 3685b2a2e0d96260e5c39a6018d1e7543ef491e8d9155081b6d7ade3e882d736
SHA512 5bb822874dbfdfbf52f118408bd85a3532563bc79f88d2e2f01f9b930f655a044de9aa2a6a51116ba7c57a23edf04e5dc5dd7cf6e0fb9059d0e1c4b29cf81990

Analysis: behavioral2

Detonation Overview

Submitted

2024-06-15 22:07

Reported

2024-06-15 22:11

Platform

android-x64-20240611.1-en

Max time kernel

178s

Max time network

157s

Command Line

com.tencent.mm

Signatures

Hook

rat trojan infostealer hook

Makes use of the framework's Accessibility service

collection evasion credential_access
Description Indicator Process Target
Framework service call android.accessibilityservice.IAccessibilityServiceConnection.findAccessibilityNodeInfoByAccessibilityId N/A N/A
Framework service call android.accessibilityservice.IAccessibilityServiceConnection.findAccessibilityNodeInfosByText N/A N/A
Framework service call android.accessibilityservice.IAccessibilityServiceConnection.findAccessibilityNodeInfosByViewId N/A N/A

Obtains sensitive information copied to the device clipboard

collection credential_access impact
Description Indicator Process Target
Framework service call android.content.IClipboard.addPrimaryClipChangedListener N/A N/A

Queries the phone number (MSISDN for GSM devices)

discovery

Acquires the wake lock

Description Indicator Process Target
Framework service call android.os.IPowerManager.acquireWakeLock N/A N/A

Makes use of the framework's foreground persistence service

evasion persistence
Description Indicator Process Target
Framework service call android.app.IActivityManager.setServiceForeground N/A N/A

Queries information about the current Wi-Fi connection

discovery
Description Indicator Process Target
Framework service call android.net.wifi.IWifiManager.getConnectionInfo N/A N/A

Queries the mobile country code (MCC)

discovery
Description Indicator Process Target
Framework service call com.android.internal.telephony.ITelephony.getNetworkCountryIsoForPhone N/A N/A

Reads information about phone network operator.

discovery

Registers a broadcast receiver at runtime (usually for listening for system events)

persistence
Description Indicator Process Target
Framework service call android.app.IActivityManager.registerReceiver N/A N/A

Schedules tasks to execute at a specified time

execution persistence
Description Indicator Process Target
Framework service call android.app.job.IJobScheduler.schedule N/A N/A

Uses Crypto APIs (Might try to encrypt user data)

impact
Description Indicator Process Target
Framework API call javax.crypto.Cipher.doFinal N/A N/A

Checks CPU information

Description Indicator Process Target
File opened for read /proc/cpuinfo N/A N/A

Checks memory information

Description Indicator Process Target
File opened for read /proc/meminfo N/A N/A

Processes

com.tencent.mm

Network

Country Destination Domain Proto
N/A 224.0.0.251:5353 udp
US 1.1.1.1:53 ssl.google-analytics.com udp
GB 216.58.213.8:443 ssl.google-analytics.com tcp
GB 172.217.169.42:443 tcp
US 1.1.1.1:53 url_connection udp
US 1.1.1.1:53 android.apis.google.com udp
GB 142.250.187.238:443 android.apis.google.com tcp
GB 142.250.187.206:443 tcp
GB 142.250.187.194:443 tcp
GB 172.217.16.228:443 tcp
GB 172.217.16.228:443 tcp
GB 142.250.179.238:443 tcp

Files

/data/data/com.tencent.mm/no_backup/androidx.work.workdb-journal

MD5 c52092e0a75ec4adb444a02954d7ea2a
SHA1 a2d147b38da3870e0e3b83e4b8dec75464ae4da8
SHA256 15055bad365c4c664d08497da5ff623f422f2fcceeeec77d3a3d0b3c9896c3b7
SHA512 27c92f90bd1e968ee223a2ca5430f87b9fc471277d1ffbecf45d4501048a85b9a455a9bd6326df4eceea1cbd1a49d9241de8f7955bf8e8f03968eb16d190893b

/data/data/com.tencent.mm/no_backup/androidx.work.workdb

MD5 f2b4b0190b9f384ca885f0c8c9b14700
SHA1 934ff2646757b5b6e7f20f6a0aa76c7f995d9361
SHA256 0a8ffb6b327963558716e87db8946016d143e39f895fa1b43e95ba7032ce2514
SHA512 ec12685fc0d60526eed4d38820aad95611f3e93ae372be5a57142d8e8a1ba17e6e5dfe381a4e1365dddc0b363c9c40daaffdc1245bd515fddac69bf1abacd7f1

/data/data/com.tencent.mm/no_backup/androidx.work.workdb-shm

MD5 bb7df04e1b0a2570657527a7e108ae23
SHA1 5188431849b4613152fd7bdba6a3ff0a4fd6424b
SHA256 c35020473aed1b4642cd726cad727b63fff2824ad68cedd7ffb73c7cbd890479
SHA512 768007e06b0cd9e62d50f458b9435c6dda0a6d272f0b15550f97c478394b743331c3a9c9236e09ab5b9cb3b423b2320a5d66eb3c7068db9ea37891ca40e47012

/data/data/com.tencent.mm/no_backup/androidx.work.workdb-wal

MD5 1beed38d3bf55ab4ba0071d79be5753a
SHA1 a18778cb023913459fbe5aecf9c77b0150004cda
SHA256 319155de5aa1e0d6875d0da46497de8f6d6031eba8b9616e893fcc44e0e935df
SHA512 5b57fa770f2ac81935368303c0f6df7cc865389fa06a465ada80a54f0b38dc5d22531fa053fbd8517f4cfe3c6dac9217cc86b6783781ba13d9563cf321bebda9

/data/data/com.tencent.mm/no_backup/androidx.work.workdb-wal

MD5 fdabbbd60f9b2d69a2e1c52be43e2c96
SHA1 0c0d57a629f560ba7f1f6ca0735436a481c94c61
SHA256 0a7bfbbfd7452a8aba07d11667200cdd9deaad155517def384d7648ce4b21c9a
SHA512 5d07b8e1654ea61a177fc5aa653bc0850bfff9718f18f5b4dcd72b5a9405e157a43a2fbb47ef1a2f9bc84ea107cb6c7cceab192e33cdd22bfa8f383eb50750e2

/data/data/com.tencent.mm/no_backup/androidx.work.workdb-wal

MD5 c315a38e134d42110d61e8fb73c41ac8
SHA1 24928b34a05afe4fec3733a98c46c98453ea7eb8
SHA256 8276d5d5ff01b7bb6bec09478acdf1b4b00d567a6599c5c4d667f3a518ea685f
SHA512 a56361075809e418d7755851d006f9a3ba1e5a55959bbc4a5993f05d29a1c6e9c6784d9b06063a92e6baae1012f89f179f011585b191f32b4588f65c65ed29f1

Analysis: behavioral3

Detonation Overview

Submitted

2024-06-15 22:07

Reported

2024-06-15 22:11

Platform

android-x64-arm64-20240611.1-en

Max time kernel

179s

Max time network

132s

Command Line

com.tencent.mm

Signatures

Hook

rat trojan infostealer hook

Loads dropped Dex/Jar

evasion
Description Indicator Process Target
N/A /system_ext/framework/androidx.window.sidecar.jar N/A N/A
N/A /system_ext/framework/androidx.window.sidecar.jar N/A N/A

Makes use of the framework's Accessibility service

collection evasion credential_access
Description Indicator Process Target
Framework service call android.accessibilityservice.IAccessibilityServiceConnection.findAccessibilityNodeInfosByText N/A N/A
Framework service call android.accessibilityservice.IAccessibilityServiceConnection.findAccessibilityNodeInfosByViewId N/A N/A
Framework service call android.accessibilityservice.IAccessibilityServiceConnection.findAccessibilityNodeInfoByAccessibilityId N/A N/A

Obtains sensitive information copied to the device clipboard

collection credential_access impact
Description Indicator Process Target
Framework service call android.content.IClipboard.addPrimaryClipChangedListener N/A N/A

Queries the phone number (MSISDN for GSM devices)

discovery

Acquires the wake lock

Description Indicator Process Target
Framework service call android.os.IPowerManager.acquireWakeLock N/A N/A

Makes use of the framework's foreground persistence service

evasion persistence
Description Indicator Process Target
Framework service call android.app.IActivityManager.setServiceForeground N/A N/A

Queries information about the current Wi-Fi connection

discovery
Description Indicator Process Target
Framework service call android.net.wifi.IWifiManager.getConnectionInfo N/A N/A

Reads information about phone network operator.

discovery

Schedules tasks to execute at a specified time

execution persistence
Description Indicator Process Target
Framework service call android.app.job.IJobScheduler.schedule N/A N/A

Uses Crypto APIs (Might try to encrypt user data)

impact
Description Indicator Process Target
Framework API call javax.crypto.Cipher.doFinal N/A N/A

Checks CPU information

Description Indicator Process Target
File opened for read /proc/cpuinfo N/A N/A

Checks memory information

Description Indicator Process Target
File opened for read /proc/meminfo N/A N/A

Processes

com.tencent.mm

Network

Country Destination Domain Proto
GB 172.217.16.238:443 tcp
N/A 224.0.0.251:5353 udp
GB 172.217.16.238:443 tcp
GB 216.58.201.106:443 tcp
GB 216.58.201.106:443 tcp
US 1.1.1.1:53 ssl.google-analytics.com udp
GB 216.58.201.104:443 ssl.google-analytics.com tcp
US 1.1.1.1:53 url_connection udp
GB 172.217.169.68:443 tcp
GB 172.217.169.68:443 tcp

Files

/system_ext/framework/androidx.window.sidecar.jar

MD5 bdf3529e80318eb14e53a5bf3720c10d
SHA1 25c9ace4b1af6e80ebb2572345972c56505969ba
SHA256 bbc8300dd1e9cd08de8f66560c1ac2c928615b72b51cef9649f88974f586d64b
SHA512 48b9c2d01171bb651b9b54826baa51f4add48431a3efd8ceb5f7cc3bcd6f8f37edf47fabb24349dd15b3a02329cd450f90a8d164bf4f8dfae554bf3b35a8a55b

/data/user/0/com.tencent.mm/no_backup/androidx.work.workdb-journal

MD5 eb19d3d5bb67ee41329e88bc7fe69126
SHA1 64f63032d11cdead5c0f0563f06a6f9862e81359
SHA256 60158f0956f17cd7a9d4818e053cd6fab8b43b73beb3e1581eff4eb361b6112c
SHA512 1ef5843095787bd0c7425368842ce03cd1ed3b1e5f05d01690f160b0766f6b75ea480dfd25e428ccb0e6e009d9831c1927e50b12d0a49ac4c6362662bf2870fd

/data/user/0/com.tencent.mm/no_backup/androidx.work.workdb

MD5 7e858c4054eb00fcddc653a04e5cd1c6
SHA1 2e056bf31a8d78df136f02a62afeeca77f4faccf
SHA256 9010186c5c083155a45673017d1e31c2a178e63cc15a57bbffde4d1956a23dad
SHA512 d0c7a120940c8e637d5566ef179d01eff88a2c2650afda69ad2a46aad76533eaace192028bba3d60407b4e34a950e7560f95d9f9b8eebe361ef62897d88b30cb

/data/user/0/com.tencent.mm/no_backup/androidx.work.workdb-shm

MD5 bb7df04e1b0a2570657527a7e108ae23
SHA1 5188431849b4613152fd7bdba6a3ff0a4fd6424b
SHA256 c35020473aed1b4642cd726cad727b63fff2824ad68cedd7ffb73c7cbd890479
SHA512 768007e06b0cd9e62d50f458b9435c6dda0a6d272f0b15550f97c478394b743331c3a9c9236e09ab5b9cb3b423b2320a5d66eb3c7068db9ea37891ca40e47012

/data/user/0/com.tencent.mm/no_backup/androidx.work.workdb-wal

MD5 e4d283788ac8e33a88ae4ce309a3c5fd
SHA1 ae5b7c2863e9d55737eefff4aacdd9c8253a9266
SHA256 6fb1bac128b78778b06a052f265e29d5ada853082e71ee3809c8b08b6b1c69f0
SHA512 8ce2d53045fbe5ab3a83e3cd74331eba5bc9e4c31d9ded5b4ac77389c10adf0d0a4d24c5cfcf9b492be73d0165e838409d3da237b22cb5e01471cae0706ef840

/data/user/0/com.tencent.mm/no_backup/androidx.work.workdb-wal

MD5 7de83730a1018b454daf12d39931dd7d
SHA1 db1e6bbbc4ed8daef96a513eff698745cb36a29a
SHA256 a7f15d50d91025f9c3a71e630ee21dac5dee1add5f2b263a23a1e43adc2c36b5
SHA512 64580c208f452974d9541940e455e13011a46e19c8d03e98aa3c80a1176373825d925250d32447b0f91a1ce1bbac57235b1b70d29086b666a6d420728eb71c7c

/data/user/0/com.tencent.mm/no_backup/androidx.work.workdb-wal

MD5 1aba0ff545d7877d29c8496b5cd4135a
SHA1 3d3191e5dc0ae87d984d5ac6542e5caf2ce0e19b
SHA256 f2c778dd3047055a5037e625846394e6583a69bb8a27a27c3d282a0c9c8f25a8
SHA512 14465bb62cfbf86140293b1cc7468fdca0310de61821008e74087ff9d071f7930d4378b022aeefa075cc3ad626ab157c5caa11415750d5cc2041bb9902b491ea