Method for detecting application installation package and related products

CN113778877BActive Publication Date: 2024-09-06CHINA FINANCIAL CERTIFICATION AUTHORITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111063907.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-10
Publication Date
2024-09-06
Estimated Expiration
2041-09-10

AI Technical Summary

Technical Problem

The detection process of software development tool kits in the existing technology requires a high technical threshold, is time-consuming and labor-intensive, has low detection efficiency, and has security issues such as code security vulnerabilities and privacy information leakage.

Method used

A detection method that combines static and dynamic methods is used to perform static scanning and detection by obtaining the scanning conditions of the application installation package to be detected, and run it in a sandbox to perform dynamic behavior detection and obtain relevant information and behavior of the software development kit.

Benefits of technology

It effectively lowers the detection technology threshold, improves detection efficiency, and can accurately learn the software development kit and its behavior introduced in the application installation package, thereby enhancing security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113778877B
    Figure CN113778877B
Patent Text Reader

Abstract

The present invention relates to a method, device and computer program product for detecting an application installation package. The method comprises: obtaining an application installation package to be detected; obtaining scanning conditions for a software development toolkit introduced in the application installation package to be detected, so as to perform static scanning detection on the application installation package to be detected based on the scanning conditions; and installing and running the application installation package to be detected in a sandbox to perform dynamic behavior detection on the software development toolkit. The technical solution of the present invention not only effectively reduces the detection technology threshold, but also improves the detection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention generally relates to the field of information security technology. More specifically, the present invention relates to a method, device and computer program product for detecting an application installation package. Background Art

[0002] This section is intended to provide background or context for the embodiments of the invention set forth in the claims. The descriptions herein may include concepts that may be explored, but not necessarily concepts that have been previously thought of or explored. Therefore, unless otherwise noted herein, the content described in this section is not prior art with respect to the specification and claims of this application, and is not admitted to be prior art by inclusion in this section.

[0003] With the rapid development of mobile Internet technology, devices using this technology (such as smart handheld terminal devices) have also become popular. In the relevant technology, in order to improve the development and operation efficiency of mobile application software in the device, it is necessary to introduce a software development kit (Software Development Kit, SDK). In the actual application process, the software development kit is usually directly introduced in the application installation package (such as Android application installation package APK). Although this operation of introducing the software development kit has achieved the improvement of development efficiency and the reduction of development costs, it also has some security issues that will cause more serious impacts on mobile application software users and their providers, and even endanger the industry ecological development of the software development kit. For example, it has code security vulnerabilities and some non-compliant, even malicious collection of user privacy information and other security issues. For this reason, it is urgent to detect the software development kit. However, the detection process of the software development kit in the relevant technology usually requires a high technical threshold, which makes the detection process not only time-consuming and labor-intensive, but also low in detection efficiency. Summary of the invention

[0004] In order to at least solve the technical problems described in the above background technology section, the present invention proposes a solution for detecting application installation packages. Using the solution of the present invention, the relevant information of the software development kit introduced in the application installation package is detected by combining static and dynamic detection methods, which not only effectively lowers the detection technology threshold, but also improves the detection efficiency. In view of this, the present invention provides solutions in the following aspects.

[0005] A first aspect of the present invention provides a method for detecting an application installation package, comprising: obtaining an application installation package to be detected; obtaining scanning conditions for a software development tool kit introduced in the application installation package to be detected, so as to perform static scanning detection on the application installation package to be detected based on the scanning conditions; and installing and running the application installation package to be detected in a sandbox to perform dynamic behavior detection of the software development tool.

[0006] In one embodiment, obtaining scanning conditions about the software development kit introduced in the application installation package to be detected includes: unpacking the application installation package to be detected to obtain an intermediate file; decompiling the intermediate file to obtain a decompiled application installation package; and obtaining the scanning conditions from the decompiled application installation package.

[0007] In one embodiment, the scanning conditions include: to-be-scanned file information indicating a scanning scope; information list rules and dangerous function rules about the software development kit; and source code file path information.

[0008] In one embodiment, unpacking the installation package of the application to be detected to obtain the intermediate file includes: unpacking the installation package of the application to be detected to extract code, manifest file and resource file as the intermediate file.

[0009] In one embodiment, static scanning detection of the application installation package to be detected based on the scanning conditions includes: obtaining a target scanning function about the software development kit; and parsing permission information and feature value information about the software development kit from the decompiled application installation package based on the target scanning function.

