APP security detection method, device and medium

DPI-based app security detection identifies unauthorized data uploads by clustering and analyzing network data, ensuring user privacy and enhancing security.

CN112446028BActive Publication Date: 2024-12-06CHINA TELECOM CORP LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN201910807445.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-29
Publication Date
2024-12-06
Estimated Expiration
2039-08-29

AI Technical Summary

Technical Problem

There is no effective detection technology to determine if mobile phone apps are uploading user data without permission.

Method used

Perform DPI detection on network data to obtain DPI information, cluster this information to identify non-user initiated data, and judge the security of the app based on upload frequency, total data, and amount of data uploaded.

Benefits of technology

Detects unauthorized data uploads by apps, preventing personal information leakage and enhancing user privacy and experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112446028B_ABST
    Figure CN112446028B_ABST
Patent Text Reader

Abstract

The present disclosure provides an APP security detection method, device and storage medium, wherein the method includes: performing DPI detection on network data corresponding to the APP to obtain the DPI information of the APP; performing clustering processing on the DPI information to obtain DPI subset data for characterizing network data not actively initiated by the user; judging the security of the APP based on the DPI subset data. The APP security detection method, device and storage medium disclosed in the present disclosure can detect whether the mobile phone APP privately uploads data without the user's permission, can prevent the material and spiritual losses caused by the leakage of the user's personal information, improve the security of personal information in the terminal, and enhance the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technologies, and in particular to an APP security detection method, device and medium. Background Art

[0002] Mobile phones store user data, such as user information, call logs, text messages, online banking passwords, pictures, videos, etc., or various social apps and chat apps installed on the phone that involve personal data. Some apps installed on mobile phones sometimes upload user data without the user's permission. For example, after a user finishes chatting about a certain type of food through a chat app, some apps installed on the phone will recommend stores related to this type of food to the user in a short period of time. At present, there is no effective detection technology solution for whether mobile phone apps upload user data privately. Summary of the invention

[0003] In view of this, a technical problem to be solved by the present invention is to provide an APP security detection method, device and medium.

[0004] According to one aspect of the present disclosure, there is provided an APP security detection method, including: performing DPI detection on network data corresponding to the APP to obtain DPI information of the APP; performing clustering processing on the DPI information to obtain DPI subset data for characterizing network data not actively initiated by the user; and judging the security of the APP based on the DPI subset data.

[0005] Optionally, judging the security of the APP based on the DPI subset data includes: obtaining non-actively uploaded data information of the APP within a unit time based on the DPI subset data; and judging the security of the APP according to the non-actively uploaded data information.

[0006] Optionally, the non-actively uploaded data information of the APP includes: upload frequency, total uploaded data and amount of data uploaded each time; the method also includes: judging the security of the APP based on at least one of the upload frequency, total uploaded data and amount of data uploaded each time.

[0007] Optionally, judging the security of the APP based on at least one of the upload frequency, the total amount of uploaded data and the amount of data uploaded each time includes: setting data thresholds corresponding to the upload frequency, the total amount of uploaded data and the amount of data uploaded each time, respectively; if at least one of the upload frequency, the total amount of uploaded data and the amount of data uploaded each time is greater than the corresponding data threshold, determining that the APP is an unsafe APP.

[0008] Optionally, a reminder message is generated based on the name of the unsafe APP and the non-actively uploaded data information; and the reminder message is sent to a terminal on which the unsafe APP is installed.

[0009] Optionally, obtain DPI information of the data uploaded and downloaded by the APP; organize the DPI information of the data uploaded and downloaded by the APP to generate a DPI information matrix; wherein the dimensions of the DPI information matrix include: the time since the last upload or download of data, the time since the next upload or download of data, and the number of bytes uploaded or downloaded this time; each row of the DPI information matrix corresponds to data uploaded or downloaded once by the APP, and the index of each row of the DPI information matrix is ​​set to the start time of a data upload or download of the APP.

[0010] Optionally, the algorithm used for clustering the DPI information includes: K-Means clustering algorithm; the DPI subset data includes: non-user actively downloaded DPI data and non-user actively uploaded DPI data.

[0011] According to another aspect of the present disclosure, there is provided an APP security detection device, including: a DPI detection module, used to perform DPI detection on network data corresponding to the APP to obtain DPI information of the APP; a clustering processing module, used to perform clustering processing on the DPI information to obtain DPI subset data for characterizing network data not actively initiated by the user; and a security judgment module, used to judge the security of the APP based on the DPI subset data.

