1/59

Threat

com.samsung.android.dsms

Dsms

Analyzed on 2022-06-04T09:53:15.542936

4

permissions

0

activities

2

services

1

receivers

5

domains

File sums

MD5 fb6daa9a00b97cd4284d0c4db42bbc9f
SHA1 8bb28d22aff437b24d0f68862be9e8efcf1d8d9f
SHA256 b9fe6eb29f5a138935b6585e17899586e522c992acfa08b94b14bae569a5960a
Size 0.13MB

APKiD

Information computed with APKiD.

/tmp/tmpphay8nzq!classes.dex
compiler
  • unknown (please file detection issue!)

SSdeep

Information computed with ssdeep.

APK file 1536:m+K7CQQDsNx5DapgyQ2xwr+GoY2IgKHMnEFf2rcHyM6ZuYRg1n3kPQBhBEYabKMz:SvQDsNvygD2DXZEFf2rcHonTohBEel8
Manifest 96:L1A1U1vbRxbaWLlSf7/tIZf38t/cl+FU6SqI5Dp1Vv9Fs8MZco:L1RbRt7LlSz/tIZ…
classes.dex 3072:7BNgWvPwedAaKmicP1ALY8ggN32yl3GI2mpwpapF0dPgx/eqRGqMBEqlUiii6IeT…

Dexofuzzy

Information computed with Dexofuzzy.

APK file 192:51IYei9eS9zd5qlyF681206Mi78zk4vT0:52YvkkzThp1crUkV
classes.dex 192:51IYei9eS9zd5qlyF681206Mi78zk4vT0:52YvkkzThp1crUkV

APK details

Information computed with AndroGuard and Pithus.

Package com.samsung.android.dsms
App name Dsms
Version name 2.0.06
Version code 200600000
SDK 26 - 29
UAID 785e84c6dbcfba6b4c2a598e3c3e3dc5018c6d67
Signature Signature V1 Signature V2
Frosting Not frosted
Blocks found within V2 signature:
  • 0x7109871a: Unknown

Certificate details

Information computed with AndroGuard.

MD5 ac4128120937684f45d2dbc15b9d1bcc
SHA1 29c647cbcc9a5fbd6c0c961e05712bd15352a1f5
SHA256 0a012131b1bdf9e80ef97d37f3b48362be363a464c8445ecf83627ebe8493a1e
Issuer Common Name: Samsung Platform Key for non-Galaxy devices, Organizational Unit: Mobile Communications Business, Organization: Samsung Electronics Co. Ltd., Locality: Suwon City, State/Province: Republic of Korea, Country: KR
Not before 2018-11-13T08:18:31+00:00
Not after 2118-11-12T15:00:00+00:00

File Analysis

Information computed with MobSF.

Findings Files
Certificate/Key files hardcoded inside the app. SEC-INF/buildConfirm.crt

Manifest analysis

Information computed with MobSF.

High Service (com.samsung.android.dsms.DsmsUploaderService) is Protected by a permission, but the protection level of the permission should be checked.
Permission: com.samsung.android.dsms.permission.SEND_MESSAGE [android:exported=true]
A Service is found to be shared with other apps on the device therefore leaving it accessible to any other application on the device. It is protected by a permission which is not defined in the analysed application. As a result, the protection level of the permission should be checked where it is defined. If it is set to normal or dangerous, a malicious application can request and obtain the permission and interact with the component. If it is set to signature, only applications signed with the same certificate can obtain the permission.

Receivers

Information computed with AndroGuard.

com.samsung.android.dsms.DsmsWakeUpReceiver

Services

Information computed with AndroGuard.

com.samsung.android.dsms.DsmsUploaderService
com.sec.android.diagmonagent.log.ged.scheduler.GEDJobService

Sample timeline

Oldest file found in APK Jan. 1, 2009, midnight
Latest file found in APK Jan. 1, 2009, midnight
Certificate valid not before Nov. 13, 2018, 8:18 a.m.
First submission on VT Aug. 16, 2021, 5:52 a.m.
Last submission on VT Aug. 16, 2021, 5:52 a.m.
Upload on Pithus June 4, 2022, 9:53 a.m.
Certificate valid not after Nov. 12, 2118, 3 p.m.

NIAP analysis

Information computed with MobSF.