[0010] In one embodiment, the sandbox supports the running of the application in the application installation package, and performing dynamic behavior detection on the software development kit includes: obtaining the calling information of the software development kit to the target interface in the sandbox during the running of the application; and detecting the dynamic behavior of the software development kit based on the calling information.

[0011] In one embodiment, obtaining the call information of the target interface in the sandbox includes: obtaining a call stack about the target interface; and obtaining the call information based on the call stack.

[0012] In one embodiment, the method further includes: outputting a static scanning detection result about the application installation package and a dynamic behavior detection result about the software development kit.

[0013] The second aspect of the present invention provides a device, comprising: a processor; and a memory storing computer instructions for detecting an application installation package, wherein when the computer instructions are executed by the processor, the device executes the methods described above and in the following multiple embodiments.

[0014] A third aspect of the present invention provides a computer program product, comprising program instructions for detecting an application installation package, and when the program instructions are executed by a processor, the methods described above and in the following embodiments are implemented.

[0015] By using the solution provided by the present invention, static scanning detection of the application installation package and dynamic behavior detection of the software development kit introduced by it can be realized without introducing complex detection logic, so as to accurately know which software development kits are introduced into the application installation package and the actual behavior of these software development kits. It can be seen that the solution of the present invention can effectively lower the threshold of detection technology and improve detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0017] Figure 1 is a general architecture diagram showing a device capable of executing a solution for detecting an application installation package according to an embodiment of the present invention;

[0018] Figure 2 is a flow chart showing a method for detecting an application installation package according to an embodiment of the present invention;

[0019] Figure 3 is a specific architecture diagram showing a device capable of executing a solution for detecting an application installation package according to an embodiment of the present invention;

[0020] Figure 4 is a flow chart showing a static scanning detection process for an application installation package according to an embodiment of the present invention;

[0021] Figure 5 is a flow chart showing a dynamic behavior detection process for a software development tool according to an embodiment of the present invention;

[0022] Figure 6 is a flowchart illustrating a process of analyzing call information according to an embodiment of the present invention; and

[0023] Figure 7is a structural diagram showing a system for detecting an application installation package according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0025] It should be understood that the terms "first", "second", "third" and "fourth" etc. in the claims, specifications and drawings of the present invention are used to distinguish different objects rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.

[0026] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the claims, the singular forms of "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It should also be further understood that the term "and / or" used in the specification of the present invention and the claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0027] As used in this specification and claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0028] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0029] Figure 1 1 is a general architecture diagram 100 showing a device capable of executing a solution for detecting an application installation package according to an embodiment of the present invention.

[0030] like Figure 1As shown, the aforementioned device may include a front-end system (such as a user interaction interface) and a back-end system (such as a background information processing system). In one embodiment, the back-end system may support functions such as static scanning analysis (such as APK extraction and decompilation), dynamic analysis, systematic analysis, and data processing. According to the solution of the present invention, the installation package of the application to be detected can be uploaded through the aforementioned front-end system. Then, the static scanning detection of the application installation package is implemented through the static scanning analysis function in the back-end system, and the dynamic behavior analysis of the application installation package is implemented by the dynamic behavior analysis function. Then, the aforementioned systematic analysis function and data processing function further analyze and process the obtained static scanning analysis results and dynamic behavior analysis results, and output a corresponding report.

[0031] Combination of the above Figure 1 The scheme of the present invention has been described. It can be understood that the above description is only exemplary and not restrictive. Those skilled in the art can Figure 1 The framework of the device shown in the figure can be changed without departing from the spirit and essence of the present invention. For example, the systematic analysis function can be divided into a static analysis function and a dynamic analysis function, and embedded in the static scanning analysis function and the dynamic behavior analysis function respectively.

[0032] Figure 2 2 is a flow chart showing a method 200 for detecting an application installation package according to an embodiment of the present invention. It can be understood that the method 200 herein can be combined with the above Figure 1 The described device is used to perform

[0033] like Figure 2 As shown, at step S201, the installation package of the application to be detected can be obtained. In one embodiment, the aforementioned installation package of the application to be detected can include any application security package (such as APK) supported by the aforementioned device, which can be actively uploaded by the user through the front-end system or prompted by the front-end system to upload.