[0012] Optionally, the security judgment module is used to obtain non-actively uploaded data information of the APP within a unit time based on the DPI subset data; and judge the security of the APP according to the non-actively uploaded data information.

[0013] Optionally, the non-actively uploaded data information of the APP includes: upload frequency, total uploaded data and amount of data uploaded each time; the security judgment module is used to judge the security of the APP based on at least one of the upload frequency, total uploaded data and amount of data uploaded each time.

[0014] Optionally, the security judgment module is used to set data thresholds corresponding to the upload frequency, the total amount of uploaded data and the amount of data uploaded each time, respectively; if at least one of the upload frequency, the total amount of uploaded data and the amount of data uploaded each time is greater than the corresponding data threshold, the APP is determined to be an unsafe APP.

[0015] Optionally, the security reminder module is used to generate reminder information based on the name of the unsafe APP and the non-actively uploaded data information; and send the reminder information to a terminal on which the unsafe APP is installed.

[0016] Optionally, the DPI detection module is used to obtain DPI information of the data uploaded and downloaded by the APP; organize the DPI information of the data uploaded and downloaded by the APP to generate a DPI information matrix; wherein the dimensions of the DPI information matrix include: the time since the last upload or download of data, the time since the next upload or download of data, and the number of bytes uploaded or downloaded this time; each row of the DPI information matrix corresponds to data uploaded or downloaded once by the APP, and the index of each row of the DPI information matrix is ​​set to the start time of a data upload or download of the APP.

[0017] According to another aspect of the present disclosure, there is provided an APP security detection device, including: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the method as described above based on instructions stored in the memory.

[0018] According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the instructions are executed by a processor to perform the above method.

[0019] The APP security detection method, device and storage medium disclosed in the present invention can detect whether the mobile phone APP uploads data privately without the user's permission, thereby preventing material and spiritual losses caused by the leakage of the user's personal information, improving the security of personal information in the terminal, and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0021] Figure 1 The following is a flow chart of an embodiment of an APP security detection method according to the present disclosure;

[0022] Figure 2 It is a flowchart of another embodiment of the APP security detection method according to the present disclosure;

[0023] Figure 3 This is a schematic diagram of the result of clustering DPI information using the K-Means clustering algorithm;

[0024] Figure 4 Schematic diagram of a module of an embodiment of an APP security detection device according to the present disclosure;

[0025] Figure 5 Schematic diagram of modules of another embodiment of the APP security detection device according to the present disclosure;

[0026] Figure 6 It is a module diagram of another embodiment of the APP security detection device according to the present disclosure. DETAILED DESCRIPTION

[0027] The present disclosure is described more fully below with reference to the accompanying drawings, in which exemplary embodiments of the present disclosure are described. The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0028] Figure 1 FIG. 1 is a flow chart of an embodiment of an APP security detection method according to the present disclosure, as shown in FIG. Figure 1 As shown:

[0029] Step 101: Perform DPI detection on network data corresponding to the APP to obtain DPI information of the APP.

[0030] APP is a mobile phone software that can provide users with a richer user experience. The network data corresponding to APP is the network data uploaded or downloaded through APP. DPI (Deep Packet Inspection) is a deep detection technology based on data packets. DPI uses a protocol identification technology. On the basis of analyzing the header, it adds analysis of the application layer. It is a traffic detection and control technology based on the application layer.

[0031] When IP data packets, TCP or UDP data streams pass through network devices based on DPI technology, DPI technology divides the data packets on the network into several application flows according to the five-tuple (source address, destination address, source port, destination port, and protocol type). The application layer information is reorganized by deeply reading the content of the IP packet payload to identify the application corresponding to the application flow. DPI technology can detect the content and payload of the data packet, and can extract content-level information. By performing DPI detection on network data, the DPI information of the APP, namely DPI data, is obtained.

[0032] Step 102: cluster the DPI information to obtain DPI subset data for characterizing network data not actively initiated by the user.

[0033] The DPI subset data used to characterize network data not initiated by users includes: DPI data not actively downloaded by users, DPI data not actively uploaded by users, etc. Clustering refers to the analysis and processing process of grouping a collection of physical or abstract objects into multiple classes consisting of similar objects. Clustering is performed on DPI information to classify DPI information into different classes or clusters. DPI information in the same cluster has great similarities, while DPI information between different clusters has great differences.

