Malware Analysis Report

2024-09-09 15:56

Sample ID 240615-137z5awfpc
Target 22353a2f87384ef07cb727cf4ec7f07ec740226a08975134505a32ebaed5fad2.bin
SHA256 22353a2f87384ef07cb727cf4ec7f07ec740226a08975134505a32ebaed5fad2
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

22353a2f87384ef07cb727cf4ec7f07ec740226a08975134505a32ebaed5fad2

Threat Level: Known bad

The file 22353a2f87384ef07cb727cf4ec7f07ec740226a08975134505a32ebaed5fad2.bin was found to be: Known bad.

Malicious Activity Summary

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

Hook

Ermac family

Ermac2 payload

Loads dropped Dex/Jar

Makes use of the framework's Accessibility service

Obtains sensitive information copied to the device clipboard

Queries the phone number (MSISDN for GSM devices)

Declares broadcast receivers with permission to handle system events

Reads information about phone network operator.

Queries the mobile country code (MCC)

Makes use of the framework's foreground persistence service

Queries information about the current Wi-Fi connection

Requests dangerous framework permissions

Acquires the wake lock

Declares services with permission to bind to the system

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:11

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:11

Reported

2024-06-15 22:14

Platform

android-x86-arm-20240611.1-en

Max time kernel

178s

Max time network

131s

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 url_connection udp
GB 216.58.204.78:443 tcp
US 1.1.1.1:53 android.apis.google.com udp
GB 142.250.200.46:443 android.apis.google.com tcp

Files

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

MD5 6994ef6c8c592f38cca4d9816dd8d425
SHA1 42e1e7a213aa6cd6ddc2ab5e4ba22ecdea50a31a
SHA256 9af9f93a6b589323f70b41ce54ddb326a42e50b643fdd307f428a431cfb8ea48
SHA512 c4e05c3c71ecf549ba9b9410a05fd9b9b7b3f59fa94c20443e15f90fb984b2e36b4ec85b871f03129facf0de01f7b057707cae1f58eefb1528cd2c387d3b6a38

/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 317b17b93fb3538b3ea1929ba8b74d70
SHA1 44da0d3fcf46f594429840e0dc43d6bc645b89c7
SHA256 c2f24ce8518a280a296b13a7d8b2f3a9d91ea8ed2e382822aea6bb769c00df91
SHA512 ad7466148854461dc60d537ddd4e58a10ffd4758a0120ac39ea8c42efceb80e781e5880401fb2a659a39eac2146df787df42c66abdce1503533ae1e92dc439a3

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

MD5 70fe4d063980576803104b99bed4cb7c
SHA1 faf045bbd1e99afb954b34462a2784b756b506f0
SHA256 700bb77b707bbbfaac0b8e81723159b04528ab9cec51e78a014deaa644525e8c
SHA512 428921970dacdc20187d065651088fd0448db2c001bce8c2f2837228e442cdd79bfbc21db30e8c5c92f7c90c3898f5ccc32e8911abe7b0120fa3707161d2e79d

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

MD5 c6d22e9eb47bb98d4a0fdd6a26364b64
SHA1 6c4cc0d8852eb3f7e1f7b4349f1bcf78c44146be
SHA256 0d186c8c2e948701873cd14664642ee47cb2e5b4885aa1fa3837a494272afff8
SHA512 846ad820dc57c8808d60daf527bab5cc01f182f6650886d56d0e55e042c149ad5ec4d9699061f26baede2f285ff9ee9a7b5a7bc85cb5cd054b084d3172093f7f

Analysis: behavioral2

Detonation Overview

Submitted

2024-06-15 22:11

Reported

2024-06-15 22:14

Platform

android-x64-20240611.1-en

Max time network

178s

Command Line

N/A

Signatures

N/A

Processes