[0034] Next, at step S202, scanning conditions for the software development kit introduced in the aforementioned application installation package to be detected can be obtained. In one embodiment, the acquisition of the aforementioned scanning conditions can involve steps S202-1, S202-2 and S202-3. For example, at step 202-1, the aforementioned application installation package to be detected can be unpacked to obtain an intermediate file. In an implementation scenario, the aforementioned unpacking process can specifically include extracting code, manifest files and resource files from the aforementioned application installation package to be detected as intermediate files. It can be understood that the unpacking process here is only a possible implementation method, and the solution of the present invention is not limited to this.

[0035] Then, at step S202-2, the aforementioned intermediate file can be decompiled to obtain a decompiled application installation package. In an implementation scenario, the aforementioned decompiled application installation package may include a code file (e.g., a java file). Then, at step S202-3, the aforementioned scan file is obtained from the aforementioned decompiled application installation package. In some implementation scenarios, the aforementioned scan file may include, but is not limited to, file information to be scanned indicating a scan scope (e.g., file type information to be scanned and folder information to be excluded from scanning, etc.), information list rules (e.g., feature information that may involve a software development kit), dangerous function rules (e.g., system functions that may be called), and source code file path information, etc.

[0036] After completing the acquisition of the aforementioned scanning conditions, a static scanning detection can be performed on the application installation package to be detected based on the scanning conditions. In one embodiment, the aforementioned static scanning detection may involve obtaining a target scanning function about a software development kit (for example, it may include a custom scanning function, and it may also call the scanning method in the libsast package). Then, the target scanning function may be used to parse out the permission information and feature value information about the software development kit from the aforementioned decompiled application installation package. Further, a static scanning detection report (for example, it may include feature information such as the name, supplier, version, etc. of the software development tool, permission information, and behavior information, etc.) may be generated based on the parsed information, and it may be output and displayed. Based on this, a static scanning detection of the aforementioned application installation package to be detected is realized, so that relevant personnel can accurately obtain the relevant information of the software development kit introduced in the application installation package. It is understandable that the specific process of the static scanning detection involved here is only a possible implementation method, and the scheme of the present invention is not limited thereto.

[0037] Then, at step S203, the aforementioned application installation package to be detected can be installed and run in the sandbox to perform dynamic behavior detection of the aforementioned software development tool. It is understandable that step S203 can be executed in parallel with step S202, or it can be executed after step S202 completes the static scanning detection. In one embodiment, the aforementioned dynamic behavior detection process may involve steps S203-1 and S203-2. Specifically, at step S203-1, when the aforementioned sandbox supports the application program in the application installation package to be detected to run, the call information of the aforementioned software development kit to the target interface in the sandbox during the operation of the application program can be obtained. In some embodiments, the call information of the aforementioned target interface can be specifically obtained through the call stack. In this scenario, the aforementioned target interface can be customized, and the aforementioned call stack can be flexibly adjusted according to the target interface. As a result, relevant personnel can customize the software development kit detection and function expansion according to needs, thereby providing support for the compliance rectification of the application installation package.

[0038] After the aforementioned call information is obtained, then at step S203-2, the dynamic behavior of the aforementioned software development kit can be detected based on the call information. For example, the call information can be used to analyze the calling behavior of the software development kit to the target interface triggered by the application and the spontaneous calling behavior of the software development kit to the target interface. Based on this, the dynamic behavior detection of the software development kit introduced by the aforementioned application installation package to be detected is realized.

[0039] Figure 3 300 is a specific architecture diagram showing a device capable of executing a solution for detecting an application installation package according to an embodiment of the present invention. Figure 3 The architecture diagram 300 in FIG. Figure 1 An exemplary implementation of the architecture diagram 100 in FIG. Figure 1 The details of the described architecture diagram 100 also apply to the following.

[0040] like Figure 3 As shown, the front-end system in the device may include a file upload module and a result display module. The back-end system in the device may include an APK extraction module, a decompilation module, a static analysis module, a dynamic analysis module, a result processing module, and a communication module. In one embodiment, the user can interact with the device through the aforementioned front-end system, for example, the installation package of the application to be detected can be uploaded through the aforementioned file upload module. Then, the installation package of the application to be detected obtained by the file upload module can be sent to the APK extraction module and the dynamic analysis module respectively through the communication module.

[0041] Next, after the installation package of the application to be detected is unpacked by the aforementioned APK extraction module (for example, it may involve the extraction of code, file list and resource files), it is sent to the decompilation module for decompilation (for example, it may involve APK2Java decompilation, Dex2Smail decompilation and manifest file decompilation). Then, the decompiled result can be output to the static analysis module for static scanning analysis (for example, it may involve analysis of Java, Smail and manifest files). Then, after the analysis is completed, the analysis results can be sent to the result processing module for processing (which may involve deduplication preprocessing and formatting processing, etc.). Then, the communication module can send the static scanning detection results to the result display module for display.