[0034] The clustering results include: DPI subset data for characterizing network data not initiated by users, and DPI subset data for characterizing network data initiated by users. The algorithm used for clustering DPI information can adopt various existing algorithms, such as K-Means clustering algorithm.

[0035] Step 103: Determine the security of the APP based on the DPI subset data.

[0036] In one embodiment, the DPI information of the APP upload and download data is obtained, and the DPI information of the APP upload and download data is sorted to generate a DPI information matrix. The dimensions of the DPI information matrix include: the time from the last upload or download of data, the time from the next upload or download of data, and the number of bytes uploaded or downloaded this time. Each row of the DPI information matrix corresponds to the data uploaded or downloaded once by the APP, and the index of each row of the DPI information matrix is ​​set to the start time of a data upload or download of the APP. The DPI information matrix can be clustered to obtain DPI subset data for characterizing network data that is not actively initiated by the user.

[0037] There are many ways to judge the security of an APP based on DPI subset data. For example, based on the DPI subset data, obtain the non-actively uploaded data information of the APP in a unit time, and judge the security of the APP based on the non-actively uploaded data information. The unit time can be 1 day, two days, etc. The non-actively uploaded data information of the APP includes the upload frequency, the total amount of uploaded data, and the amount of data uploaded each time; the security of the APP is judged based on at least one of the upload frequency, the total amount of uploaded data, and the amount of data uploaded each time.

[0038] Figure 2 FIG. 1 is a flow chart of another embodiment of the APP security detection method according to the present disclosure, as shown in FIG. Figure 2 As shown:

[0039] Step 201, based on the DPI subset data, obtain the non-active data upload information of the APP in a unit time, the non-active data upload information of the APP includes: upload frequency, total uploaded data and data upload amount each time, etc.

[0040] Step 202, respectively set data thresholds corresponding to the upload frequency, the total amount of uploaded data, and the amount of data uploaded each time.

[0041] Step 203: If at least one of the upload frequency, the total amount of uploaded data, and the amount of data uploaded each time is greater than the corresponding data threshold, the APP is determined to be an unsafe APP.

[0042] In one embodiment, the DPI information of multiple users, multiple terminals, multiple versions, and all time periods of an APP is collected, and the DPI information is aggregated using a clustering algorithm model to obtain DPI subset data of an APP in different time periods, different versions, different terminals, and different users.

[0043] The aggregated DPI subset data is divided into two categories: one is the DPI subset data of data actively initiated by users, and the other is the DPI subset data of data not actively initiated by users. By classifying the information collected through DPI into the above two categories, it is possible to identify which communications are not actively initiated by users. Based on the number of transmissions and the amount of data each time, the possibility of private transmission of user privacy can be inferred. Reminder information is generated based on the name of the unsafe APP and the information of non-actively uploaded data, and the reminder information is sent to the terminal where the unsafe APP is installed. The reminder information can be sent by SMS or other means.

[0044] In one embodiment, for a certain mobile phone APP, the DPI information of the uploaded and downloaded data of the APP is obtained (filtered) through the DPI technology. The DPI information includes multi-user, multi-terminal, multi-version, and full-time data. The DPI information is processed into a three-dimensional matrix. The format of the three-dimensional matrix is ​​shown in Table 1 below:

[0045] Index lastTime nextTime byte

[0046] Table 1 - Matrix format

[0047] Index: Start time collected by DPI. The index value is a timestamp (in milliseconds and a 13-bit integer) plus an identifier. Identifier 1 is for upload and identifier 2 is for download, a total of 14 bits. The first dimension lastTime: the time from the last upload of data (milliseconds), the second dimension nextTime: the time from the next upload of data (milliseconds), and the third dimension byte: the number of bytes uploaded this time (byte).

[0048] The k-means clustering algorithm divides data objects with high similarity into the same cluster according to the similarity principle. The k in the k-means algorithm represents the number of clusters, and means represents the mean of the data objects in the cluster. The k-means algorithm is also called the k-means algorithm. The k-means algorithm is a partition-based clustering algorithm that uses distance as the standard for measuring the similarity between data objects. That is, the smaller the distance between data objects, the higher their similarity, and the more likely they are in the same cluster. The K-Means clustering algorithm can be used to achieve aggregation classification. According to upload and download, it can be divided into four small clusters, such as Figure 3 As shown, the first cluster: users actively upload, the second cluster: non-users actively upload, the third cluster: users actively download, and the fourth cluster: non-users actively download.