FCS_RBG_EXT.1.1 The application invoke platform-provided DRBG functionality for its cryptographic operations.
Random Bit Generation Services
FCS_STO_EXT.1.1 The application does not store any credentials to non-volatile memory.
Storage of Credentials
FCS_CKM_EXT.1.1 The application generate no asymmetric cryptographic keys.
Cryptographic Key Generation Services
FDP_DEC_EXT.1.1 The application has access to ['network connectivity'].
Access to Platform Resources
FDP_DEC_EXT.1.2 The application has access to no sensitive information repositories.
Access to Platform Resources
FDP_NET_EXT.1.1 The application has no network communications.
Network Communications
FDP_DAR_EXT.1.1 The application does not encrypt files in non-volatile memory.
Encryption Of Sensitive Application Data
FMT_MEC_EXT.1.1 The application invoke the mechanisms recommended by the platform vendor for storing and setting configuration options.
Supported Configuration Mechanism
FTP_DIT_EXT.1.1 The application does encrypt some transmitted data with HTTPS/TLS/SSH between itself and another trusted IT product.
Protection of Data in Transit
FCS_RBG_EXT.2.1
FCS_RBG_EXT.2.2
The application perform all deterministic random bit generation (DRBG) services in accordance with NIST Special Publication 800-90A using Hash_DRBG. The deterministic RBG is seeded by an entropy source that accumulates entropy from a platform-based DRBG and a software-based noise source, with a minimum of 256 bits of entropy at least equal to the greatest security strength (according to NIST SP 800-57) of the keys and hashes that it will generate.
Random Bit Generation from Application
FCS_COP.1.1(2) The application perform cryptographic hashing services in accordance with a specified cryptographic algorithm SHA-1/SHA-256/SHA-384/SHA-512 and message digest sizes 160/256/384/512 bits.
Cryptographic Operation - Hashing
FCS_HTTPS_EXT.1.1 The application implement the HTTPS protocol that complies with RFC 2818.
HTTPS Protocol
FCS_HTTPS_EXT.1.2 The application implement HTTPS using TLS.
HTTPS Protocol
FIA_X509_EXT.2.1 The application use X.509v3 certificates as defined by RFC 5280 to support authentication for HTTPS , TLS.
X.509 Certificate Authentication

Code analysis

Information computed with MobSF.

Low
CVSS:7.5
The App logs information. Sensitive information should never be logged.
MASVS: MSTG-STORAGE-3
CWE-532 Insertion of Sensitive Information into Log File
Files:
 com/sec/android/diagmonagent/common/a/a.java
com/samsung/android/dsms/f.java
a/b/a/a/a/a/a/a/c.java
com/sec/android/diagmonagent/log/ged/scheduler/GEDJobService.java
com/sec/android/diagmonagent/log/ged/scheduler/b.java
a/b/a/a/a/a/c/b.java
a/b/a/a/a/a/b/b/a/a.java
com/sec/android/diagmonagent/common/a/c.java
a/a/a/a/a/a/i/a.java
a/b/a/a/a/a/b/b/a/b.java
Info
CVSS:0
This App uses SSL certificate pinning to detect or prevent MITM attacks in secure communication channel.
MASVS: MSTG-NETWORK-4
Files:
 a/a/a/a/a/a/e/c.java
Medium
CVSS:5.9
App uses SQLite Database and execute raw SQL query. Untrusted user input in raw SQL queries can cause SQL Injection. Also sensitive information should be encrypted and written to the database.
CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
M7: Client Code Quality
Files:
 a/a/a/a/a/a/f/c/a/b.java
a/b/a/a/a/a/a/c.java
a/a/a/a/a/a/f/c/a/a.java
Pygal Germany: 100 Ireland: 100 United States: 300

Map computed by Pithus.

Domains analysis

Information computed with MobSF.

DE diagmon-policy.samsungdm.com 143.204.98.65
US regi.di.atlas.samsung.com 34.102.190.55
US dc.di.atlas.samsung.com 34.120.24.208
US stg-api.di.atlas.samsung.com 34.149.149.71
IE diagmon-serviceapi.samsungdm.com 34.252.177.154

URL analysis

Information computed with MobSF.