N/A

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 142.250.200.8:443 ssl.google-analytics.com tcp
GB 216.58.213.14:443 tcp
GB 142.250.178.10:443 tcp
GB 216.58.201.106:443 tcp
BE 173.194.76.188:5228 tcp
US 1.1.1.1:53 semanticlocation-pa.googleapis.com udp
GB 172.217.169.10:443 semanticlocation-pa.googleapis.com tcp
GB 142.250.179.228:443 tcp
GB 142.250.179.228:443 tcp
GB 142.250.178.10:443 semanticlocation-pa.googleapis.com tcp
US 1.1.1.1:53 android.apis.google.com udp
GB 142.250.180.14:443 android.apis.google.com tcp
US 1.1.1.1:53 mdh-pa.googleapis.com udp
GB 172.217.16.234:443 mdh-pa.googleapis.com tcp
US 1.1.1.1:53 safebrowsing.googleapis.com udp
GB 142.250.179.234:443 mdh-pa.googleapis.com tcp
GB 142.250.178.10:443 mdh-pa.googleapis.com tcp
GB 142.250.178.14:443 tcp
GB 216.58.201.98:443 tcp
GB 142.250.179.227:443 tcp
GB 142.250.179.227:443 tcp
US 1.1.1.1:53 www.google.com udp
GB 142.250.180.4:443 www.google.com tcp
US 1.1.1.1:53 g.tenor.com udp
GB 172.217.16.234:443 g.tenor.com tcp
US 1.1.1.1:53 semanticlocation-pa.googleapis.com udp
GB 142.250.178.10:443 semanticlocation-pa.googleapis.com tcp
US 1.1.1.1:53 android.apis.google.com udp
GB 142.250.200.46:443 android.apis.google.com tcp
US 1.1.1.1:53 growth-pa.googleapis.com udp
US 1.1.1.1:53 lh3-dz.googleusercontent.com udp
GB 142.250.179.225:443 lh3-dz.googleusercontent.com tcp
US 1.1.1.1:53 accounts.google.com udp
US 1.1.1.1:53 accounts.google.com udp
BE 66.102.1.84:443 accounts.google.com tcp
US 1.1.1.1:53 i.ytimg.com udp
GB 142.250.180.22:443 i.ytimg.com udp
GB 142.250.180.22:443 i.ytimg.com tcp
US 1.1.1.1:53 www.google.com udp
GB 142.250.179.228:443 www.google.com tcp

Files

N/A

Analysis: behavioral3

Detonation Overview

Submitted

2024-06-15 22:11

Reported

2024-06-15 22:14

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.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

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
N/A 224.0.0.251:5353 udp
GB 142.250.200.10:443 tcp
GB 142.250.200.10:443 tcp
US 1.1.1.1:53 ssl.google-analytics.com udp
GB 216.58.212.232:443 ssl.google-analytics.com tcp
US 1.1.1.1:53 url_connection udp
GB 142.250.187.238:443 tcp
US 1.1.1.1:53 android.apis.google.com udp
GB 142.250.200.46:443 android.apis.google.com tcp
GB 142.250.179.228:443 tcp
GB 142.250.179.228: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 f34053c42bccbaa564a06b14734ee09c
SHA1 c6ce148714e90f178fc5c025092c9da82d3596ea
SHA256 24a39a92ff8fa7ab7ba94647fbb6b9ff2b46f269375cc8c9b0e37e15ecd1fc01
SHA512 3be6600b3c412abb07a88ca32c4a641781bc4934dc2f8a8b66f2f92396cf88c20fb5b56856cc82bdc2c0b5148f08e4951c018f4701eee11eceeaac217047b2b1

/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 17fda786af59a22dc047540788a94d2b
SHA1 0be7ac97efdad94b24413408cc7757311872e9fe
SHA256 e70a23e5d1db080e6ecaf214fcc9fa55c6eba14b044a6f01e08dd998c8c5b0f1
SHA512 3cb3877630395a4c204db1f7ecf26f0634d138f6e19be037c4d97cd844485eb25f8c18e027341d414b3e3d01035c788835c0a2240e0f4755eaa8ee829e39d0e5

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

MD5 a23d9f36a011153ce43650cf1d94ff1b
SHA1 7578063bf69cf2d596ad91de593949866f0745fa
SHA256 187457e3cdb6c822365fd3a8b40765799ffd867b2dde9454d50856d07f5dd862
SHA512 a5a8c65982099e973dba70cbc4b35f179cabddb731f43775c4740be3875340326f7fad34340e939144a3672b8b2117bf21a32581a5088e9bb8ec4a3ecfa4ee51

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

MD5 977794b6311078ec65361c8cd068aa0b
SHA1 6d0247de8615a1ff7f6aff0ba1e609e98edc4f1f
SHA256 9c7b1ddc365e52cd1d23f910796e21ab4f76bf3db8b6814741fe6584bfcddbbe
SHA512 3ad71de70b2c9b97ebef435f4541fc6c698f96c1db5aedcdfc4e4a4b48796a0152c726bed03f0d9ba13f915924894853aceef4a58a3d5c866afed979d2baa15b