[0042] As for the dynamic analysis of the above-mentioned application installation package to be detected, the dynamic analysis module can be used to dynamically analyze the aforementioned application installation package to be detected. In some implementation scenarios, the dynamic analysis module may include a sandbox and a data analysis module. The sandbox can support the operation of the application in the application installation package to be detected, and the target interface in the sandbox can be customized. In this scenario, the application installation package to be detected can be installed and run in the sandbox, and then when the aforementioned application is running, the call information of the software development kit to the target interface can be analyzed by the aforementioned data analysis module to realize dynamic behavior detection based on the call information. Then, the detection result can be sent to the result processing module for processing. Then, the communication module can send the dynamic behavior detection result to the result display module for display.

[0043] Figure 4 FIG. 4 is a flowchart showing a static scanning detection process 400 for an application installation package according to an embodiment of the present invention. It can be understood that the static scanning detection process 400 here can be combined with the above Figures 1 to 3 A possible specific implementation of the static scanning detection method in the above text Figures 1 to 3 Some of the relevant detailed descriptions in also apply below.

[0044] like Figure 4 As shown, at step S401, a file may be uploaded. As mentioned above, the file here may be an APK file.

[0045] Next, at step S402, it can be determined whether a static scan result exists. After determining that the APK file has been statically scanned and a static scan detection result has been generated, step S402 can be directly executed. When it is determined that there is no static scan result, steps S403 and S404 can be executed. Steps S403 and S404 can be executed in parallel or in sequence. Figure 4 The parallel execution is used as an example to illustrate.

[0046] Next, at step S403, permission analysis may be performed, for example, unpacking the package using the apktool tool (which may involve extracting the manifest file and the dex file), decompiling the manifest file (such as Androidmanife.xml) and the dex file (for example, decompiling the dex file into Smali code), performing permission analysis, generating permission information, and compiling a permission table.

[0047] Next, at step S404, software development kit (SDK) information analysis may be performed. For example, it may involve decompiling using the jadx tool, obtaining java code, performing SDK analysis using scanning rules (such as android_software development kit_info_rules.yaml and android_software development kit_function_rules.yaml), generating SDK information, and compiling SDK information tables. In one embodiment, the analysis of the SDK may involve scanning and analyzing using SDK naming matching and feature value matching.

[0048] Next, at step S405, the static scanning analysis result can be read. Then, at step S406, the static scanning analysis report can be displayed. In one embodiment, the display of the report can be directly displayed by the device, and can also be sent by the device to other remote or process devices for display.

[0049] Figure 5 FIG. 5 is a flow chart showing a dynamic behavior detection process 500 for a software development tool according to an embodiment of the present invention. It can be understood that the dynamic behavior detection process 500 here can be combined with the above Figures 1 to 3 A possible specific implementation of the dynamic behavior detection method in . Figures 1 to 3 Some of the relevant detailed descriptions in also apply below.

[0050] like Figure 5 As shown, at step S501, the uploaded file (eg, APK file) may be obtained.

[0051] Next, at step S502, dynamic analysis can be started. It is understandable that the dynamic analysis can be started immediately after the APK file is obtained, or it can be started at any time. Figure 4 Then, at step S503, the APK information can be obtained through the AAPT2 tool. In some application scenarios, the acquisition of APK information here can be the acquisition of information such as the application name, package name, version, and vendor.

[0052] Thereafter, at step S504, the APK may be installed in the sandbox and started to run. It is understood that the sandbox here is an independent trusted operating environment in the device, which can support the running of the application without affecting the operating system of the device itself. Then, at step S505, the application APP in the APK may be run and the corresponding behavior may be triggered.

[0053] Next, at step S506, the calling behavior of the system interface can be detected. Specifically, the calling information can be monitored by sandbox embedding. In one embodiment, the aforementioned calling behavior can include the calling behavior of the application itself to the system interface, the calling behavior of the application system triggering the SDK to the system interface, and the calling behavior of the SDK itself to the system interface. The specific detection process can be performed through step S507, which involves using the call stack to record the call information, analyze the call information, and return the results. The specific analysis process of the call information can be referred to Figure 6 to implement.