https://diagmon-serviceapi.samsungdm.com
https://diagmon-policy.samsungdm.com
Defined in a/b/a/a/a/a/c/d.java
https://diagmon-serviceapi.samsungdm.com
https://diagmon-policy.samsungdm.com
Defined in a/b/a/a/a/a/c/d.java
https://stg-api.di.atlas.samsung.com
https://regi.di.atlas.samsung.com
https://dc.di.atlas.samsung.com
Defined in a/a/a/a/a/a/a/c.java
https://stg-api.di.atlas.samsung.com
https://regi.di.atlas.samsung.com
https://dc.di.atlas.samsung.com
Defined in a/a/a/a/a/a/a/c.java
https://stg-api.di.atlas.samsung.com
https://regi.di.atlas.samsung.com
https://dc.di.atlas.samsung.com
Defined in a/a/a/a/a/a/a/c.java

Permissions analysis

Information computed with MobSF.

Low android.permission.WAKE_LOCK prevent phone from sleeping
Allows an application to prevent the phone from going to sleep.
Low android.permission.RECEIVE_BOOT_COMPLETED automatically start at boot
Allows an application to start itself as soon as the system has finished booting. This can make it take longer to start the phone and allow the application to slow down the overall phone by always running.
Low android.permission.ACCESS_NETWORK_STATE view network status
Allows an application to view the status of all networks.
com.sec.spp.permission.TOKEN_26d843f43c70f1069a5f52115888024ba1c80785475d7aa4ebe96969dd8f… Unknown permission
Unknown permission from android reference

Threat analysis

Information computed with Quark-Engine.

Confidence:
100%
Connect to a URL and receive input stream from the server
Confidence:
100%
Method reflection
Confidence:
100%
Put data in cursor to JSON object
Confidence:
100%
Connect to a URL and get the response code
Confidence:
100%
Monitor the broadcast action events (BOOT_COMPLETED)
Confidence:
100%
Connect to a URL and set request method
Confidence:
100%
Get resource file from res/raw directory
Confidence:
80%
Read data and put it into a buffer stream
Confidence:
80%
Read file and put it into a stream
Confidence:
80%
Put buffer stream (data) to JSON object
Confidence:
80%
Read file into a stream and put it into a JSON object

Behavior analysis

Information computed with MobSF.

Base64 encode
       a/b/a/a/a/a/c/d.java
Get sim provider details
       a/a/a/a/a/a/b/a.java
a/b/a/a/a/a/c/a.java
Get system service
       a/a/a/a/a/a/d/d.java
com/samsung/android/dsms/s.java
com/sec/android/diagmonagent/log/ged/scheduler/b.java
a/a/a/a/a/a/b/a.java
a/b/a/a/a/a/c/a.java
a/a/a/a/a/a/f/a/c.java
Http connection
       a/b/a/a/a/a/b/b/a/c.java
a/b/a/a/a/a/b/b/a/a.java
a/b/a/a/a/a/b/b/a/b.java
Https connection
       a/a/a/a/a/a/f/a/a.java
a/a/a/a/a/a/d/a.java
a/a/a/a/a/a/h/a.java
Inter process communication
       com/samsung/android/dsms/a/a.java
com/samsung/android/dsms/DsmsWakeUpReceiver.java
a/a/a/a/a/a/d/c.java
com/samsung/android/dsms/DsmsUploaderService.java
com/samsung/android/dsms/a.java
a/b/a/a/b/b.java
a/a/a/a/a/a/d/d.java
com/samsung/android/dsms/s.java
com/samsung/android/dsms/c.java
a/a/a/a/a/a/i/c.java
a/a/a/a/a/a/f/b/a.java
a/b/a/a/b/a.java
a/a/a/a/a/a/f/b/b.java
com/samsung/android/dsms/b.java
a/a/a/a/a/a/i/e.java
Java reflection
       a/a/a/a/a/a/d/d.java
a/a/a/a/a/a/d/b.java
com/samsung/android/dsms/r.java
Loading native code (shared library)
       com/sec/android/diagmonagent/common/NativeHelper.java
Local file i/o operations
       a/a/a/a/a/a/g/b.java
a/a/a/a/a/a/i/b.java
a/a/a/a/a/a/d/d.java
a/b/a/a/a/a/a/a/c.java
a/b/a/a/a/a/c/c.java
a/a/a/a/a/a/d/b.java
a/a/a/a/a/a/e.java
a/a/a/a/a/a/d/a.java
Message digest
       a/a/a/a/a/a/d/d.java
a/b/a/a/a/a/c/d.java
Sending broadcast
       com/samsung/android/dsms/c.java
Starting service
       a/a/a/a/a/a/f/b/b.java

Control flow graphs analysis

Information computed by Pithus.

The application probably gets different information regarding the telephony capabilities

The application probably gets the network connections information