Method, device, electronic device and medium for identifying illegal operations of application programs
Through static and dynamic detection combined with the risk coefficient assessment model, illegal operations of mobile APPs are identified, the problem of privacy data leakage caused by self-start and associated startup is solved, and the protection of user privacy data and privacy compliance are improved.
Patent Information
- Application Number
- CN202210946199.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-08
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-08-08
AI Technical Summary
During the use of mobile APPs, the background service process awakening and information collection caused by the self-starting and associated startup mechanisms may lead to the leakage of user privacy data, and it is difficult for existing technology to effectively identify illegal operations of applications.
By obtaining the installation file of the target application, perform static and dynamic detection, compare the fitting difference between the static fitting value and the dynamic fitting value, and combine the risk coefficient assessment model to identify the application's illegal operations, including fine-grained analysis processing and permissions The risk coefficient probability value of the operation information determines whether there is any illegal operation.
Effectively identify and prevent application irregularities, improve the protection of user privacy data, prevent information leakage, and enhance privacy compliance.
Smart Images

Figure CN115270123B
Abstract
Description
Background Art
[0002] With the rapid development of information technology in recent years, the era of big data has arrived. While big data brings us information sharing and convenient life, there are also data security issues.
[0003] At present, when using a mobile phone APP (APPlication, application), opening an APP can open other APPs at the same time. This automatic operation has caused users to worry about the theft of information in their mobile phones. In fact, the reason is that in order to ensure that the APP continues to be used by users, it must "show its presence" as much as possible, otherwise users will abandon it or even uninstall it over time. If the APP developer chooses to use a joint wake-up mechanism or other similar mechanisms to "keep it alive", this may cause a large number of service processes to be awakened and retained in the background, resulting in cross-awakening and associated startup between different applications. Based on the analysis of the above technical specifications, after the APP is awakened by self-starting, associated startup, etc., if there is a behavior of collecting personal information through mechanisms such as permissions, and the specific purpose is not clearly stated in the privacy policy and other rules, the frequency of collecting personal information is suspected of exceeding the actual needs of the business function.
[0004] Based on this, how to identify illegal operations of applications to prevent user information leakage has become a technical problem that needs to be solved urgently.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The present disclosure provides a method, device, electronic device and storage medium for identifying illegal operations of an application program, which at least to a certain extent overcome the problem of easy leakage of user privacy data in related technologies.
[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0008] According to one aspect of the present disclosure, a method for identifying illegal operations of an application is provided, comprising: obtaining an installation file of a target application to be detected; detecting a situation in which the installation file of the target application obtains user information, and obtaining a static detection result of the target application; simulating an installation environment of the target application, installing and running the installation file of the target application, detecting a situation in which the running target application obtains user information, and obtaining a dynamic detection result of the target application; and determining illegal operations of the target application based on the static detection result and the dynamic detection result of the target application.
[0009] In one embodiment of the present disclosure, the static detection result includes a static fitting value and permission operation information of the target application, the permission operation information includes multiple permission operations of the target application, and the dynamic detection result includes a dynamic fitting value; based on the static detection result and the dynamic detection result of the target application, determining the illegal operation of the target application, including: comparing a fitting difference between the static fitting value and the dynamic fitting value; when the fitting difference is greater than or equal to a preset difference, determining the illegal operation in the permission operation information of the target application.
[0010] In one embodiment of the present disclosure, when the fitting difference is greater than or equal to the preset difference, determining the illegal operation in the permission operation information of the target application includes: performing fine-grained analysis on the permission operation information of the target application; inputting the permission operation information after the fine-grained analysis into a trained risk coefficient assessment model, and outputting a risk coefficient probability value for each permission operation in the permission operation information; and determining the illegal operation in the permission operation information of the target application based on the risk coefficient probability value for each permission operation in the permission operation information.
[0011] In one embodiment of the present disclosure, performing fine-grained analysis on the permission operation information of the target application includes: performing fine-grained analysis on the permission operation information of the target application using a quadratic difference method.
[0012] In one embodiment of the present disclosure, the permission operation information includes a target permission operation; based on the risk coefficient probability value of each permission operation in the permission operation information, the illegal operation in the permission operation information of the target application is determined, including: when the risk coefficient probability value of the target permission operation is greater than or equal to a preset probability threshold, determining that the target permission operation is a illegal operation.
[0013] In one embodiment of the present disclosure, the trained risk coefficient assessment model is obtained by the following steps, including: obtaining multiple sample authority operations and the risk coefficient probability value corresponding to each sample authority operation; taking the multiple sample authority operations as the input of the risk coefficient assessment model, taking the risk coefficient probability value corresponding to each sample authority operation as the output of the risk coefficient assessment model, training the risk coefficient assessment model, and obtaining the trained risk coefficient assessment model.
[0014] In one embodiment of the present disclosure, after determining the illegal operation of the target application based on the static detection results and dynamic detection results of the target application, the method further includes: determining the user privacy data illegally collected by the target application based on the illegal operation of the target application.
[0015] According to another aspect of the present disclosure, there is provided a device for identifying illegal operations of an application, comprising: an installation file acquisition module, used to acquire the installation file of a target application to be detected; a first detection module, used to detect a situation in which the installation file of the target application acquires user information, and obtains a static detection result of the target application; a second detection module, used to simulate the installation environment of the target application, install and run the installation file of the target application, detect a situation in which the running target application acquires user information, and obtains a dynamic detection result of the target application; and a illegal operation determination module, used to determine the illegal operation of the target application based on the static detection result and the dynamic detection result of the target application.
[0016] In one embodiment of the present disclosure, the static detection result includes a static fitting value and permission operation information of the target application, the permission operation information includes multiple permission operations of the target application, and the dynamic detection result includes a dynamic fitting value; the above-mentioned illegal operation determination module is also used to compare the fitting difference between the static fitting value and the dynamic fitting value; when the fitting difference is greater than or equal to a preset difference, determine the illegal operation in the permission operation information of the target application.
[0017] In one embodiment of the present disclosure, the above-mentioned illegal operation determination module is also used to perform fine-grained analysis on the permission operation information of the target application; input the permission operation information after fine-grained analysis into a trained risk coefficient assessment model, and output the risk coefficient probability value of each permission operation in the permission operation information; based on the risk coefficient probability value of each permission operation in the permission operation information, determine the illegal operations in the permission operation information of the target application.
[0018] In one embodiment of the present disclosure, the illegal operation determination module is further configured to perform fine-grained analysis on the permission operation information of the target application using a quadratic difference method.
[0019] In one embodiment of the present disclosure, the permission operation information includes a target permission operation; the above-mentioned illegal operation determination module is also used to determine that the target permission operation is a illegal operation when the risk coefficient probability value of the target permission operation is greater than or equal to a preset probability threshold.
[0020] In one embodiment of the present disclosure, the above-mentioned device also includes a model training module, which is used to obtain multiple sample authority operations and the risk coefficient probability value corresponding to each sample authority operation; use the multiple sample authority operations as the input of the risk coefficient assessment model, use the risk coefficient probability value corresponding to each sample authority operation as the output of the risk coefficient assessment model, train the risk coefficient assessment model, and obtain the trained risk coefficient assessment model.
[0021] In one embodiment of the present disclosure, the above-mentioned device further includes a user privacy data determination module, which is used to determine the user privacy data illegally collected by the target application based on the illegal operation of the target application.
[0022] According to another aspect of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the above-mentioned method for identifying illegal operations of an application program by executing the executable instructions.
[0023] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for identifying illegal operations of an application program is implemented.
[0024] The embodiments of the present disclosure provide a method, device, electronic device and storage medium for identifying illegal operations of an application, wherein the method for identifying illegal operations of an application includes: obtaining the installation file of the target application to be detected; detecting the situation in which the installation file of the target application obtains user information, and obtaining a static detection result of the target application; simulating the installation environment of the target application, installing and running the installation file of the target application, detecting the situation in which the running target application obtains user information, and obtaining a dynamic detection result of the target application; based on the static detection result and the dynamic detection result of the target application, determining the illegal operation of the target application. The present disclosure can identify illegal operations during the operation of an application and improve the protection of user privacy data.
[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0027] Figure 1 A flow chart of a method for identifying illegal operations of an application program in an embodiment of the present disclosure is shown;
[0028] Figure 2 A schematic diagram of a method for identifying illegal operations of an application program in an embodiment of the present disclosure is shown;
[0029] Figure 3A schematic diagram showing another method for identifying illegal operations of an application program in an embodiment of the present disclosure is shown;
[0030] Figure 4 A flow chart of another method for identifying illegal operations of an application program in an embodiment of the present disclosure is shown;
[0031] Figure 5 A flow chart of another method for identifying illegal operations of an application program in an embodiment of the present disclosure is shown;
[0032] Figure 6 A schematic diagram showing a device for identifying illegal operations of an application program in an embodiment of the present disclosure; and
[0033] Figure 7 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0034] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0035] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0036] As mentioned in the above background technology, many companies currently rely on data collection tools such as push notifications to accumulate user raw data and monetize it through upper-level data services. As a business model, it introduces huge data privacy risks to APP business. For example, in the "Developer Agreement" provided by a certain push service, the service provider clearly requires APP developers to inform their APP user subjects in the "Privacy Policy" that they agree that the SDK provider collects and uses their personal information. After the APP is awakened by self-starting, associated startup, etc., if there is a behavior of collecting personal information through mechanisms such as permissions, and the specific purpose is not clearly stated in the privacy policy and other rules, the frequency of collecting personal information is suspected of exceeding the actual needs of business functions. However, Article 4, Point 3 of my country's "Method for Identifying Illegal and Irregular Collection and Use of Personal Information by Apps" points out that the frequency of collecting personal information exceeds the actual needs of business functions, which can be identified as "violating the principle of necessity and collecting personal information that is irrelevant to the services it provides."
[0037] Based on this, the embodiments of the present disclosure provide a method, device, electronic device and storage medium for identifying illegal operations of an application program, which obtain static detection results and dynamic detection results of a target application before and after the application is installed, and determine illegal operations of the target application by analyzing the static detection results and dynamic detection results of the target application. This can identify illegal operations during the operation of the application program and improve the protection of user privacy data.
[0038] The present exemplary implementation is described in detail below with reference to the accompanying drawings and embodiments.
[0039] First, an embodiment of the present disclosure provides a method for identifying illegal operations of an application program, which can be executed by any electronic device with computing and processing capabilities.
[0040] Figure 1 A flow chart of a method for identifying illegal operations of an application program in an embodiment of the present disclosure is shown as follows: Figure 1 As shown, the method for identifying illegal operations of an application provided in the embodiment of the present disclosure includes the following steps:
[0041] S102, obtaining the installation file of the target application to be detected;
[0042] It should be noted that the installation file is the application installation package of the target application, which may be an APK (Android Package), and the installation file of the target application to be detected may be obtained by receiving the APK package of the target application uploaded by the user.
[0043] S104, detecting the situation of obtaining user information by the installation file of the target application, and obtaining a static detection result of the target application;
[0044] It should be noted that the static detection result is a detection result generated by detecting the situation of obtaining user information through the installation file of the target application when the target application is not installed. The static detection result may include various permission operations of the target application and a static fitting value. The static fitting value is used to represent the range value of the user information obtained by the installation file of the target application.
[0045] In one embodiment of the present disclosure, after obtaining the installation file of the target application to be detected, a static detection result is obtained by calculating the intelligent compliance analysis engine based on the installation file and the privacy agreement, and a category identifier of the user personal information mapping can be added to the static detection result.
[0046] In one embodiment of the present disclosure, see Figure 2 As shown in the schematic diagram of a method for identifying illegal operations of an application, the installation file of the target application can also be uploaded to the static detection module. When the installation file is APK, the rule model in the static detection module will analyze the code in the APK, wherein the rule model includes AST (Abstract Syntax Tree), CFG (Control Flow Graph) and DFG (Data Flow Gragh), etc. The static detection result is obtained by analyzing the code of the installation file.
[0047] S106, simulating the installation environment of the target application, installing and running the installation file of the target application, detecting the acquisition of user information by the running target application, and obtaining a dynamic detection result of the target application;
[0048] It should be noted that the dynamic detection result is generated by detecting the situation in which the target application obtains user information while it is running when the target application is installed. The dynamic detection result may include a dynamic fitting value, which is used to represent the range value of the user information obtained by the running target application.
[0049] In one embodiment of the present disclosure, a dynamic detection result can be generated by simulating the real machine environment of the target application, installing and running the installation file of the target application, combining the data obtained by actually operating the target application with the intelligent compliance analysis engine.
[0050] In one embodiment of the present disclosure, see Figure 3 The schematic diagram of another method for identifying illegal operations of an application shown can also be used in the dynamic detection module to preview the target application on a real machine and simulate clicking to run and operate the target application, detect the situation of the running target application obtaining user information according to the monitoring strategy, and generate dynamic detection results.
[0051] S108, determining illegal operations of the target application based on the static detection result and the dynamic detection result of the target application.
[0052] It should be noted that by comparing the static detection results and the dynamic detection results of the target application, it is determined whether the situation of obtaining user information informed by the target application in the installation file is consistent with the situation of obtaining user information during actual operation. For example, the fitting difference between the static fitting value in the static detection result and the dynamic fitting value in the dynamic detection result is compared. When the fitting difference exceeds the preset difference, it is determined that the target application has violated the regulations, and the various permission operations in the static detection results are processed to determine whether the permission operations of the target application are violated regulations.
[0053] The method for identifying illegal operations of an application provided in the embodiment of the present disclosure obtains the installation file of the target application to be detected; detects the situation that the installation file of the target application obtains user information, and obtains the static detection result of the target application; simulates the installation environment of the target application, installs and runs the installation file of the target application, detects the situation that the running target application obtains user information, and obtains the dynamic detection result of the target application; based on the static detection result and the dynamic detection result of the target application, determines the illegal operation of the target application. The present disclosure can identify illegal operations during the operation of the application and improve the protection of user privacy data.
[0054] In one embodiment of the present disclosure, the static detection result includes a static fitting value and permission operation information of the target application, the permission operation information includes multiple permission operations of the target application, and the dynamic detection result includes a dynamic fitting value;
[0055] Can be Figure 4 The steps disclosed in the implementation of the static detection results and dynamic detection results of the target application to determine the illegal operation of the target application, see Figure 4 The flowchart of another method for identifying illegal operations of an application program shown may include:
[0056] S402, comparing the fitting difference between the static fitting value and the dynamic fitting value;
[0057] S404: When the fitting difference is greater than or equal to the preset difference, determine the illegal operation in the permission operation information of the target application.
[0058] It should be noted that the static fitting value is used to indicate the range value of the target application's installation file for obtaining user information; the permission operation information includes a variety of permission operations of the target application, and the dynamic fitting value is used to indicate the range value of the target application in operation for obtaining user information; here, the preset difference can be freely set according to actual needs. For example, the fitting difference is set to 10%. When the fitting difference between the static fitting value and the dynamic fitting value is greater than or equal to 10%, it indicates overfitting, and the rationality risk coefficient of the static detection result is determined to be high, indicating that there are illegal operations in the permission operation information of the target application.
[0059] In one embodiment of the present disclosure, the permission operation information includes any one or more of the permission operations such as excessive authorization, out-of-scope collection, third-party SDK (Software Development Kit) collection, pop-up window interruption, forced authorization, and authorization link dead loop.
[0060] In one embodiment of the present disclosure, the permission operation information can be subjected to fine-grained parsing and processed, and the permission operation information after fine-grained parsing and processed can be input into a risk coefficient assessment model to output a risk coefficient probability value for each permission operation in the permission operation information. Based on the risk coefficient probability value for each permission operation in the permission operation information, illegal operations in the permission operation information can be determined.
[0061] In one embodiment of the present disclosure, before comparing the fitting difference between the static fitting value and the dynamic fitting value, the generalization ability of the static detection result or the dynamic detection result can be detected by the ridge regression method. The generalization ability refers to the adaptability of the machine learning algorithm to fresh samples. The purpose of machine learning is to learn the rules hidden behind the data. For data outside the learning set with the same rule, the trained network can also give appropriate output. This ability is called generalization ability.
[0062] This disclosure simulates the installation environment of the target application. Installing and running the target application is a machine learning process. The reasons for overfitting in machine learning may be as follows:
[0063] 1) The data is noisy (waste data);
[0064] 2) Insufficient training data, limited training data;
[0065] 3) Over-training the model leads to a very complex model.
[0066] Therefore, the ridge regression method can be used to prevent the model from overfitting. The traditional least squares method lacks stability and reliability. In order to solve the above problems, a regularization term can be added to the loss function.
[0067] The ridge regression model formula is as follows:
[0068] ||Xθ-y|| 2 +||Γθ|| 2 (1)
[0069] Where X represents the static detection result or the dynamic detection result, y represents the output prediction result, || || represents the regularization operation, θ represents the fitting hyperparameter, and Γ represents the weight constant;
[0070] The objective training results can be defined to be equal to the fitted values as follows:
[0071] r=aI (2)
[0072] Among them, r represents the training result, a represents the weight of the identity matrix, and I represents the identity matrix.
[0073] The following formula can be used to prevent the model from overfitting:
[0074] θ(a)=(X T X+aI) -1 X T y (3)
[0075] In one embodiment of the present disclosure, Figure 5 The steps disclosed in the embodiment are to determine the illegal operation in the permission operation information of the target application when the fitting difference is greater than or equal to the preset difference, see Figure 5 The flowchart of another method for identifying illegal operations of an application program shown may include:
[0076] S502, performing fine-grained analysis on the permission operation information of the target application;
[0077] S504, inputting the permission operation information after fine-grained analysis into the trained risk coefficient assessment model, and outputting the risk coefficient probability value of each permission operation in the permission operation information;
[0078] S506: Determine the illegal operation in the permission operation information of the target application based on the risk coefficient probability value of each permission operation in the permission operation information.
[0079] In one embodiment of the present disclosure, fine-grained analysis is performed on the permission operation information of the target application, including: performing fine-grained analysis on the permission operation information of the target application using a quadratic difference method.
[0080] It should be noted that in order to make the permission operation information compatible with the risk coefficient assessment model, the data with uneven sampling at different nodes can be interpolated. The quadratic interpolation method is used to interpolate every three adjacent points to obtain the quadratic interpolation, that is, the permission operation information after fine-grained parsing. The permission operation information after fine-grained parsing is evenly spaced and more compatible with the transformer timing processing, which can more realistically restore the missing data in the scene in the static detection results.
[0081] In one embodiment of the present disclosure, the following formula can be used to implement fine-grained analysis and processing of the permission operation information of the target application using the quadratic difference method:
[0082]
[0083] Wherein, Y represents three adjacent permission operations in the permission operation information, x represents the value of the permission operation, and i represents the sequence number of the permission operation.
[0084] In one embodiment of the present disclosure, the permission operation information includes a target permission operation; and based on the risk coefficient probability value of each permission operation in the permission operation information, determining the illegal operation in the permission operation information of the target application includes:
[0085] When the risk coefficient probability value of the target permission operation is greater than or equal to the preset probability threshold, the target permission operation is determined to be an illegal operation.
[0086] It should be noted that the preset probability threshold can be freely set according to actual needs, such as 90%, 80% and 75%, etc. When the risk coefficient probability value of a certain permission operation in the permission operation information exceeds the preset probability threshold, the permission operation is determined to be an illegal operation.
[0087] In one embodiment of the present disclosure, the trained risk factor assessment model is obtained by the following steps, including:
[0088] Obtain multiple sample permission operations and a risk coefficient probability value corresponding to each sample permission operation;
[0089] A plurality of sample permission operations are used as inputs of a risk factor assessment model, a risk factor probability value corresponding to each sample permission operation is used as output of the risk factor assessment model, and the risk factor assessment model is trained to obtain a trained risk factor assessment model.
[0090] It should be noted that for the time dimension of the risk factor assessment model, positional encoding is used for temporal encoding, and attention is used to explore the feature association of the temporal dimension.
[0091] PositionEncoding=cos2(pos / N) (5)
[0092] Among them, N is the adjustable length, PositionEncoding is the position sequence encoding, and pos is the data sequence number;
[0093] Attention_output=Attention(Q,K,V) (6)
[0094] Among them, Q is the query feature map, K is the feature map to be matched, and V is the monitoring data map;
[0095] The Attention calculation formula is as follows:
[0096]
[0097] For the spatial dimension of the risk factor assessment model, multi head attention is used to extract features of different multi-spatial dimensions, which can make the feature extraction more sufficient.
[0098] The characteristics of different permission operations in permission operation information can be extracted by the following formula:
[0099] Headi=Attention(Qi,Ki,Vi) (8)
[0100] MultiHead(Q,K,V)=Concat(head1,...,headh)*WO (9)
[0101] Among them, Headi is the result obtained by temporal attention, and multi-spatial dimension features are fused through MultiHead. Qi is the i-th group of query feature mapping, Ki is the i-th group of feature mapping to be matched, Vi is the i-th group of monitoring data mapping, WO is the feature fusion matrix, MultiHead is multi-head feature fusion; Concat is feature cascade fusion.
[0102] In one embodiment of the present disclosure, after determining the illegal operation of the target application based on the static detection result and the dynamic detection result of the target application, the method further includes:
[0103] Based on the illegal operations of the target application, determine the user privacy data illegally collected by the target application.
[0104] It should be noted that user information of users who use the target application may be collected, the user information may be classified and a unique category identifier may be assigned. The classification of user information and the assignment of a unique category identifier may refer to the following methods:
[0105] Device information: 1-1 = IMEI (International Mobile Equipment Identity), 1-2 = IDFA (Identity for Advertisers), 1-3 = Android ID (Identity document), 1-4 = MAC (Media Access Control Address), 1-5 = OAID (Open Anonymous Device Identifier), 1-6 = IMSI (International Mobile Subscriber Identity);
[0106] Application information: 2-1 = application crash information, 2-2 = notification switch status, 2-3 = software list;
[0107] Device parameters and system information: 3-1 = device type, 3-2 = device model, 3-3 operating system and hardware related information;
[0108] Network information: 4-1 = IP (Internet Protocol) address, 4-2 = WiFi (Wireless Fidelity) information, 4-3 = base station information and other related information;
[0109] Geographic location information category: 5-1 = Geographic location information;
[0110] The # sign represents the line separator and the @ sign represents the level and submodule separator.
[0111] In one embodiment of the present disclosure, after fine-grained analysis of the permission operation information, a category identifier of user information can be added to the abnormal operation in the permission operation information. The added category identifier can be used to accurately locate descriptive information including but not limited to privacy data collection, storage, and third-party SDK use, so as to predict and analyze such problems in actual business.
[0112] In one embodiment of the present disclosure, in order to ensure the privacy compliance and security of APP business, compliance analysis is performed on mobile APP privacy security, personal data collection and use. The present disclosure provides comprehensive privacy compliance detection for applications, ensuring the consistency of formal compliance (privacy policy text compliance) and substantive compliance (code layer compliance), and helping enterprises and developers to identify APP privacy compliance-related risks in advance from multiple dimensions such as personal information collection, permission usage scenarios, and privacy policies, and avoid major risks such as regulatory notifications and application removal. The present disclosure highlights the prominent position of artificial intelligence in APP data privacy and security scenarios.
[0113] Based on the same inventive concept, the present disclosure also provides an application program illegal operation identification device, such as the following embodiment. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0114] Figure 6 A schematic diagram of a device for identifying illegal operations of an application program in an embodiment of the present disclosure is shown. Figure 6 As shown, the device comprises:
[0115] An installation file acquisition module 610 is used to acquire the installation file of the target application to be detected;
[0116] The first detection module 620 is used to detect the situation in which the installation file of the target application obtains user information and obtain a static detection result of the target application;
[0117] The second detection module 630 is used to simulate the installation environment of the target application, install and run the installation file of the target application, detect the situation of the running target application obtaining user information, and obtain the dynamic detection result of the target application;
[0118] The illegal operation determination module 640 is used to determine the illegal operation of the target application based on the static detection result and the dynamic detection result of the target application.
[0119] In one embodiment of the present disclosure, the static detection result includes a static fitting value and permission operation information of the target application, the permission operation information includes multiple permission operations of the target application, and the dynamic detection result includes a dynamic fitting value; the above-mentioned illegal operation determination module 640 is also used to compare the fitting difference between the static fitting value and the dynamic fitting value; when the fitting difference is greater than or equal to the preset difference, the illegal operation in the permission operation information of the target application is determined.
[0120] In one embodiment of the present disclosure, the above-mentioned illegal operation determination module 640 is also used to perform fine-grained analysis and processing on the permission operation information of the target application; the permission operation information after fine-grained analysis and processing is input into a trained risk coefficient assessment model, and the risk coefficient probability value of each permission operation in the permission operation information is output to obtain; based on the risk coefficient probability value of each permission operation in the permission operation information, the illegal operation in the permission operation information of the target application is determined.
[0121] In one embodiment of the present disclosure, the illegal operation determination module 640 is further configured to perform fine-grained analysis on the permission operation information of the target application using a quadratic difference method.
[0122] In one embodiment of the present disclosure, the permission operation information includes a target permission operation; the above-mentioned illegal operation determination module 640 is also used to determine that the target permission operation is a illegal operation when the risk coefficient probability value of the target permission operation is greater than or equal to a preset probability threshold.
[0123] In one embodiment of the present disclosure, the above-mentioned device also includes a model training module, which is used to obtain multiple sample authority operations and the risk coefficient probability value corresponding to each sample authority operation; use the multiple sample authority operations as the input of the risk coefficient assessment model, use the risk coefficient probability value corresponding to each sample authority operation as the output of the risk coefficient assessment model, train the risk coefficient assessment model, and obtain a trained risk coefficient assessment model.
[0124] In one embodiment of the present disclosure, the above-mentioned device further includes a user privacy data determination module, which is used to determine the user privacy data illegally collected by the target application based on the illegal operation of the target application.
[0125] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0126] Refer to the following Figure 7 An electronic device 700 according to this embodiment of the present disclosure is described. Figure 7 The electronic device 700 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0127] like Figure 7As shown, the electronic device 700 is in the form of a general computing device. The components of the electronic device 700 may include but are not limited to: at least one processing unit 710, at least one storage unit 720, and a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710).
[0128] Among them, the storage unit stores program code, and the program code can be executed by the processing unit 710, so that the processing unit 710 executes the steps described in the above "Exemplary Method" section of this specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 710 can execute the following steps of the above method embodiment: obtain the installation file of the target application to be detected; detect the situation of the installation file of the target application obtaining user information, and obtain the static detection result of the target application; simulate the installation environment of the target application, install and run the installation file of the target application, detect the situation of the target application in operation obtaining user information, and obtain the dynamic detection result of the target application; based on the static detection result and dynamic detection result of the target application, determine the illegal operation of the target application.
[0129] The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 7201 and / or a cache storage unit 7202 , and may further include a read-only storage unit (ROM) 7203 .
[0130] The storage unit 720 may also include a program / utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0131] Bus 730 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0132] The electronic device 700 may also communicate with one or more external devices 740 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 700, and / or communicate with any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 750. Furthermore, the electronic device 700 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 760. As shown, the network adapter 760 communicates with other modules of the electronic device 700 via a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0133] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0134] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. A program product capable of implementing the above method of the present disclosure is stored thereon. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.
[0135] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0136] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0137] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0138] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0139] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0140] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0141] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0142] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A method for identifying illegal operations of an application program. It is characterized in that include: Obtain the installation file of the target application to be detected; Detecting the situation of obtaining user information by the installation file of the target application to obtain a static detection result of the target application; Simulating the installation environment of the target application, installing and running the installation file of the target application, detecting the acquisition of user information by the running target application, and obtaining a dynamic detection result of the target application; Determine the illegal operation of the target application based on the static detection result and the dynamic detection result of the target application; The static detection result includes a static fitting value and permission operation information of the target application, the permission operation information includes multiple permission operations of the target application, and the dynamic detection result includes a dynamic fitting value; the static fitting value is used to indicate the range value of the target application's installation file obtaining user information; the dynamic fitting value is used to indicate the range value of the target application obtaining user information in operation; Determining the illegal operation of the target application based on the static detection result and the dynamic detection result of the target application includes: Comparing the fitting difference between the static fitting value and the dynamic fitting value; When the fitting difference is greater than or equal to a preset difference, performing fine-grained analysis on the permission operation information of the target application; The permission operation information after fine-grained analysis is input into the trained risk factor assessment model, and the risk factor probability value of each permission operation in the permission operation information is output; Based on the risk coefficient probability value of each permission operation in the permission operation information, the illegal operation in the permission operation information of the target application is determined.
2. The method for identifying illegal operations of an application according to claim 1, It is characterized in that Perform fine-grained analysis on the permission operation information of the target application, including: The permission operation information of the target application is analyzed and processed in a fine-grained manner using a quadratic difference method.
3. The method for identifying illegal operations of an application according to claim 1, It is characterized in that The permission operation information includes a target permission operation; Determining the illegal operation in the permission operation information of the target application based on the risk coefficient probability value of each permission operation in the permission operation information includes: When the risk coefficient probability value of the target permission operation is greater than or equal to a preset probability threshold, the target permission operation is determined to be an illegal operation.
4. The method for identifying illegal operations of an application according to claim 1, It is characterized in that The trained risk factor assessment model is obtained by the following steps, including: Obtain multiple sample permission operations and a risk coefficient probability value corresponding to each sample permission operation; Taking multiple sample authority operations as input of a risk coefficient assessment model, taking the risk coefficient probability value corresponding to each sample authority operation as output of the risk coefficient assessment model, training the risk coefficient assessment model, and obtaining the trained risk coefficient assessment model.
5. The method for identifying illegal operations of an application according to claim 1, It is characterized in that After determining the illegal operation of the target application based on the static detection result and the dynamic detection result of the target application, the method further includes: Based on the illegal operation of the target application, the user privacy data illegally collected by the target application is determined.
6. A device for identifying illegal operations of an application program, It is characterized in that include: An installation file acquisition module, used to acquire the installation file of the target application to be detected; A first detection module, used to detect the situation in which the installation file of the target application obtains user information, and obtain a static detection result of the target application; A second detection module is used to simulate the installation environment of the target application, install and run the installation file of the target application, detect the situation of the running target application obtaining user information, and obtain the dynamic detection result of the target application; A violation operation determination module, used to determine the violation operation of the target application based on the static detection result and the dynamic detection result of the target application; The static detection result includes a static fitting value and permission operation information of the target application, the permission operation information includes multiple permission operations of the target application, and the dynamic detection result includes a dynamic fitting value; the static fitting value is used to indicate the range value of the target application's installation file obtaining user information; the dynamic fitting value is used to indicate the range value of the target application obtaining user information in operation; Wherein, the illegal operation determination module is also used for: Comparing the fitting difference between the static fitting value and the dynamic fitting value; When the fitting difference is greater than or equal to a preset difference, performing fine-grained analysis on the permission operation information of the target application; The permission operation information after fine-grained analysis is input into the trained risk factor assessment model, and the risk factor probability value of each permission operation in the permission operation information is output; Based on the risk coefficient probability value of each permission operation in the permission operation information, the illegal operation in the permission operation information of the target application is determined.
7. An electronic device, It is characterized in that include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the method for identifying illegal operations of an application program according to any one of claims 1 to 5 by executing the executable instructions.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for identifying illegal operations of an application program according to any one of claims 1 to 5 is implemented.