[0049] For DPI data that is not actively uploaded by users, statistics are collected on daily upload frequency, total uploaded data, and average of each uploaded data volume. Statistics are collected on all APPs, and APPs of the same type are sorted by the above three dimensions. For APPs whose upload frequency, uploaded data volume, and average are significantly higher than those of APPs of the same type, if there is no reasonable explanation (for example, WeChat, even if the upload frequency is high and the data volume is large, it can be considered reasonable because users use it frequently), it is considered that there is a possibility of privately uploading user data without user permission, and the larger the value, the greater the possibility. If at least one of the upload frequency, total uploaded data, and each uploaded data volume is greater than the corresponding data threshold, the APP is determined to be an unsafe APP. The name of the unsafe APP and the statistical results of the uploaded data are sent to the corresponding user as a reminder.

[0050] In one embodiment, Figure 4 As shown, the present disclosure provides an APP security detection device 40, including: a DPI detection module 41, a clustering processing module 42 and a security judgment module 43. The DPI detection module 41 performs DPI detection on the network data corresponding to the APP to obtain the DPI information of the APP. The clustering processing module 42 performs clustering processing on the DPI information to obtain DPI subset data for characterizing network data not actively initiated by the user. The security judgment module 43 judges the security of the APP based on the DPI subset data.

[0051] In one embodiment, the DPI detection module 41 obtains the DPI information of the APP upload and download data, organizes the DPI information of the APP upload and download data, and generates a DPI information matrix. The security judgment module 43 obtains the non-active upload data information of the APP in a unit time based on the DPI subset data, and judges the security of the APP according to the non-active upload data information. The non-active upload data information of the APP includes the upload frequency, the total amount of uploaded data, and the amount of data uploaded each time. The security judgment module 43 judges the security of the APP based on at least one of the upload frequency, the total amount of uploaded data, and the amount of data uploaded each time.

[0052] In one embodiment, the security judgment module 43 sets data thresholds corresponding to the upload frequency, the total amount of uploaded data, and the amount of data uploaded each time, respectively. If at least one of the upload frequency, the total amount of uploaded data, and the amount of data uploaded each time is greater than the corresponding data threshold, the security judgment module 43 determines that the APP is an unsafe APP.

[0053] like Figure 5 As shown, the APP security detection device 40 also includes a security reminder module 44. The security reminder module 44 generates reminder information based on the name of the unsafe APP and the non-actively uploaded data information, and sends the reminder information to the terminal where the unsafe APP is installed.

[0054] Figure 6 FIG. 1 is a schematic diagram of a module of another embodiment of an APP security detection device according to the present disclosure. Figure 6 As shown, the device may include a memory 61, a processor 62, a communication interface 63 and a bus 64. The memory 61 is used to store instructions, the processor 62 is coupled to the memory 61, and the processor 62 is configured to execute the above-mentioned APP security detection method based on the instructions stored in the memory 61.

[0055] The memory 61 may be a high-speed RAM memory, a non-volatile memory, etc. The memory 61 may also be a memory array. The memory 61 may also be divided into blocks, and the blocks may be combined into virtual volumes according to certain rules. The processor 62 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the APP security detection method disclosed herein.

[0056] In one embodiment, the present disclosure provides a computer-readable storage medium storing computer instructions, and the instructions are executed by a processor to perform the above method.

[0057] The APP security detection method, device and medium in the above-mentioned embodiments can detect whether the mobile phone APP uploads data privately without the user's permission, thereby preventing material and spiritual losses caused by the leakage of the user's personal information, improving the security of personal information in the terminal, and enhancing the user experience.

[0058] The method and system of the present disclosure may be implemented in many ways. For example, the method and system of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.

[0059] The description of the present disclosure is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the present disclosure to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present disclosure, and to enable those of ordinary skill in the art to understand the present disclosure and thereby design various embodiments with various modifications suitable for specific uses.

Claims