[0054] Next, at step S508, the privacy acquisition result can be returned to the APP. In particular, it involves the SDK's acquisition result of the privacy data. Figure 5 The process shown can realize dynamic detection and analysis of SDK calling behavior, thereby supplementing and enhancing the static analysis mentioned above, which is conducive to improving the performance and level of SDK detection.

[0055] Figure 6 6 is a flow chart showing a process 600 of analyzing call information according to an embodiment of the present invention.

[0056] like Figure 6 As shown, at step S601, Figure 5 In some embodiments, the call information in Figure 5 The call information is classified and analyzed by extracting the APK information from the APK information. For example, the package name and name of the application or SDK in the APK information can be used for analysis.

[0057] Next, at step S602, the aforementioned call information may be recorded in the form of a log. It is understandable that the information recording method here is only a possible implementation method, and the solution of the present invention is not limited thereto.

[0058] Next, at step S603, the log information may be analyzed. In some embodiments, the actual behavior of the application recorded in the log information may be analyzed, especially the actual behavior of the SDK. For example, the actual permission information of the SDK, whether there is any behavior of calling the system or the user's private data, and whether there is a connection to a website with potential risks may be analyzed.

[0059] Next, at step S604, the dynamic behavior analysis result (eg, including permission information, behavior information, and networking information, etc.) is obtained. It is understandable that the various information described here is only an exemplary display and does not limit the content that the dynamic behavior analysis result may include.

[0060] Next, at step S605, the above results may be stored in a database.

[0061] Next, at step S606, the dynamic behavior analysis report may be displayed as required. In one embodiment, the display of the report may be directly displayed by the device, or sent by the device to other remote or process devices for display.

[0062] Figure 7 7 is a schematic block diagram of a system 700 for detecting an application installation package according to an embodiment of the present invention. The system 700 may include a device 701 according to an embodiment of the present invention, as well as its peripheral devices and an external network. As described above, the device 701 implements static scanning detection of the application installation package to be detected and dynamic behavior detection of the software development tool introduced therein, so as to realize the aforementioned combined Figures 1 to 6 The scheme of the present invention.

[0063] like Figure 7 As shown in , the device 701 may include a CPU 7011, which may be a general-purpose CPU, a dedicated CPU, or other information processing and program execution unit. Further, the device 701 may also include a large-capacity memory 7012 and a read-only memory ROM 7013, wherein the large-capacity memory 7012 may be configured to store various types of data, and the ROM 7013 may be configured to store data required for power-on self-test of the device 701, installation of the sandbox, initialization of various functional modules in the system, basic input / output drivers of the system, and booting the operating system.

[0064] Further, the device 701 also includes other hardware platforms or components, such as the TPU (Tensor Processing Unit) 7014, GPU (Graphic Processing Unit) 7015, FPGA (Field Programmable Gate Array) 7016 and MLU (Memory Logic Unit) 7017 shown. It is understood that although a variety of hardware platforms or components are shown in the device 701, this is merely exemplary and not restrictive, and those skilled in the art can add or remove corresponding hardware according to actual needs. For example, the device 701 may include only a CPU as a known hardware platform and another hardware platform as a test hardware platform of the present invention.

[0065] The device 701 of the present invention further includes a communication interface 7018, so that it can be connected to a local area network / wireless local area network (LAN / WLAN) 705 through the communication interface 7018, and then connected to a local server 706 or to the Internet ("Internet") 707 through the LAN / WLAN. Alternatively or additionally, the device 701 of the present invention can also be directly connected to the Internet or a cellular network through the communication interface 7018 based on wireless communication technology, such as wireless communication technology based on the third generation ("3G"), the fourth generation ("4G") or the fifth generation ("5G")

[0066] The peripheral equipment of device 701 may include display device 702, input device 703 and data transmission interface 704. In one embodiment, display device 702 may include, for example, one or more speakers and / or one or more visual displays, which are configured to perform voice prompts and / or image video display on the computing process or final result of the test device of the present invention. Input device 703 may include, for example, a keyboard, a mouse, a microphone, a gesture capture camera, or other input buttons or controls, which are configured to receive input or user instructions of test data. Data transmission interface 704 may include, for example, a serial interface, a parallel interface or a universal serial bus interface ("USB"), a small computer system interface ("SCSI"), a serial ATA, a firewire ("FireWire"), a PCI Express and a high-definition multimedia interface ("HDMI"), etc., which are configured to transmit and interact with data of other devices or systems. According to the solution of the present invention, the data transmission interface 704 can obtain the application installation package to be detected, and transmit the application installation package to be detected to device 701.

[0067] The CPU 7011, the mass storage 7012, the read-only memory ROM 7013, the TPU 7014, the GPU 7015, the FPGA 7016, the MLU 7017 and the communication interface 7018 of the device 701 of the present invention can be connected to each other through a bus 7019, and data interaction with peripheral devices can be achieved through the bus. In one embodiment, through the bus 7019, the CPU 7011 can control other hardware components in the device 701 and its peripheral devices.

[0068] During operation, the processor CPU 7011 of the device 701 of the present invention can obtain scanning conditions about the software development tool kit through the input device 703 or the data transmission interface 704, so as to implement static scanning detection of the application installation package to be detected based on the scanning conditions, and install and run the application installation package to be detected in the sandbox to perform dynamic behavior detection of the software development tool.

[0069] As can be seen from the above description of the modular design of the present invention, the system of the present invention can be flexibly arranged according to the application scenario or demand without being limited to the architecture shown in the accompanying drawings. Further, it should also be understood that any module, unit, component, server, computer or device that performs the operation of the example of the present invention may include or otherwise access a computer-readable medium, such as a storage medium, a computer storage medium or a data storage device (removable) and / or non-removable) such as a disk, an optical disk or a tape. Computer storage media may include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information, such as computer-readable instructions, data structures, program modules or other data. Based on this, the present invention also discloses a computer-readable storage medium, on which computer-readable instructions for detecting an application installation package are stored, and when the computer-readable instructions are executed by one or more processors, the method and operation described in conjunction with the accompanying drawings are implemented.

[0070] Although this specification has shown and described a plurality of embodiments of the present invention, it is obvious to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will appreciate many changes, modifications and alternatives without departing from the thought and spirit of the present invention. It should be understood that in the process of practicing the present invention, various alternatives to the embodiments of the present invention described herein may be adopted. The attached claims are intended to define the scope of protection of the present invention, and therefore cover the modular compositions, equivalents or alternatives within the scope of these claims.

Claims

1. A method for detecting an application installation package, characterized in that: include: Get the installation package of the application to be tested; Acquire scanning conditions of a software development kit introduced in the installation package of the application to be detected, so as to perform static scanning detection on the installation package of the application to be detected based on the scanning conditions; as well as Installing and running the application installation package to be detected in the sandbox to perform dynamic behavior detection on the software development kit; The scanning conditions for obtaining the software development kit introduced in the installation package of the application to be detected include: Unpacking the installation package of the application to be detected to obtain an intermediate file; Decompiling the intermediate file to obtain a decompiled application installation package; and Acquire the scanning condition from the decompiled application installation package; The scanning conditions include: Information of files to be scanned, used to indicate the scanning range; Information list rules and hazard function rules about the software development kit; and Source code file path information; The static scanning and detection of the application installation package to be detected based on the scanning condition includes: Obtaining a target scanning function of the software development kit; Based on the target scanning function, parsing the permission information and feature value information about the software development kit from the decompiled application installation package; The file information to be scanned for indicating the scanning scope includes: file type information to be scanned and folder information to be excluded from scanning; the information list rule includes feature information related to the software development kit; the dangerous function rule includes system functions involved in calling; The sandbox supports the running of the application in the application installation package to be detected, and the dynamic behavior detection of the software development kit includes: Acquire the calling information of the software development kit to the target interface in the sandbox during the running of the application program; and Detecting a dynamic behavior of the software development kit based on the call information; The step of obtaining the call information of the target interface in the sandbox includes: Obtaining a call stack related to the target interface; and The call information is acquired based on the call stack, and the call information is used to analyze the calling behavior of the software development kit to the target interface triggered by the application program and the calling behavior of the software development kit to the target interface spontaneously.

2. The method according to claim 1, characterized in that The unpacking of the installation package of the application to be detected to obtain the intermediate file comprises: The installation package of the application to be detected is unpacked to extract the code, the manifest file and the resource file as the intermediate file.

3. The method according to claim 1, characterized in that: Also includes: Output the static scanning detection result of the application installation package and the dynamic behavior detection result of the software development kit.

4. A device, characterized in that: include: processor; as well as A memory storing computer instructions for detecting an application installation package, wherein when the computer instructions are executed by the processor, the authentication device executes the method according to any one of claims 1 to 3.

5. A computer program product, characterized in that The invention comprises program instructions for detecting an application installation package, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 3 is implemented.