1. An APP security detection method, comprising: Performing DPI detection on network data corresponding to the APP to obtain DPI information of the APP; The DPI information is clustered to obtain DPI subset data for characterizing network data not actively initiated by the user, including: Obtaining DPI information of the data uploaded and downloaded by the APP, sorting the DPI information of the data uploaded and downloaded by the APP to generate a DPI information matrix; performing clustering processing on the DPI information matrix to obtain the DPI subset data; The dimensions of the DPI information matrix include: the time from the last upload or download of data, the time from the next upload or download of data, and the number of bytes uploaded or downloaded this time; each row of the DPI information matrix corresponds to the data uploaded or downloaded once by the APP; the index of each row of the DPI information matrix is ​​set to the start time of a data upload or download of the APP; Judging the security of the APP based on the DPI subset data includes: Based on the DPI subset data, the non-active uploaded data information of the APP in unit time is obtained, and the non-active uploaded data information of the APP includes the upload frequency, the total amount of uploaded data and the amount of data uploaded each time; the security of the APP is judged according to at least one of the upload frequency, the total amount of uploaded data and the amount of data uploaded each time.

2. The method according to claim 1, wherein judging the security of the APP based on at least one of the upload frequency, the total amount of uploaded data, and the amount of data uploaded each time comprises: respectively setting data thresholds corresponding to the upload frequency, the total amount of uploaded data, and the amount of data uploaded each time; If at least one of the upload frequency, the total amount of uploaded data, and the amount of data uploaded each time is greater than the corresponding data threshold, the APP is determined to be an unsafe APP.

3. The method of claim 2, further comprising: Generate reminder information based on the name of the unsafe APP and the non-actively uploaded data information; The reminder information is sent to the terminal where the unsafe APP is installed.

4. The method of claim 1, further comprising: The algorithm used for clustering the DPI information includes: K-Means clustering algorithm; The DPI subset data includes: DPI data not actively downloaded by the user and DPI data not actively uploaded by the user.

5. An APP security detection device, comprising: A DPI detection module, used to perform DPI detection on network data corresponding to the APP to obtain DPI information of the APP; A cluster processing module, used to perform cluster processing on the DPI information to obtain DPI subset data for characterizing network data not actively initiated by the user; The DPI detection module is used to obtain the DPI information of the data uploaded and downloaded by the APP; the DPI information of the data uploaded and downloaded by the APP is sorted to generate a DPI information matrix; the dimensions of the DPI information matrix include: the time from the last upload or download of data, the time from the next upload or download of data, and the number of bytes uploaded or downloaded this time; each row of the DPI information matrix corresponds to the data uploaded or downloaded once by the APP, and the index of each row of the DPI information matrix is ​​set to the start time of one data upload or download of the APP; The cluster processing module is used to perform cluster processing on the DPI information matrix to obtain the DPI subset data; A security judgment module, used to judge the security of the APP based on the DPI subset data; Among them, the security judgment module is specifically used to obtain the non-actively uploaded data information of the APP within a unit time based on the DPI subset data, and the non-actively uploaded data information of the APP includes the upload frequency, the total amount of uploaded data and the amount of data uploaded each time; the security of the APP is judged based on at least one of the upload frequency, the total amount of uploaded data and the amount of data uploaded each time.

6. The device according to claim 5, wherein: The security judgment module is used to set data thresholds corresponding to the upload frequency, the total amount of uploaded data and the amount of data uploaded each time, respectively; if at least one of the upload frequency, the total amount of uploaded data and the amount of data uploaded each time is greater than the corresponding data threshold, the APP is determined to be an unsafe APP.

7. The apparatus of claim 6, further comprising: A security reminder module, used to generate reminder information based on the name of the unsafe APP and the non-actively uploaded data information; The reminder information is sent to the terminal where the unsafe APP is installed.

8. An APP security detection device, comprising: Memory; and a processor coupled to the memory, wherein the processor is configured to execute the method according to any one of claims 1 to 4 based on instructions stored in the memory.

9. A computer-readable storage medium storing computer instructions, wherein the instructions are executed by a processor to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Communication system, base station, and method for coping with cyber attacks

    CN103348719A

  • Deep packet inspection parsing result sharing / acquiring method, system, and corresponding device thereof

    CN104041095A

  • System and method for network data security analysis based on DPI technology

    CN105491018A

  • Application Identification Method, and Data Mining Method, Apparatus, and System

    US20140188837A1

  • Image processing method and device, terminal, server, and computer-readable storage medium

    WO2019051795A1