Application detection method, device, server, detection program component and storage medium

By sending detection instructions to multiple detection program components, each component generates different detection tasks, solving the problem that a single detection component cannot cover global risks, and achieving more comprehensive and accurate mobile application detection.

CN113204483BActive Publication Date: 2024-10-11BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202110431432.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-21
Publication Date
2024-10-11
Estimated Expiration
2041-04-21

AI Technical Summary

Technical Problem

In the existing technology, mobile application detection methods mostly use a single detection program component to detect, resulting in incomplete coverage of detection items, inability to obtain global risk information, and insufficient detection results.

Method used

An application detection method is provided. By receiving a detection request for a target mobile application, detection instructions are generated and sent to at least two detection program components respectively. Each detection program component generates a detection task based on the detection instruction, including target detection items and application information, The detection tasks generated by each detection program component contain different target detection items and are detected from different angles.

Benefits of technology

Through multiple detection program components, different types of detection of target mobile applications are performed from different angles to obtain more comprehensive and accurate detection results, which improves the comprehensiveness and accuracy of the detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113204483B_ABST
    Figure CN113204483B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an application detection method, device, server, detection program component and storage medium. It relates to the field of detection technology. The method is applied to a server, and the method includes: receiving a detection request for at least one target mobile application to be detected; generating a detection instruction based on the detection request; the detection request includes application information of the target mobile application; sending detection instructions to at least two detection program components respectively; wherein the detection program component generates a detection task based on the detection instruction; the detection task includes a target detection item of the target mobile application and application information of the target mobile application; wherein the target detection items included in the detection tasks generated by different detection program components are different. It is possible to perform different types of detection on the target mobile application from different problem angles through multiple detection program components, and the detection results are more comprehensive.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of detection technology, and in particular to an application detection method, device, server, detection program component, and storage medium. Background Art

[0002] With the development of mobile electronic devices, mobile applications carry more and more business and data, and the security risks of mobile applications are becoming more and more important. Therefore, it is necessary to perform risk detection on mobile applications to ensure the safe and reliable operation of mobile applications.

[0003] In the related art, the detection method for mobile applications is mostly to use a single detection program component to detect a single detection type. Under this detection method, the detection items are prone to incomplete coverage, resulting in the inability to obtain the global risk information of the mobile application, and the detection results are not comprehensive enough. Summary of the invention

[0004] The present disclosure provides an application detection method, device, server, detection program component and storage medium to at least solve the problem that the detection results in the related art are not comprehensive enough. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an application detection method, which is applied to a server, and the method includes:

[0006] receiving a detection request for at least one target mobile application to be detected;

[0007] Generate a detection instruction based on the detection request; the detection request includes application information of the target mobile application;

[0008] The detection instruction is sent to at least two detection program components respectively; wherein the detection program component generates a detection task based on the detection instruction; the detection task includes a target detection item of the target mobile application and application information of the target mobile application; wherein the target detection items included in the detection tasks generated by different detection program components are different.

[0009] In an optional embodiment, the method further includes:

[0010] Receive input program component registration information; wherein the program component registration information includes: detection plug-in information corresponding to the newly added detection program component, attribute information of the newly added detection program component, and the number of the first program component corresponding to the newly added detection program component;

[0011] The newly added detection program component connected to the server is configured according to the program component registration information.

[0012] In an optional embodiment, sending the detection instruction to at least two detection program components respectively includes:

[0013] Based on the plug-in identification information, determining a sending object in at least two detection program components;

[0014] Send a detection instruction to the sending object.

[0015] In an optional embodiment, the method further includes:

[0016] Receiving plug-in identification information of the newly added plug-in sent by the detection program component;

[0017] The plug-in identification information is saved, wherein the server is used to identify a detection request including the plug-in identification information.

[0018] According to a second aspect of an embodiment of the present disclosure, there is provided an application detection method, which is applied to detecting a program component, wherein the detected program component includes a second program component and at least two first program components; the method includes:

[0019] The second program component receives a detection instruction sent by a server; the detection instruction includes application information of a target mobile application;

[0020] The second program component generates a detection task based on the detection instruction;

[0021] The second program component selects at least one of the first program components as a target program component according to the working status of each of the first program components;

[0022] The second program component adds the detection task to the target task queue of the target program component; the detection task includes the target detection items of the target mobile application and the application information of the target mobile application; wherein, the detection tasks generated by different detection program components contain different target detection items.

[0023] In an optional embodiment, after the second program component adds the detection task to the target task queue of the target program component, the method further includes:

[0024] The target program component obtains the application installation package from the first database;

[0025] The target program component obtains the target detection item from the detection task;

[0026] The target program component performs a detection operation corresponding to the target detection item on the target mobile application based on the application installation package.

[0027] In an optional embodiment, the method further includes:

[0028] The second program component receives plug-in registration information for the newly added plug-in;

[0029] The second program component controls the target first program component that has completed the current task to suspend subsequent tasks, and adds the newly added plug-in to the plug-in library of the target first program component according to the plug-in registration information;

[0030] The second program component resumes execution of subsequent tasks of the target first program component when adding the newly added plug-in to the plug-in library of the target first program component, and sends plug-in identification information of the newly added plug-in to the server;

[0031] The server stores the plug-in identification information, wherein the server is used to identify a detection request including the plug-in identification information.

[0032] In an optional embodiment, the second program component selects at least one of the first program components as a target program component according to the working status of each of the first program components, including:

[0033] The second program component searches for the first program component that is not currently processing a task according to the working status of each of the first program components;

[0034] In the case that there is the first program component that is not currently processing a task, the second program component uses the first program component that is not currently processing a task as the target program component;

[0035] When all of the first program components are in task processing, the second program component calculates the availability possibility of each of the first program components and uses the first program component with the highest availability possibility as the target program component.

[0036] In an optional embodiment, the second program component calculates the availability possibility of each of the first program components, including:

[0037] The second program component calculates an average size of each application that has been detected by the first program component;

[0038] The second program component obtains the size of each application currently being detected by the first program component;

[0039] The second program component calculates an average execution time of each application that has been detected by the first program component;

[0040] The second program component obtains the execution time of each application currently being detected by the first program component;

[0041] The second program component calculates the availability possibility of each of the first program components according to a first difference between the average size and the application size and a second difference between the average execution time and the execution time.

[0042] In an optional embodiment, the method further includes:

[0043] The second program component calculates the program component availability of the target detection program component to which the second program component belongs;

[0044] When the availability of the program component is lower than a first preset threshold, the second program component expands the number of the first program components included in the target detection program component according to a preset configuration item;

[0045] The second program component repeats the above operation after a first preset time interval until the program component availability of the target detection program component is no less than the first preset threshold.

[0046] In an optional embodiment, the second program component calculates the program component availability of the target detection program component to which it belongs, including:

[0047] The second program component calculates the average waiting time and the average resumption execution time of the target detection program component; wherein the average waiting time is the ratio between the sum of the waiting times of all waiting tasks corresponding to the target detection program component and the total number of the waiting tasks; the average resumption execution time is the ratio between the sum of the time differences corresponding to each of the waiting tasks and the total number of the waiting tasks, and the time difference is the time difference between the creation and the start of execution of each waiting task;

[0048] The second program component calculates the sum of the average waiting time and the average resumption execution time to obtain a first sum value;

[0049] The second program component calculates a ratio of the average waiting time to the first sum value to obtain the program component availability.

[0050] In an optional embodiment, the preset configuration item includes an expansion duration and an expansion step, and when the availability of the program component is lower than a first preset threshold, the second program component expands the number of first program components included in the target detection program component according to the preset configuration item, including:

[0051] When the availability of the program component is lower than the first preset threshold, the second program component starts timing;

[0052] When the timing duration does not reach the expansion duration, the second program component expands the quantity of the first program component according to the expansion step.

[0053] In an optional embodiment, after the second program component calculates the program component availability of the detection program component, the method further includes:

[0054] When the availability of the program component is higher than a second preset threshold, the second program component restores the number of first program components included in the target detection program component to an initial value; wherein the second preset threshold is greater than the first preset threshold.

[0055] In an optional embodiment, after the target program component obtains the target detection item from the detection task, the method further includes:

[0056] In the case that the target program component does not support any one of the target detection items, the target program component returns a return response to the second program component, where the return response is used to inform the second program component that the detection task is not processed;

[0057] The performing the detection operation corresponding to the target detection item on the application installation package includes:

[0058] In the case where the target program component supports at least one of the target detection items, the target program component performs a detection operation corresponding to the target detection item supported by itself on the target mobile application based on the application installation package.

[0059] In an optional embodiment, the target program component detects the target mobile application based on the target detection items supported by the target program component, including:

[0060] In the case where the detection program component is a static scanning program component, the target program component resolves the plug-in dependency corresponding to the target detection item supported by the target program component;

[0061] After the parsing is completed, the target program component decompiles the target component of the installation package of the target mobile application to obtain a decompilation result;

[0062] The target program component parses the plug-in scanning logic corresponding to the target detection item supported by itself;

[0063] After parsing and obtaining the plug-in scanning logic, the target program component executes the scanning code corresponding to the target detection item supported by itself, and detects the decompilation result.

[0064] In an optional embodiment, the target program component detects the target mobile application based on the target detection items supported by the target program component, including:

[0065] In the case where the detection program component is a dynamic scanning program component, the target program component parses the plug-in configuration item corresponding to the target detection item supported by itself;

[0066] After parsing is completed, the target program component starts the real machine resources / simulator resources to create a dynamic sandbox environment;

[0067] After the creation is completed, the target program component starts the target mobile application in the dynamic sandbox environment;

[0068] The target program component parses the plug-in scanning logic corresponding to the target detection item supported by itself;

[0069] After parsing and obtaining the plug-in scanning logic, the target program component executes the scanning code corresponding to the target detection item supported by itself to detect the target mobile application.

[0070] In an optional embodiment, the target program component detects the target mobile application based on the target detection items supported by the target program component, including:

[0071] In the case where the detection program component is a virus detection program component, the target program component parses the plug-in configuration item corresponding to the target detection item supported by the target program component;

[0072] The target program component loads the target virus detection program component resources and creates a virus scanning operating environment;

[0073] After the creation is completed, the target program component parses the plug-in scanning logic corresponding to the target detection item supported by itself;

[0074] The target program component runs the target mobile application in the virus scanning operating environment and simultaneously executes virus scanning logic to detect the target mobile application.

[0075] According to a third aspect of an embodiment of the present disclosure, there is provided an application detection device, which is applied to a server, and the device includes:

[0076] A request receiving module, configured to receive a detection request for at least one target mobile application to be detected;

[0077] An instruction generation module, configured to generate a detection instruction based on the detection request; the detection request includes application information of the target mobile application;

[0078] An instruction sending module is used to send the detection instruction to at least two detection program components respectively; wherein, the detection program component generates a detection task based on the detection instruction; the detection task includes a target detection item of the target mobile application and application information of the target mobile application; wherein, the target detection items included in the detection tasks generated by different detection program components are different.

[0079] In an optional embodiment, the application detection device further includes:

[0080] A first registration information receiving module is used to receive input program component registration information; wherein the program component registration information includes: detection plug-in information corresponding to the newly added detection program component, attribute information of the newly added detection program component, and the number of first program components corresponding to the newly added detection program component;

[0081] A program component configuration module is used to configure the newly added detection program component connected to the server according to the program component registration information.

[0082] In an optional embodiment, the instruction sending module includes:

[0083] A sending object determination module, configured to determine a sending object in the at least two detection program components based on the plug-in identification information;

[0084] The detection instruction sending module is configured to execute sending the detection instruction to the sending object.

[0085] In an optional embodiment, the application detection device further includes:

[0086] A plug-in receiving module, used to receive plug-in identification information of a newly added plug-in sent by the detection program component;

[0087] The plug-in storage module is used to store the plug-in identification information, wherein the server is used to identify the detection request containing the plug-in identification information.

[0088] According to a fourth aspect of an embodiment of the present disclosure, an application detection device is provided, which is applied to detect a program component, wherein the detection program component includes a second program component and at least two first program components; the device includes a first sub-device applied to the second program component and a second sub-device applied to the first program component; the first sub-device includes:

[0089] An instruction receiving module, used for receiving a detection instruction sent by a server; the detection instruction includes application information of a target mobile application;

[0090] A task generation module, used to generate a detection task based on the detection instruction;

[0091] A program component selection module, configured to select at least one of the first program components as a target program component according to the working status of each of the first program components;

[0092] A queue joining module is used to add the detection task to the target task queue of the target program component; the detection task includes the target detection items of the target mobile application and the application information of the target mobile application; wherein the target detection items contained in the detection tasks generated by different detection program components are different.

[0093] In an optional embodiment, the second sub-device includes:

[0094] An installation package acquisition module, used to acquire the application installation package from the first database;

[0095] A detection item acquisition module, used to acquire the target detection item from the detection task;

[0096] A detection module is used to perform a detection operation corresponding to the target detection item on the target mobile application based on the application installation package.

[0097] In an optional embodiment, the first sub-device further includes:

[0098] A plug-in registration receiving module is used to receive plug-in registration information for a newly added plug-in;

[0099] A plug-in adding module, used to control the target first program component that has completed the current task to suspend subsequent tasks, and add the newly added plug-in to the plug-in library of the target first program component according to the plug-in registration information;

[0100] A plug-in identification information sending module is used to resume the execution of subsequent tasks of the target first program component when the newly added plug-in is added to the plug-in library of the target first program component, and to send the plug-in identification information of the newly added plug-in to the server; wherein the server is used to save the plug-in identification information, and the server can identify the detection request containing the plug-in identification information.

[0101] In an optional embodiment, the program component selection module includes:

[0102] A searching unit, configured to search for the first program component that is not currently processing a task according to the working status of each of the first program components;

[0103] A first target confirmation unit is used to, if there is the first program component that is not currently performing task processing, use the first program component that is not currently performing task processing as the target program component;

[0104] The second target confirmation unit is used to calculate the availability possibility of each of the first program components when all the first program components are in the task processing period, and take the first program component with the highest availability possibility as the target program component.

[0105] In an optional embodiment, the second target confirmation unit includes:

[0106] an average size calculation unit, configured to calculate an average size of each application for which the first program component has completed detection;

[0107] an application size calculation unit, configured to obtain a size of an application currently being detected by each of the first program components;

[0108] an average time calculation unit, configured to calculate an average execution time of each application for which the first program component has completed detection;

[0109] an execution time calculation unit, configured to obtain the execution time of each application currently being detected by the first program component;

[0110] An availability possibility calculation unit is used to calculate the availability possibility of each of the first program components based on a first difference between the average size and the application size and a second difference between the average execution time and the execution time, and to take the first program component with the highest availability possibility as the target program component.

[0111] In an optional embodiment, the first sub-device further includes:

[0112] A program component availability calculation module, used to calculate the program component availability of the target detection program component to which it belongs;

[0113] The expansion module is used to expand the number of first program components included in the target detection program component according to preset configuration items when the availability of the program component is lower than a first preset threshold.

[0114] In an optional embodiment, the program component availability calculation module includes:

[0115] A time calculation unit, used to calculate the average waiting time and average resumption execution time of the target detection program component; wherein the average waiting time is the ratio between the sum of the waiting times of all waiting tasks corresponding to the target detection program component and the total number of waiting tasks; the average resumption execution time is the ratio between the sum of the time differences corresponding to each of the waiting tasks and the total number of the waiting tasks, and the time difference is the time difference between the creation and the start of execution of each waiting task;

[0116] A sum calculation unit, used for calculating the sum of the average waiting time and the average resumption execution time to obtain a first sum;

[0117] The ratio calculation unit is used to calculate the ratio of the average waiting time to the first sum value to obtain the program component availability.

[0118] In an optional embodiment, the preset configuration items include an extension duration and an extension step, and the extension module includes:

[0119] A timing unit, configured to start timing of the second program component when the availability of the program component is lower than the first preset threshold;

[0120] The quantity expansion unit is used to expand the quantity of the first program component by the second program component according to the expansion step when the timing duration has not reached the expansion duration.

[0121] In an optional embodiment, the first sub-device further includes:

[0122] A quantity recovery module is used to restore the number of first program components included in the target detection program component to an initial value by the second program component when the availability of the program component is higher than a second preset threshold; wherein the second preset threshold is greater than the first preset threshold.

[0123] In an optional embodiment, the second sub-device further includes:

[0124] A return response module, configured to cause the target program component to return a return response to the second program component when the target program component does not support any one of the target detection items, wherein the return response is used to inform the second program component that the detection task has not been processed;

[0125] The detection module is specifically used to: when the target program component supports at least one of the target detection items, based on the application installation package, perform a detection operation corresponding to the target detection item supported by the target mobile application.

[0126] In an optional embodiment, when the detection program component is a static scanning program component, the detection module includes:

[0127] A dependency parsing unit, used for parsing the plug-in dependencies corresponding to the target detection items supported by the unit;

[0128] A decompilation unit, used for decompiling the target component of the installation package of the target mobile application after parsing to obtain a decompilation result;

[0129] A first scanning logic parsing unit, used for parsing the plug-in scanning logic corresponding to the target detection item supported by itself;

[0130] The first code execution unit is used to parse and obtain the plug-in scanning logic, execute the scanning code corresponding to the target detection item supported by itself, and detect the decompilation result.

[0131] In an optional embodiment, when the detection program component is a dynamic scanning program component, the detection module specifically includes:

[0132] A first configuration item parsing unit, used to parse the plug-in configuration item corresponding to the target detection item supported by the unit;

[0133] The resource startup unit is used to start the real machine resources / simulator resources after parsing is completed to create a dynamic sandbox environment;

[0134] An application startup unit, configured to start the target mobile application in the dynamic sandbox environment after the creation is completed;

[0135] A second scanning logic parsing unit, used for parsing the plug-in scanning logic corresponding to the target detection item supported by itself;

[0136] The second code execution unit is used to parse and obtain the plug-in scanning logic, and then execute the scanning code corresponding to the target detection item supported by itself to detect the target mobile application.

[0137] In an optional embodiment, when the detection program component is a virus detection program component, the detection module specifically includes:

[0138] A second configuration item parsing unit, used for parsing the plug-in configuration item corresponding to the target detection item supported by the unit;

[0139] An environment building unit, used to load target virus detection program component resources and create a virus scanning operating environment;

[0140] A third scanning logic parsing unit is used to parse the plug-in scanning logic corresponding to the target detection item supported by itself after the creation is completed;

[0141] The logic execution unit is used to run the target mobile application in the virus scanning operation environment and synchronously execute the virus scanning logic to detect the target mobile application.

[0142] According to a fifth aspect of an embodiment of the present disclosure, a server is provided, including:

[0143] processor;

[0144] a memory for storing instructions executable by the processor;

[0145] The processor is configured to execute the instructions to implement the application detection method as described in the first aspect.

[0146] According to a sixth aspect of an embodiment of the present disclosure, a detection program component is provided, wherein the detection program component includes a second program component and at least two first program components, wherein the second program component and the first program component respectively include:

[0147] processor;

[0148] a memory for storing instructions executable by the processor;

[0149] The processor is configured to execute the instructions to implement the application detection method as described in the second aspect.

[0150] According to a seventh aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a program or instructions, wherein when the program or instructions are executed, the application detection method as described in the first aspect or the second aspect is implemented.

[0151] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0152] In the disclosed embodiment, after receiving the detection request for the target mobile application, the server will generate a corresponding detection instruction, and then send the detection instruction to multiple detection program components associated with itself, each detection program component will generate a detection task based on the detection instruction, and the detection task includes the target detection item of the target mobile application and the application information of the target mobile application, wherein the detection tasks generated by different detection program components contain different target detection items, so each detection program component will synchronously perform different types of detection on the target mobile application. That is, in the disclosed embodiment, different types of detection can be performed on the target mobile application from different problem angles through multiple detection program components, so that detection results for different dimensions can be obtained later, the detection results are more comprehensive, and the target mobile application can also be judged more accurately based on the detection results.

[0153] 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

[0154] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0155] Figure 1 The invention is a block diagram of an application detection system according to an exemplary embodiment.

[0156] Figure 2 The figure is a flow chart of an application detection method according to an exemplary embodiment.

[0157] Figure 3 The invention is a flow chart showing an application detection method applied to a server according to an exemplary embodiment.

[0158] Figure 4 The invention is a flowchart showing an application detection method for detecting program components according to an exemplary embodiment.

[0159] Figure 5 The invention is a block diagram showing an application detection device applied to a server according to an exemplary embodiment.

[0160] Figure 6 The invention is a block diagram showing an application detection device for detecting program components according to an exemplary embodiment.

[0161] Figure 7 It is a block diagram of a server according to an exemplary embodiment.

[0162] Figure 8 It is a block diagram of a program component according to an exemplary embodiment. DETAILED DESCRIPTION

[0163] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0164] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0165] As in the background technology, when detecting mobile applications in related technologies, most of the methods used are based on single Program Components There are many detection methods, such as static scanner components, dynamic scanner components, virus scanner components, etc. However, different detection components have different detection methods and detection contents. For example, static scanner components locate risk locations by using static code features of vulnerabilities, dynamic scanner components are used to detect crashes caused by malformed intents, and virus scanner components can scan for specific virus features. Therefore, a single type of program component detection method lacks global risk information for mobile applications, detection items are not fully covered, and detection results are not comprehensive enough.

[0166] In order to solve the above technical problems, the embodiment of the present disclosure provides an application detection system, which includes a server 110 and at least two detection program components 120. Figure 1 , Figure 1 is a block diagram of an application detection system according to an exemplary embodiment.

[0167] The server 110 is used to receive a detection request sent from the outside for at least one target mobile application to be detected, and generate a detection instruction based on the detection request; and subsequently send the detection instruction to each detection program component 120 respectively.

[0168] The server 110 may provide an interface for the detection service to the outside world, so that the outside world can input the detection request through the interface. The target detection application may be one or more, that is, the server 110 may receive detection requests corresponding to multiple target mobile applications at the same time. In addition, optionally, the server 110 may also be used to monitor the overall availability of the detection program component 120 in real time.

[0169] The server 110 here may be a web server 110 or a cloud server 110 , etc. The embodiment of the present application does not limit the specific type of the server 110 .

[0170] Optionally, the application detection system may further include a browser 130, and the server 110 may receive a detection request sent by the browser 130. The detection request here may include application information of the target mobile application, and the application information may include information such as an application name, or the application information may also include an application data packet of the target mobile application, etc. The embodiment of the present application does not limit the specific content of the detection request.

[0171] The detection program component 120 is used to generate a detection task based on the detection instruction; the detection task includes a target detection item of the target mobile application and application information of the target mobile application; wherein the target detection items included in the detection tasks generated by different detection program components 120 are different. Subsequently, the detection program component 120 is also used to perform a detection operation corresponding to the target detection item on the application installation package, and return the detection result to the server 110.

[0172] The above-mentioned detection program components 120 are respectively used to perform detection operations of different detection types. For example, the detection program component 120 can be any one of a static scanning program component, a dynamic scanning program component, and a virus scanning program component. Therefore, different detection program components 120 contain different detection items, and different detection program components 120 determine different target detection items based on detection instructions. The embodiment of the present application does not limit the types of the various detection program components 120 contained in the system.

[0173] In the disclosed embodiment, after receiving the detection request for the target mobile application, the server 110 will generate a corresponding detection instruction, and then send the detection instruction to the multiple detection program components 120 associated with itself, and each detection program component 120 will generate a detection task based on the detection instruction, and the detection task includes the target detection item of the target mobile application and the application information of the target mobile application, wherein the detection tasks generated by different detection program components 120 contain different target detection items, so each detection program component 120 will synchronously perform different types of detection on the target mobile application. That is, in the disclosed embodiment, different types of detection can be performed on the target mobile application from different problem angles through multiple detection program components 120, so that the detection results for different dimensions can be obtained later, the detection results are more comprehensive, and the target mobile application can also be judged more accurately based on the detection results.

[0174] In some other embodiments, the above application detection system may further include:

[0175] The first database 140 connected to the server 110 is used to store the application installation package of the target mobile application. Optionally, the first database 140 can receive the application installation package of the target mobile application sent by the server 110 for storage, that is, the server 110 can receive the application installation package of the target mobile application uploaded by the browser 130, and send the installation package to the first database 140. Alternatively, the first database 140 can also store the installation packages of various mobile applications in advance. Subsequently, after receiving the detection instruction, the detection program component 120 can obtain the application installation package of the target mobile application from the first database 140, so as to detect the target mobile application based on the application installation package.

[0176] This embodiment sets up a special database for storing the application installation package of the mobile application, which facilitates the subsequent download of the application installation package of the target mobile application by the detection program component 120 and also avoids the application installation package from occupying the storage space of the server 110.

[0177] In some further embodiments, the above application detection system may further include:

[0178] The second database 150 connected to the server 110 is used to receive the detection results sent by the server 110 and save the detection results.

[0179] This embodiment sets up a special database for storing the test results, which facilitates subsequent users to query and browse the test results and also avoids the test results occupying the storage space of the server 110.

[0180] For ease of understanding, the following is an introduction using an application detection system including a static scanner component, a dynamic scanner component, and a virus scanner component as an example.

[0181] The server 110 receives the application installation package of the mobile application A sent through the browser 130, and the server 110 sends the application installation package to the first database 140 for storage, and generates corresponding detection instructions, and sends the detection instructions to the static scanner component, the dynamic scanner component, and the virus scanner component respectively. The static scanner component, the dynamic scanner component, and the virus scanner component respectively determine the target detection items corresponding to the detection instructions, and download the above-mentioned application installation package from the first database 140, and perform the detection operation corresponding to the target detection items determined by themselves on the application installation package. After the detection is completed, the static scanner component, the dynamic scanner component, and the virus scanner component respectively send the detection results to the server 110, and the server 110 sends the detection results to the second database 150 for storage, so that subsequent staff can judge the risk status of mobile application A based on the detection results saved in the second database 150.

[0182] In addition, the detection program component 120 adopts the swarm mode, and each detection program component 120 includes a second program component and at least two first program components. The second program component acts as a master, responsible for interacting with the server 110, scheduling the detection tasks issued by the server 110, and managing each first program component; the first program component acts as a worker, responsible for performing specific detection operations. When a master goes down, one of the remaining workers will be upgraded to a master until the original master is restored.

[0183] Among them, the second program component is used to receive the detection instruction sent by the server 110, generate a detection task based on the detection instruction, and the detection task includes application information of the target mobile application and the target detection item corresponding to the detection instruction; subsequently, according to the working status of each first program component, select at least one first program component as the target program component, and add the detection task to the target task queue of the target program component; after summarizing the target detection results sent by each target program component, send the summary results to the server 110.

[0184] The target program component is used to obtain the application installation package of the target mobile application from the first database 140, obtain the target detection item from the detection task, and perform the detection operation corresponding to the target detection item on the application installation package to obtain the target detection result and send it to the second program component. The target program component will execute each task in the target task queue in sequence according to the task order in its own target task queue.

[0185] It should be noted that the detection items contained in each first program component corresponding to the same second program component may be the same or different. For example, if the detection items contained in each first program component corresponding to each second program component are the same, the second program component may select only one first program component as the target program component, thereby avoiding duplicate detection and improving detection efficiency.

[0186] Alternatively, if the detection items contained in each first program component corresponding to each second program component are different, then after receiving the detection task, the first program component can compare the target detection items contained in the detection task with the detection items contained in itself. If it does not contain any of the target detection items, it returns a return response to inform the second program component, and the second program component selects other first program components as the target program component. In this case, the target program component may include multiple first program components, and each first program component performs detection operations corresponding to different detection items respectively. The second program component can only obtain a complete detection result after summarizing the return results of each first program component.

[0187] Based on the above application detection system, the embodiment of the present application also provides an application detection method. Figure 2 is a flow chart of an application detection method according to an exemplary embodiment. Figure 2 As shown, the method includes the following steps.

[0188] In step S210, the server receives a detection request for at least one target mobile application to be detected, and generates a detection instruction based on the detection request; the detection request includes application information of the target mobile application.

[0189] After the server receives the detection request sent by the user or the front end, it will generate a detection instruction according to the application information in the detection request. The detection instruction here also needs to include the application information of the target mobile application, which is used to inform the detection program component of the object that needs to be detected. The subject information in the detection instruction can be the same as or different from the subject information in the detection request. The detection instruction can also include some other information, such as the download path of the application installation package of the target mobile application. The embodiments of the present application do not limit the specific content of the detection instruction.

[0190] In step S220, the server sends detection instructions to each detection program component respectively.

[0191] In order to facilitate the subsequent server to summarize the detection results of each detection program component, the server can send detection instructions to each detection program component at the same time.

[0192] In step S230 , the detection program component generates a detection task based on the detection instruction.

[0193] The detection task here includes the target detection items of the target mobile application and the application information of the target mobile application. Among them, the detection tasks generated by different detection program components contain different target detection items.

[0194] Since each detection program component corresponds to a different detection type, multiple detection plug-ins are pre-set in each detection program component, and each detection plug-in is used to detect a detection item. In this case, after receiving the detection instruction, the detection program component can determine the target detection items included in this detection task based on the detection plug-ins it contains (or the detection items it contains). The detection task contains application information to facilitate the detection program component to obtain the application installation package of the target mobile application when performing the detection task later. The application information here can be the identifier of the target mobile application, and the subsequent detection program component downloads the corresponding application installation package according to the identifier; or, the application information can also directly include the application installation package.

[0195] Since the detection instruction may contain application information of multiple target mobile applications, that is, multiple target mobile applications may be detected, and the detection program component may not be able to detect all target mobile applications at the same time, a detection task can be generated for each target mobile application, and each detection task can be added to the task queue of the detection program component, so as to facilitate the subsequent detection program component to process each detection task in sequence.

[0196] Optionally, when the detection instruction includes application information of multiple target mobile applications, only one detection task may be generated, and the detection task is used to detect the multiple target mobile applications. The embodiment of the present application does not limit the generation method of the detection task.

[0197] In the disclosed embodiment, after receiving the detection request for the target mobile application, the server will generate a corresponding detection instruction, and then send the detection instruction to multiple detection program components associated with itself, each detection program component will generate a detection task based on the detection instruction, and the detection task includes the target detection item of the target mobile application and the application information of the target mobile application, wherein the detection tasks generated by different detection program components contain different target detection items, so each detection program component will synchronously perform different types of detection on the target mobile application. That is, in the disclosed embodiment, different types of detection can be performed on the target mobile application from different problem angles through multiple detection program components, so that detection results for different dimensions can be obtained later, the detection results are more comprehensive, and the target mobile application can also be judged more accurately based on the detection results.

[0198] In some embodiments, the above S230 may include:

[0199] S231, the second program component receives a detection instruction sent by the server, and generates a detection task based on the detection instruction;

[0200] S233: The second program component selects at least one first program component as a target program component according to the working status of each first program component, and adds the detection task to a target task queue of the target program component.

[0201] In this embodiment, the second program component in the detection program component receives the detection instruction, generates the detection task, and selects the first program component to perform, that is, the second program component acts as a task scheduler to be responsible for the generation and scheduling of the detection task. In this case, the second program component can be used to control the allocation of the detection task, so that the detection tasks allocated to each first program component can be more balanced, avoiding the situation where the detection task waiting time is too long, and improving the efficiency of task processing.

[0202] Optionally, after the above S230, the following steps may also be included:

[0203] The target program component obtains the application installation package of the target mobile application from the first database.

[0204] The target program component performs a detection operation corresponding to the target detection item on the target mobile application based on the application installation package to obtain a target detection result.

[0205] Among them, when the target program component detects the target mobile application, it can first install the target mobile application through the application installation package, and perform the detection operation corresponding to the target detection item on the installed target mobile application. Alternatively, the target program component can also directly perform the detection operation corresponding to the target detection item on the application installation package. Which specific detection method is adopted depends on the requirements of the target detection item corresponding to the detection program component, and the embodiments of the present application do not limit this.

[0206] In this embodiment, the target program component can obtain the application installation package of the target mobile application from the first database, that is, the application installation package is stored in the first database. In this case, the server does not need to store and send the application installation package, thereby reducing the storage space occupied by the application installation package on the server.

[0207] Optionally, after obtaining the target detection result, the following steps may also be included:

[0208] The target program component sends the target detection result to the second program component;

[0209] The second program component aggregates the target detection results sent by each target program component and sends the aggregated results to the server.

[0210] In this embodiment, after each target program component completes the detection operation, it will send the target detection results obtained by itself to the second program component, which will be summarized by the second program component. For example, the second program component can be summarized according to the corresponding relationship of "detection item: detection result", or the second program component can also be summarized in other ways. The embodiment of the present application does not limit the summary method. The second program component will then send the summary results to the server, so that subsequent staff can view the summary results. This way of feedback results makes it unnecessary for the server to perform the result summary operation, and the summarized detection results are more convenient for users to view than the scattered detection results.

[0211] In some other embodiments, the above S233 may specifically include:

[0212] The second program component searches for a first program component that is not currently processing a task according to the working status of each first program component;

[0213] In the case that there is a first program component that is not currently processing a task, the second program component uses the first program component that is not currently processing a task as a target program component;

[0214] When all the first program components are in the task processing period, the second program component calculates the availability possibility of each first program component and uses the first program component with the highest availability possibility as the target program component.

[0215] In this embodiment, after receiving the detection instruction, the second program component will first find at least one first program component that is not currently processing a task according to the working status of each first program component. In this case, after the detection task is assigned, the first program component as the target program component can quickly start processing the detection task, avoiding the situation where the detection task needs to wait for a period of time as much as possible, thereby improving the detection efficiency. In addition, when all first program components are processing tasks, the second program component needs to select a first program component that may complete the existing task the fastest as the target program component. In this embodiment, the efficiency of each first program component in completing the existing task is quantified by the available possibility, so that the target program component finally selected can start processing the detection task as soon as possible.

[0216] In a further embodiment, the second program component calculating the availability possibility of each first program component may include the following steps:

[0217] The second program component calculates an average size of each application that has completed detection by the first program component;

[0218] The second program component obtains the size of each application currently being detected by the first program component;

[0219] The second program component calculates the average execution time of each application that has been detected by the first program component;

[0220] The second program component obtains the execution time of each application currently being detected by the first program component;

[0221] The second program component calculates the availability possibility of each first program component according to a first difference between the average size and the application size and a second difference between the average execution time and the execution time.

[0222] The calculation process of the available possibilities can be expressed by the following relationship:

[0223] Available Possibility = (1 + (|X1-X2|)) / (R1*(|Y1-Y2|))

[0224] Among them, X1 is the average size of applications that the first program component has completed detection, X2 is the size of applications that the first program component is currently detecting; Y1 is the average execution time of applications that the first program component has completed detection; Y2 is the execution time of applications that the first program component is currently detecting; R1 is the correlation coefficient between the target mobile application size and execution time; wherein, the correlation coefficient is customized by the user.

[0225] In this embodiment, the average size and average execution time of applications that have been detected by the first program component are compared with the size and execution time of the application currently being detected by the first program component to obtain the availability possibility of the first program component. The larger the availability possibility, the faster the first program component is likely to complete the current detection task. Therefore, after the detection task is assigned to the first program component, the first program component is likely to complete the detection task faster, thereby maximizing the detection efficiency.

[0226] In some cases, for hot-deployed plug-ins, some first program components have not updated the plug-ins in time, resulting in the original plug-ins in these first program components being unable to execute the above-mentioned target detection items. In this case, in some other embodiments, after the above-mentioned detection instruction is sent to the target program component, the following may also be included:

[0227] In the case where the target program component does not support any of the target detection items, the target program component returns a return response to the second program component, where the return response is used to inform the second program component that the detection instruction is not processed;

[0228] The above detection operation corresponding to the target detection item performed on the application installation package may include:

[0229] In the case that the target program component supports at least one of the target detection items, the target program component detects the target mobile application based on the target detection items supported by the target program component.

[0230] In this embodiment, after receiving the detection task, the target program component will determine whether it supports the target detection items in the detection task. The judgment process can directly compare the target detection items with the detection items contained in itself, or can also compare the plug-in corresponding to the target detection item with the plug-in contained in itself. If any one of the target detection items is not supported, it means that the target program component cannot perform the detection task, so the detection task is returned, and the second program component is informed that the detection task has not been processed. The second program component will be redistributed to other first program components for processing. If the current target program component supports at least one target detection item, the target program component starts the detection process. Through the above method, automatic error correction can be achieved in the detection task allocation process, rather than direct error reporting, thereby improving the reliability of the application detection process.

[0231] In a further embodiment, taking Android platform application detection as an example, the following introduces the steps of detecting the target mobile application based on the target detection items supported by the target program components in each type of detection program component.

[0232] 1. In the case where the detection program component is a static scanner component, the target program component resolves the plug-in dependencies corresponding to the target detection items supported by itself;

[0233] After the parsing is completed, the target program component decompiles the target component of the installation package of the target mobile application to obtain a decompilation result;

[0234] The target program component parses the plug-in scanning logic corresponding to the target detection items it supports;

[0235] After parsing the plug-in scanning logic, the target program component executes the scanning code corresponding to the target detection items it supports and detects the decompilation results.

[0236] In this embodiment, the main detection process in the static scanning program component is:

[0237] Analyze plugin dependencies -> decompile corresponding components of apk -> analyze plugin scanning logic -> execute specific scanning code -> obtain scanning results.

[0238] 2. When the detection program component is a dynamic scanning program component, the target program component parses the plug-in configuration items corresponding to the target detection items supported by itself;

[0239] After parsing is completed, the target program component starts the real machine resources / simulator resources to create a dynamic sandbox environment;

[0240] After the creation is completed, the target program component launches the target mobile application in the dynamic sandbox environment;

[0241] The target program component parses the plug-in scanning logic corresponding to the target detection items it supports;

[0242] After parsing the plug-in scanning logic, the target program component executes the scanning code corresponding to the target detection item it supports to detect the target mobile application.

[0243] In this embodiment, the main detection process of the dynamic scanning program component is:

[0244] Analyze the plug-in configuration items->Start the real machine resources / simulator resources->Create a dynamic sandbox environment->Start the tested application->Analyze the plug-in scanning logic->Execute the specific scanning code->Get the scanning results.

[0245] 3. In the case where the detection program component is a virus detection program component, the target program component parses the plug-in configuration item corresponding to the target detection item supported by itself;

[0246] The target program component loads the target virus detection program component resources and creates a virus scanning operating environment;

[0247] After the creation is completed, the target program component parses the plug-in scanning logic corresponding to the target detection items it supports;

[0248] The target program component runs the target mobile application in the virus scanning running environment, and simultaneously executes the virus scanning logic to detect the target mobile application.

[0249] In this embodiment, the main detection process of the virus detection program component is:

[0250] Parse the plug-in configuration items -> load specific virus detection program component resources -> create a virus scanning runtime environment -> load the plug-in scanning logic -> run the tested sample -> synchronously execute the virus scanning logic -> obtain the scanning results.

[0251] In the related art, since the scanning time of the detection program component for mobile applications is proportional to the capacity of the mobile application, when the detection program component needs to scan and detect a large number of mobile applications, the execution efficiency of the detection task will be greatly reduced, and the program component processing capacity will encounter a bottleneck, resulting in an increase in the queue time of the detection task. In addition, dynamic detection is generally time-consuming and requires a long time to occupy the processing work of a first program component. At this time, if all the first program components are occupied, the newly added detection task will be suspended until the previous detection task is completed before the detection can begin, which will increase the overall detection task time.

[0252] In order to solve the above technical problem, in some other embodiments, the above method may further include:

[0253] The second program component calculates the program component availability of the target detection program component to which it belongs;

[0254] When the availability of the program component is lower than the first preset threshold, the second program component expands the number of the first program components included in the target detection program component according to the preset configuration item;

[0255] The second program component repeats the above operation after a first preset time interval until the program component availability of the target detection program component is not less than a first preset threshold.

[0256] In the present embodiment, the second program component will calculate the program component availability of the target detection program component to which it belongs. If the calculated program component availability value is lower than the set first preset threshold value, for example, 0.6, it indicates that the number of the first program components included in the current target detection program component cannot meet too many detection tasks, so it is necessary to expand the number of the first program components according to the configuration item. If the program component availability value is not lower than the first preset threshold value, it indicates that the number of the first program components included in the current target detection program component can meet the detection task, so it is not necessary to expand the number of the first program components. In the expansion process, the program component availability can be calculated once every first preset time. If the program component availability is not lower than the first preset threshold value, the expansion is stopped. If it is still lower than the first preset threshold value, the first program component continues to be expanded. In this way, the embodiment of the present application supports the expansion of the dynamic first program component, improves the high availability of the detection program component, thereby improving the detection efficiency of the detection program component, reducing the situation where the detection task is suspended for a long time, avoiding the bottleneck problem encountered in the detection performance, and ensuring the stability of the overall performance of the detection program component.

[0257] Optionally, in the process of expanding the first program component, the program component availability value may be calculated once each time a first program component is expanded. The cycle for calculating the program component availability value is not limited in the embodiment of the present application.

[0258] In a further embodiment, the preset configuration item includes an expansion duration and an expansion step length, and when the availability of the second program component is lower than the first preset threshold, the number of the first program components included in the target detection program component is expanded according to the preset configuration item, which may include:

[0259] When the availability of the program component is lower than a first preset threshold, the second program component starts timing;

[0260] When the timing duration does not reach the expansion duration, the second program component expands the quantity of the first program component according to the expansion step.

[0261] In this embodiment, the number of first program components will be expanded within the expansion duration according to a specific expansion step. For example, if the configuration item is (0.6, 1, 30), it means that the program component availability is lower than 0.6, and it will be expanded at an expansion speed with a step size of 1, and the expansion time lasts for 30 seconds, that is, one first program component is added per second. In this case, the program component availability can be calculated again after the timing duration reaches the expansion duration, that is, the first preset duration can be equal to the expansion duration. This expansion method, which adds the same number of first program components each time, can make the expansion process of the first program component more stable. Alternatively, the expansion interval can also be limited in the configuration item, for example, a first program component is added every 2 seconds, and the duration is 30 seconds.

[0262] Optionally, the preset configuration item may also only include an increase in quantity, for example, 5, and then 5 first program components are expanded at the same time. The specific expansion method is not limited in the embodiment of the present application.

[0263] In some embodiments, the second program component calculating the program component availability of the target detection program component to which it belongs may include:

[0264] The second program component calculates the average waiting time and the average resumption execution time of the target detection program component; wherein the average waiting time is the ratio between the sum of the waiting times of all waiting tasks corresponding to the target detection program component and the total number of waiting tasks; the average resumption execution time is the ratio between the sum of the time differences corresponding to each waiting task and the total number of waiting tasks, and the time difference is the time difference between each waiting task from creation to start of execution;

[0265] The second program component calculates the sum of the average waiting time and the average resumption execution time to obtain a first sum value;

[0266] The second program component calculates the ratio of the average waiting time to the first sum value to obtain the program component availability.

[0267] The calculation process of the possibility of program components can be expressed by the following relationship:

[0268] Program component availability = T1 / (T1+T2)

[0269] Among them, T1 is the sum of the waiting time of all waiting tasks corresponding to the target detection program component / the total number of waiting tasks; T2 is the ratio between the sum of the time differences between the creation and the start of execution of each waiting task / the total number of waiting tasks.

[0270] In this embodiment, the availability of the program component is calculated using the waiting time and the number of waiting tasks corresponding to each waiting task of the target detection program component. Since the longer the waiting time, the more waiting tasks there are, which indicates that the number of the current first program component is insufficient to support the execution of the detection task. Therefore, the availability of the program component is calculated based on the above parameters, that is, the calculated availability of the program component can reflect whether there is a need to expand the first program component, so that the second program component can expand the number of the first program component under appropriate circumstances, ensuring the detection efficiency of the entire detection program component and the stability during the task detection process.

[0271] In some other embodiments, after the second program component calculates the program component availability of the detection program component, the following may also be included:

[0272] When the availability of the program component is higher than a second preset threshold, the second program component restores the number of the first program components included in the target detection program component to an initial value; wherein the second preset threshold is greater than the first preset threshold.

[0273] In this embodiment, when the availability of a program component is greater than a second preset threshold, for example greater than 0.95, it means that the current processing capacity of the first program component is significantly greater than the required number of tasks, and there is a surplus of first program components. Therefore, this embodiment controls the number of first program components to be restored to the initial setting, thereby improving the utilization efficiency of the first program component while ensuring the basic operating capacity.

[0274] In the related art, due to the design and operation problems of the mobile application detection platform, most detection platform systems use the problems and detection items that need to be discovered at the moment as the fixed detection process of the detection platform. When the corresponding conditions change or the system platform stops operating, its fixed detection process cannot be fully applicable to the detection items required by the current users. That is, the current common mobile application detection solutions all use specific detection processes, that is, they detect fixed detection types and detection items. The specific detection types and detection items cannot be customized by users, and the pertinence is poor. In addition, unnecessary detection items may exist in the detection process, wasting detection time.

[0275] Based on the above technical problems, in some further embodiments, the above method may further include:

[0276] The server receives input program component registration information; wherein the program component registration information includes: detection plug-in information corresponding to the newly added detection program component, attribute information of the newly added detection program component (such as the capability support range provided by the newly added detection program component), and the number of the first program component corresponding to the newly added detection program component;

[0277] The server configures the newly added detection program component connected to the server according to the program component registration information.

[0278] After the server configuration is completed, initialization information can be sent to the newly added detection program component, wherein the newly added detection program component can initialize the first program component corresponding to itself.

[0279] In this embodiment, after the development of a new detection program component is completed, the user can register the detection program component with the server. After the newly added detection program component is registered, it will start to initialize its first program component, so that after the initialization is completed, the newly added detection program component can be put into use. In this way, the user can increase the type and quantity of the detection program component according to his own needs, thereby achieving the purpose of customizing the detection program component and enriching the detection type combination during mobile application detection.

[0280] In some further embodiments, the above method may further include:

[0281] The second program component receives plug-in registration information for the newly added plug-in;

[0282] The second program component controls the target first program component that has completed the current task to suspend subsequent tasks, and adds a new plug-in to the plug-in library of the target first program component according to the plug-in registration information;

[0283] When the second program component adds the newly added plug-in to the plug-in library of the target first program component, the second program component resumes execution of subsequent tasks of the target first program component and sends plug-in identification information of the newly added plug-in to the server.

[0284] The server stores the plug-in identification information, wherein the server can identify the detection request including the plug-in identification information.

[0285] The detection program component does not require that all first program components must be updated before the newly added plug-in can be used. As long as one first program component is updated, the newly added plug-in can be used.

[0286] In this embodiment, after completing the development of the new plug-in, the user can apply for registration with the second program component in the detection program component to which the plug-in belongs, and the second program component will automatically and synchronously push the plug-in registration information to the server for storage to ensure that the server can recognize and receive the detection task containing the new plug-in. At the same time, the second program component will suspend the subsequent tasks of the first program component and update the plug-in library of the first program component when the first program component completes the current task, so that the new plug-in can be added to the plug-in library of the first program component without external perception. Repeat this operation until all the plug-in libraries of the first program component are updated. In this case, the user can customize the registration plug-in in the detection program component according to demand, thereby increasing the detection items in the detection program component, that is, realizing the customization of the detection items, and improving the flexibility of the detection items during mobile application detection.

[0287] Based on the above method embodiment applied to the application detection system, the following introduces the application detection method applied to the server. Figure 3 As shown, Figure 3 The present invention is a flowchart showing an application detection method applied to a server according to an exemplary embodiment. The method includes the following steps.

[0288] In step S310, a detection request for at least one target mobile application to be detected is received;

[0289] In step S320, a detection instruction is generated based on the detection request; the detection request includes application information of the target mobile application;

[0290] In step S330, detection instructions are sent to at least two detection program components respectively; wherein the detection program component can generate a detection task based on the detection instruction; the detection task includes a target detection item of the target mobile application and application information of the target mobile application; wherein the detection tasks generated by different detection program components include different target detection items.

[0291] In the disclosed embodiment, after receiving the detection request for the target mobile application, the server will generate a corresponding detection instruction, and then send the detection instruction to multiple detection program components associated with itself, each detection program component will generate a detection task based on the detection instruction, and the detection task includes the target detection item of the target mobile application and the application information of the target mobile application, wherein the detection tasks generated by different detection program components contain different target detection items, so each detection program component will synchronously perform different types of detection on the target mobile application. That is, in the disclosed embodiment, different types of detection can be performed on the target mobile application from different problem angles through multiple detection program components, so that detection results for different dimensions can be obtained later, the detection results are more comprehensive, and the target mobile application can also be judged more accurately based on the detection results.

[0292] In some embodiments, the above method may further include:

[0293] Receive input program component registration information; wherein the program component registration information includes: detection plug-in information corresponding to the newly added detection program component, attribute information of the newly added detection program component, and the number of the first program component corresponding to the newly added detection program component;

[0294] According to the program component registration information, configure the newly added detection program component connected to the server;

[0295] After the configuration is completed, the initialization information is sent to the newly added detection program component, wherein the newly added detection program component initializes the first program component corresponding to itself.

[0296] In an optional embodiment, when the detection instruction is sent to at least two detection program components respectively, the sending object can be determined in the at least two detection program components based on the plug-in identification information, and then the detection instruction is sent to the sending object. Thus, it can be determined to which detection program component the detection instruction is sent, and an implementation method for determining the sending object is provided.

[0297] In this embodiment, after the development of a new detection program component is completed, the user can register the detection program component with the server. After the newly added detection program component is registered, it will start to initialize its first program component, so that after the initialization is completed, the newly added detection program component can be put into use. In this way, the user can increase the type and quantity of the detection program component according to his own needs, thereby achieving the purpose of customizing the detection program component and enriching the detection type combination during mobile application detection.

[0298] In some other embodiments, the above method may further include:

[0299] Receive plug-in identification information of the newly added plug-in sent by the detection program component;

[0300] The plug-in identification information is saved, wherein the server can identify the detection request including the plug-in identification information.

[0301] In this embodiment, after completing the development of the new plug-in, the user can apply for registration with the second program component in the detection program component to which the plug-in belongs, and the second program component will automatically and synchronously push the plug-in registration information to the server for storage to ensure that the server can recognize and receive the detection task containing the new plug-in. At the same time, the second program component will suspend the subsequent tasks of the first program component and update the plug-in library of the first program component when the first program component completes the current task, so that the new plug-in can be added to the plug-in library of the first program component without external perception. Repeat this operation until all the plug-in libraries of the first program component are updated. In this case, the user can customize the registration plug-in in the detection program component according to demand, thereby increasing the detection items in the detection program component, that is, realizing the customization of the detection items, and improving the flexibility of the detection items during mobile application detection.

[0302] Based on the above method embodiment applied to the application detection system, the following describes an application detection method applied to the detection program component. The detection program component includes a second program component and at least two first program components. Figure 4 As shown, Figure 4 The present invention is a flowchart showing an application detection method for detecting program components according to an exemplary embodiment. The method includes the following steps.

[0303] In step S410, the second program component receives a detection instruction sent by the server; the detection instruction includes application information of the target mobile application;

[0304] In step S420, the second program component generates a detection task based on the detection instruction;

[0305] In step S430, the second program component selects at least one first program component as a target program component according to the working status of each first program component;

[0306] In step S440, the second program component adds the detection task to the target task queue of the target program component; the detection task includes the target detection items of the target mobile application and the application information of the target mobile application; wherein, the target detection items included in the detection tasks generated by different detection program components are different.

[0307] In this embodiment, the second program component in the detection program component receives the detection instruction, generates the detection task, and selects the first program component to perform, that is, the second program component acts as a task scheduler to be responsible for the generation and scheduling of the detection task. In this case, the second program component can be used to control the allocation of the detection task, so that the detection tasks allocated to each first program component can be more balanced, avoiding the situation where the detection task waiting time is too long, and improving the efficiency of task processing.

[0308] In some embodiments, after the above S440, the following steps may also be included:

[0309] The target program component obtains the application installation package from the first database;

[0310] The target program component obtains the target detection items from the detection task;

[0311] The target program component performs a detection operation corresponding to the target detection item on the target mobile application based on the application installation package.

[0312] In this embodiment, the target program component can obtain the application installation package of the target mobile application from the first database, that is, the application installation package is stored in the first database. In this case, the server does not need to store and send the application installation package, thereby reducing the storage space occupied by the application installation package on the server.

[0313] In some other embodiments, the above S430 may include:

[0314] The second program component searches for a first program component that is not currently processing a task according to the working status of each first program component;

[0315] In the case that there is a first program component that is not currently processing a task, the second program component uses the first program component that is not currently processing a task as a target program component;

[0316] When all the first program components are in the task processing period, the second program component calculates the availability possibility of each first program component and uses the first program component with the highest availability possibility as the target program component.

[0317] In this embodiment, after receiving the detection instruction, the second program component will first find at least one first program component that is not currently processing a task according to the working status of each first program component. In this case, after the detection task is assigned, the first program component as the target program component can quickly start processing the detection task, avoiding the situation where the detection task needs to wait for a period of time as much as possible, thereby improving the detection efficiency. In addition, when all first program components are processing tasks, the second program component needs to select a first program component that may complete the existing task the fastest as the target program component. In this embodiment, the efficiency of each first program component in completing the existing task is quantified by the available possibility, so that the target program component finally selected can start processing the detection task as soon as possible.

[0318] In a further embodiment, the second program component calculating the availability possibility of each first program component may include:

[0319] The second program component calculates an average size of each application that has been detected by the first program component;

[0320] The second program component obtains the size of each application currently being detected by the first program component;

[0321] The second program component calculates the average execution time of each application that has been detected by the first program component;

[0322] The second program component obtains the execution time of each application currently being detected by the first program component;

[0323] The second program component calculates the availability possibility of each first program component according to a first difference between the average size and the application size and a second difference between the average execution time and the execution time.

[0324] In this embodiment, the average size and average execution time of applications that have been detected by the first program component are compared with the size and execution time of the application currently being detected by the first program component to obtain the availability possibility of the first program component. The larger the availability possibility, the faster the first program component is likely to complete the current detection task. Therefore, after the detection task is assigned to the first program component, the first program component is likely to complete the detection task faster, thereby maximizing the detection efficiency.

[0325] In some other embodiments, after the target program component obtains the target detection item from the detection task, the following steps may also be included:

[0326] In the case where the target program component does not support any of the target detection items, the target program component returns a return response to the second program component, where the return response is used to inform the second program component that the detection task is not processed;

[0327] Perform detection operations corresponding to the target detection items on the application installation package, including:

[0328] In the case where the target program component supports at least one of the target detection items, the target program component performs a detection operation corresponding to the target detection item supported by itself on the target mobile application based on the application installation package.

[0329] In this embodiment, after receiving the detection task, the target program component will determine whether it supports the target detection items in the detection task. The judgment process can directly compare the target detection items with the detection items contained in itself, or can also compare the plug-in corresponding to the target detection item with the plug-in contained in itself. If any one of the target detection items is not supported, it means that the target program component cannot perform the detection task, so the detection task is returned, and the second program component is informed that the detection task has not been processed. The second program component will be redistributed to other first program components for processing. If the current target program component supports at least one target detection item, the target program component starts the detection process. Through the above method, automatic error correction can be achieved in the detection task allocation process, rather than direct error reporting, thereby improving the reliability of the application detection process.

[0330] In a further embodiment, taking Android platform application detection as an example, the following introduces the steps of detecting the target mobile application based on the target detection items supported by the target program components in each type of detection program component.

[0331] 1. In the case where the detection program component is a static scanner component, the target program component resolves the plug-in dependencies corresponding to the target detection items supported by itself;

[0332] After the parsing is completed, the target program component decompiles the target component of the installation package of the target mobile application to obtain a decompilation result;

[0333] The target program component parses the plug-in scanning logic corresponding to the target detection items it supports;

[0334] After parsing the plug-in scanning logic, the target program component executes the scanning code corresponding to the target detection items it supports and detects the decompilation results.

[0335] In this embodiment, the main detection process in the static scanning program component is:

[0336] Analyze plugin dependencies -> decompile corresponding components of apk -> analyze plugin scanning logic -> execute specific scanning code -> obtain scanning results.

[0337] 2. When the detection program component is a dynamic scanning program component, the target program component parses the plug-in configuration items corresponding to the target detection items supported by itself;

[0338] After parsing is completed, the target program component starts the real machine resources / simulator resources to create a dynamic sandbox environment;

[0339] After the creation is completed, the target program component launches the target mobile application in the dynamic sandbox environment;

[0340] The target program component parses the plug-in scanning logic corresponding to the target detection items it supports;

[0341] After parsing the plug-in scanning logic, the target program component executes the scanning code corresponding to the target detection item it supports to detect the target mobile application.

[0342] In this embodiment, the main detection process of the dynamic scanning program component is:

[0343] Analyze the plug-in configuration items->Start the real machine resources / simulator resources->Create a dynamic sandbox environment->Start the tested application->Analyze the plug-in scanning logic->Execute the specific scanning code->Get the scanning results.

[0344] 3. In the case where the detection program component is a virus detection program component, the target program component parses the plug-in configuration item corresponding to the target detection item supported by itself;

[0345] The target program component loads the target virus detection program component resources and creates a virus scanning operating environment;

[0346] After the creation is completed, the target program component parses the plug-in scanning logic corresponding to the target detection items it supports;

[0347] The target program component runs the target mobile application in the virus scanning running environment, and simultaneously executes the virus scanning logic to detect the target mobile application.

[0348] In this embodiment, the main detection process of the virus detection program component is:

[0349] Parse the plug-in configuration items -> load specific virus detection program component resources -> create a virus scanning runtime environment -> load the plug-in scanning logic -> run the tested sample -> synchronously execute the virus scanning logic -> obtain the scanning results.

[0350] In some other embodiments, the above method may further include:

[0351] The second program component calculates the program component availability of the target detection program component to which it belongs;

[0352] When the availability of the program component is lower than the first preset threshold, the second program component expands the number of the first program components included in the target detection program component according to the preset configuration item;

[0353] The second program component repeats the above operation after a first preset time interval until the program component availability of the target detection program component is not less than a first preset threshold.

[0354] In the present embodiment, the second program component will calculate the program component availability of the target detection program component to which it belongs. If the calculated program component availability value is lower than the set first preset threshold value, for example, 0.6, it indicates that the number of the first program components included in the current target detection program component cannot meet too many detection tasks, so it is necessary to expand the number of the first program components according to the configuration item. If the program component availability value is not lower than the first preset threshold value, it indicates that the number of the first program components included in the current target detection program component can meet the detection task, so it is not necessary to expand the number of the first program components. In the expansion process, the program component availability can be calculated once every first preset time. If the program component availability is not lower than the first preset threshold value, the expansion is stopped. If it is still lower than the first preset threshold value, the first program component continues to be expanded. In this way, the embodiment of the present application supports the expansion of the dynamic first program component, improves the high availability of the detection program component, thereby improving the detection efficiency of the detection program component, reducing the situation where the detection task is suspended for a long time, avoiding the bottleneck problem encountered in the detection performance, and ensuring the stability of the overall performance of the detection program component.

[0355] In some embodiments, the second program component calculating the program component availability of the target detection program component to which it belongs may include:

[0356] The second program component calculates the average waiting time and the average resumption execution time of the target detection program component; wherein the average waiting time is the ratio between the sum of the waiting times of all waiting tasks corresponding to the target detection program component and the total number of waiting tasks; the average resumption execution time is the ratio between the sum of the time differences corresponding to each waiting task and the total number of waiting tasks, and the time difference is the time difference between each waiting task from creation to start of execution;

[0357] The second program component calculates the sum of the average waiting time and the average resumption execution time to obtain a first sum value;

[0358] The second program component calculates the ratio of the average waiting time to the first sum value to obtain the program component availability.

[0359] In this embodiment, the availability of the program component is calculated using the waiting time and the number of waiting tasks corresponding to each waiting task of the target detection program component. Since the longer the waiting time, the more waiting tasks there are, which indicates that the number of the current first program component is insufficient to support the execution of the detection task. Therefore, the availability of the program component is calculated based on the above parameters, that is, the calculated availability of the program component can reflect whether there is a need to expand the first program component, so that the second program component can expand the number of the first program component under appropriate circumstances, ensuring the detection efficiency of the entire detection program component and the stability during the task detection process.

[0360] In a further embodiment, the preset configuration item includes an expansion duration and an expansion step length, and when the availability of the second program component is lower than the first preset threshold, the number of the first program components included in the target detection program component is expanded according to the preset configuration item, which may include:

[0361] When the availability of the program component is lower than a first preset threshold, the second program component starts timing;

[0362] When the timing duration does not reach the expansion duration, the second program component expands the quantity of the first program component according to the expansion step.

[0363] In this embodiment, the number of first program components will be expanded within the expansion duration according to a specific expansion step. For example, if the configuration item is (0.6, 1, 30), it means that the program component availability is lower than 0.6, and it will be expanded at an expansion speed with a step size of 1, and the expansion time lasts for 30 seconds, that is, one first program component is added per second. In this case, the program component availability can be calculated again after the timing duration reaches the expansion duration, that is, the first preset duration can be equal to the expansion duration. This expansion method, which adds the same number of first program components each time, can make the expansion process of the first program component more stable. Alternatively, the expansion interval can also be limited in the configuration item, for example, a first program component is added every 2 seconds, and the duration is 30 seconds.

[0364] In some other embodiments, after the second program component calculates the program component availability of the detection program component, the following may also be included:

[0365] When the availability of the program component is higher than a second preset threshold, the second program component restores the number of the first program components included in the target detection program component to an initial value; wherein the second preset threshold is greater than the first preset threshold.

[0366] In this embodiment, when the availability of a program component is greater than a second preset threshold, for example greater than 0.95, it means that the current processing capacity of the first program component is significantly greater than the required number of tasks, and there is a surplus of first program components. Therefore, this embodiment controls the number of first program components to be restored to the initial setting, thereby improving the utilization efficiency of the first program component while ensuring the basic operating capacity.

[0367] In some further embodiments, the above method may further include:

[0368] The second program component receives plug-in registration information for the newly added plug-in;

[0369] The second program component controls the target first program component that has completed the current task to suspend subsequent tasks, and adds a new plug-in to the plug-in library of the target first program component according to the plug-in registration information;

[0370] The second program component resumes execution of subsequent tasks of the target first program component when the newly added plug-in is added to the plug-in library of the target first program component, and sends plug-in identification information of the newly added plug-in to the server;

[0371] The server stores the plug-in identification information, wherein the server can identify the detection request including the plug-in identification information.

[0372] In this embodiment, after completing the development of the new plug-in, the user can apply for registration with the second program component in the detection program component to which the plug-in belongs, and the second program component will automatically and synchronously push the plug-in registration information to the server for storage to ensure that the server can recognize and receive the detection task containing the new plug-in. At the same time, the second program component will suspend the subsequent tasks of the first program component and update the plug-in library of the first program component when the first program component completes the current task, so that the new plug-in can be added to the plug-in library of the first program component without external perception. Repeat this operation until all the plug-in libraries of the first program component are updated. In this case, the user can customize the registration plug-in in the detection program component according to demand, thereby increasing the detection items in the detection program component, that is, realizing the customization of the detection items, and improving the flexibility of the detection items during mobile application detection.

[0373] Based on the above method embodiment, the present application embodiment also provides an application detection device, which is applied to a server. Figure 5 FIG. 1 is a block diagram of an application detection device applied to a server according to an exemplary embodiment. Figure 5 The device includes a request receiving module 510, an instruction generating module 520 and an instruction sending module 530.

[0374] A request receiving module 510, configured to receive a detection request for at least one target mobile application to be detected;

[0375] The instruction generation module 520 is used to generate a detection instruction based on the detection request; the detection request includes application information of the target mobile application;

[0376] The instruction sending module 530 is used to send detection instructions to at least two detection program components respectively; wherein the detection program component can generate a detection task based on the detection instruction; the detection task includes a target detection item of the target mobile application and application information of the target mobile application; wherein the target detection items included in the detection tasks generated by different detection program components are different.

[0377] In the disclosed embodiment, after receiving a detection request for a target mobile application, the server will generate a corresponding detection instruction, and then send the detection instruction to multiple detection program components associated with itself. Each detection program component will generate a detection task based on the detection instruction, and the detection task includes a target detection item of the target mobile application and application information of the target mobile application. The detection tasks generated by different detection program components contain different target detection items, so each detection program component will synchronously perform different types of detection on the target mobile application. That is, in the disclosed embodiment, different types of detection can be performed on the target mobile application from different problem angles through multiple detection program components, so that detection results for different dimensions can be obtained later, and the detection results are more comprehensive. Based on the detection results, a more accurate judgment of the target mobile application can also be made. In different embodiments, there is no need to rewrite the same content.

[0378] In some embodiments, the application detection device may further include:

[0379] A first registration information receiving module is used to receive input program component registration information; wherein the program component registration information includes: detection plug-in information corresponding to the newly added detection program component, attribute information of the newly added detection program component, and the number of first program components corresponding to the newly added detection program component;

[0380] A program component configuration module, used to configure a newly added detection program component connected to the server according to the program component registration information;

[0381] The initialization module is used to send initialization information to the newly added detection program component after the configuration is completed, wherein the newly added detection program component can initialize the first program component corresponding to itself.

[0382] In this embodiment, after the development of a new detection program component is completed, the user can register the detection program component with the server. After the newly added detection program component is registered, it will start to initialize its first program component, so that after the initialization is completed, the newly added detection program component can be put into use. In this way, the user can increase the type and quantity of the detection program component according to his own needs, thereby achieving the purpose of customizing the detection program component and enriching the detection type combination during mobile application detection.

[0383] In some other embodiments, the application detection device may further include:

[0384] A plug-in receiving module, used to receive plug-in identification information of a newly added plug-in sent by the detection program component;

[0385] The plug-in saving module is used to save the plug-in identification information, wherein the server can identify the detection request containing the plug-in identification information.

[0386] In this embodiment, after completing the development of the new plug-in, the user can apply for registration with the second program component in the detection program component to which the plug-in belongs, and the second program component will automatically and synchronously push the plug-in registration information to the server for storage to ensure that the server can recognize and receive the detection task containing the new plug-in. At the same time, the second program component will suspend the subsequent tasks of the first program component and update the plug-in library of the first program component when the first program component completes the current task, so that the new plug-in can be added to the plug-in library of the first program component without external perception. Repeat this operation until all the plug-in libraries of the first program component are updated. In this case, the user can customize the registration plug-in in the detection program component according to demand, thereby increasing the detection items in the detection program component, that is, realizing the customization of the detection items, and improving the flexibility of the detection items during mobile application detection.

[0387] Based on the above method embodiment, the embodiment of the present application further provides an application detection device, which is applied to detect a program component, wherein the detection program component includes a second program component and at least two first program components; Figure 6 is a block diagram of an application detection device for detecting program components according to an exemplary embodiment. Figure 6 The device includes a first sub-device applied to the second program component and a second sub-device applied to the first program component; the first sub-device includes:

[0388] The instruction receiving module 610 is used to receive the detection instruction sent by the server; the detection instruction includes application information of the target mobile application;

[0389] A task generation module 620, used to generate a detection task based on the detection instruction;

[0390] A program component selection module 630, configured to select at least one first program component as a target program component according to the working status of each first program component;

[0391] The queue joining module 640 is used to join the detection task to the target task queue of the target program component; the detection task includes the target detection item of the target mobile application and the application information of the target mobile application; wherein the target detection items included in the detection tasks generated by different detection program components are different.

[0392] In this embodiment, the second program component in the detection program component receives the detection instruction, generates the detection task, and selects the first program component to perform, that is, the second program component acts as a task scheduler to be responsible for the generation and scheduling of the detection task. In this case, the second program component can be used to control the allocation of the detection task, so that the detection tasks allocated to each first program component can be more balanced, avoiding the situation where the detection task waiting time is too long, and improving the efficiency of task processing.

[0393] In some embodiments, the second sub-device may include:

[0394] An installation package acquisition module, used to acquire the application installation package from the first database;

[0395] A detection item acquisition module is used to obtain target detection items from the detection task;

[0396] The detection module is used to perform detection operations corresponding to target detection items on the target mobile application based on the application installation package.

[0397] In this embodiment, the target program component can obtain the application installation package of the target mobile application from the first database, that is, the application installation package is stored in the first database. In this case, the server does not need to store and send the application installation package, thereby reducing the storage space occupied by the application installation package on the server.

[0398] In some other embodiments, the program component selection module 630 may include:

[0399] A searching unit, configured to search for a first program component that is not currently processing a task according to the working status of each first program component;

[0400] A first target confirmation unit is used to, if there is a first program component that is not currently performing task processing, use the first program component that is not currently performing task processing as a target program component;

[0401] The second target confirmation unit is used to calculate the availability possibility of each first program component when all the first program components are in the task processing period, and take the first program component with the highest availability possibility as the target program component.

[0402] In this embodiment, after receiving the detection instruction, the second program component will first find at least one first program component that is not currently processing a task according to the working status of each first program component. In this case, after the detection task is assigned, the first program component as the target program component can quickly start processing the detection task, avoiding the situation where the detection task needs to wait for a period of time as much as possible, thereby improving the detection efficiency. In addition, when all first program components are processing tasks, the second program component needs to select a first program component that may complete the existing task the fastest as the target program component. In this embodiment, the efficiency of each first program component in completing the existing task is quantified by the available possibility, so that the target program component finally selected can start processing the detection task as soon as possible.

[0403] In a further embodiment, the second target confirmation unit may include:

[0404] an average size calculation unit, configured to calculate an average size of each application for which the first program component has completed detection;

[0405] an application size calculation unit, configured to obtain a size of an application currently being detected by each first program component;

[0406] an average time calculation unit, configured to calculate an average execution time of each application for which the first program component has completed detection;

[0407] an execution time calculation unit, configured to obtain the execution time of the application currently being detected by each first program component;

[0408] The availability possibility calculation unit is used to calculate the availability possibility of each first program component according to the first difference between the average size and the application size and the second difference between the average execution time and the execution time, and take the first program component with the highest availability possibility as the target program component.

[0409] In this embodiment, the average size and average execution time of applications that have been detected by the first program component are compared with the size and execution time of the application currently being detected by the first program component to obtain the availability possibility of the first program component. The larger the availability possibility, the faster the first program component is likely to complete the current detection task. Therefore, after the detection task is assigned to the first program component, the first program component is likely to complete the detection task faster, thereby maximizing the detection efficiency.

[0410] In some other embodiments, the second sub-device may further include:

[0411] A return response module, used for, when the target program component does not support any one of the target detection items, the target program component returns a return response to the second program component, the return response is used to inform the second program component that the detection task is not processed;

[0412] The detection module is specifically used for: when the target program component supports at least one of the target detection items, based on the application installation package, performing a detection operation corresponding to the target detection item supported by the target mobile application.

[0413] In this embodiment, after receiving the detection task, the target program component will determine whether it supports the target detection items in the detection task. The judgment process can directly compare the target detection items with the detection items contained in itself, or can also compare the plug-in corresponding to the target detection item with the plug-in contained in itself. If any one of the target detection items is not supported, it means that the target program component cannot perform the detection task, so the detection task is returned, and the second program component is informed that the detection task has not been processed. The second program component will be redistributed to other first program components for processing. If the current target program component supports at least one target detection item, the target program component starts the detection process. Through the above method, automatic error correction can be achieved in the detection task allocation process, rather than direct error reporting, thereby improving the reliability of the application detection process.

[0414] In some other embodiments, first, when the detection program component is a static scanning program component, the detection module includes:

[0415] The dependency parsing unit is used to parse the plugin dependencies corresponding to the target detection items it supports;

[0416] A decompilation unit, used for decompiling the target component of the installation package of the target mobile application after parsing to obtain a decompilation result;

[0417] A first scanning logic parsing unit, used to parse the plug-in scanning logic corresponding to the target detection item supported by itself;

[0418] The first code execution unit is used to parse and obtain the plug-in scanning logic, execute the scanning code corresponding to the target detection item supported by itself, and detect the decompilation result.

[0419] In this embodiment, the main detection process in the static scanning program component is:

[0420] Analyze plugin dependencies -> decompile corresponding components of apk -> analyze plugin scanning logic -> execute specific scanning code -> obtain scanning results.

[0421] 2. When the detection program component is a dynamic scanning program component, the detection module specifically includes:

[0422] A first configuration item parsing unit, used to parse the plug-in configuration items corresponding to the target detection items supported by the unit;

[0423] The resource startup unit is used to start the real machine resources / simulator resources after parsing is completed to create a dynamic sandbox environment;

[0424] An application launching unit, used to launch the target mobile application in the dynamic sandbox environment after the creation is completed;

[0425] A second scanning logic parsing unit, used to parse the plug-in scanning logic corresponding to the target detection items supported by itself;

[0426] The second code execution unit is used to parse and obtain the plug-in scanning logic, and then execute the scanning code corresponding to the target detection item supported by itself to detect the target mobile application.

[0427] In this embodiment, the main detection process of the dynamic scanning program component is:

[0428] Analyze the plug-in configuration items->Start the real machine resources / simulator resources->Create a dynamic sandbox environment->Start the tested application->Analyze the plug-in scanning logic->Execute the specific scanning code->Get the scanning results.

[0429] 3. In the case where the detection program component is a virus detection program component, the detection module specifically includes:

[0430] The second configuration item parsing unit is used to parse the plug-in configuration items corresponding to the target detection items supported by itself;

[0431] An environment building unit, used to load target virus detection program component resources and create a virus scanning operating environment;

[0432] The third scanning logic parsing unit is used to parse the plug-in scanning logic corresponding to the target detection items supported by itself after the creation is completed;

[0433] The logic execution unit is used to run the target mobile application in the virus scanning operation environment and synchronously execute the virus scanning logic to detect the target mobile application.

[0434] In this embodiment, the main detection process of the virus detection program component is:

[0435] Parse the plug-in configuration items -> load specific virus detection program component resources -> create a virus scanning runtime environment -> load the plug-in scanning logic -> run the tested sample -> synchronously execute the virus scanning logic -> obtain the scanning results.

[0436] In some other embodiments, the first sub-device may further include:

[0437] A program component availability calculation module, used to calculate the program component availability of the target detection program component to which it belongs;

[0438] The expansion module is used to expand the number of first program components included in the target detection program component according to preset configuration items when the availability of the program component is lower than a first preset threshold.

[0439] In the present embodiment, the second program component will calculate the program component availability of the target detection program component to which it belongs. If the calculated program component availability value is lower than the set first preset threshold value, for example, 0.6, it indicates that the number of the first program components included in the current target detection program component cannot meet too many detection tasks, so it is necessary to expand the number of the first program components according to the configuration item. If the program component availability value is not lower than the first preset threshold value, it indicates that the number of the first program components included in the current target detection program component can meet the detection task, so it is not necessary to expand the number of the first program components. In the expansion process, the program component availability can be calculated once every first preset time. If the program component availability is not lower than the first preset threshold value, the expansion is stopped. If it is still lower than the first preset threshold value, the first program component continues to be expanded. In this way, the embodiment of the present application supports the expansion of the dynamic first program component, improves the high availability of the detection program component, thereby improving the detection efficiency of the detection program component, reducing the situation where the detection task is suspended for a long time, avoiding the bottleneck problem encountered in the detection performance, and ensuring the stability of the overall performance of the detection program component.

[0440] In some embodiments, the program component availability calculation module may include:

[0441] A time calculation unit, used to calculate the average waiting time and average resumption execution time of the target detection program component; wherein the average waiting time is the ratio between the sum of the waiting times of all waiting tasks corresponding to the target detection program component and the total number of waiting tasks; the average resumption execution time is the ratio between the sum of the time differences corresponding to each waiting task and the total number of waiting tasks, and the time difference is the time difference between each waiting task from creation to start of execution;

[0442] A sum value calculation unit, used for calculating the sum of the average waiting time and the average recovery execution time to obtain a first sum value;

[0443] The ratio calculation unit is used to calculate the ratio of the average waiting time to the first sum value to obtain the availability of the program component.

[0444] In this embodiment, the availability of the program component is calculated using the waiting time and the number of waiting tasks corresponding to each waiting task of the target detection program component. Since the longer the waiting time, the more waiting tasks there are, which indicates that the number of the current first program component is insufficient to support the execution of the detection task. Therefore, the availability of the program component is calculated based on the above parameters, that is, the calculated availability of the program component can reflect whether there is a need to expand the first program component, so that the second program component can expand the number of the first program component under appropriate circumstances, ensuring the detection efficiency of the entire detection program component and the stability during the task detection process.

[0445] In a further embodiment, the above-mentioned preset configuration items include an extension duration and an extension step, and the extension module includes:

[0446] a timing unit, configured to start timing of the second program component when the availability of the program component is lower than a first preset threshold;

[0447] The quantity expansion unit is used to expand the quantity of the first program component according to the expansion step when the timing duration has not reached the expansion duration.

[0448] In this embodiment, the number of first program components will be expanded within the expansion duration according to a specific expansion step. For example, if the configuration item is (0.6, 1, 30), it means that the program component availability is lower than 0.6, and it will be expanded at an expansion speed with a step size of 1, and the expansion time lasts for 30 seconds, that is, one first program component is added per second. In this case, the program component availability can be calculated again after the timing duration reaches the expansion duration, that is, the first preset duration can be equal to the expansion duration. This expansion method, which adds the same number of first program components each time, can make the expansion process of the first program component more stable. Alternatively, the expansion interval can also be limited in the configuration item, for example, a first program component is added every 2 seconds, and the duration is 30 seconds.

[0449] In some other embodiments, the first sub-device may further include:

[0450] The quantity recovery module is used to restore the number of the first program components included in the target detection program component to an initial value by the second program component when the availability of the program component is higher than a second preset threshold; wherein the second preset threshold is greater than the first preset threshold.

[0451] In this embodiment, when the availability of a program component is greater than a second preset threshold, for example greater than 0.95, it means that the current processing capacity of the first program component is significantly greater than the required number of tasks, and there is a surplus of first program components. Therefore, this embodiment controls the number of first program components to be restored to the initial setting, thereby improving the utilization efficiency of the first program component while ensuring the basic operating capacity.

[0452] In some further embodiments, the first sub-device may further include:

[0453] A plug-in registration receiving module is used to receive plug-in registration information for a newly added plug-in;

[0454] A plug-in adding module is used to control the target first program component that has completed the current task to suspend subsequent tasks, and to add a new plug-in to the plug-in library of the target first program component according to the plug-in registration information;

[0455] A plug-in identification information sending module is used to resume the execution of subsequent tasks of the target first program component when a new plug-in is added to the plug-in library of the target first program component, and to send the plug-in identification information of the new plug-in to the server; wherein the server can save the plug-in identification information, and the server can identify the detection request containing the plug-in identification information.

[0456] In this embodiment, after completing the development of the new plug-in, the user can apply for registration with the second program component in the detection program component to which the plug-in belongs, and the second program component will automatically and synchronously push the plug-in registration information to the server for storage to ensure that the server can recognize and receive the detection task containing the new plug-in. At the same time, the second program component will suspend the subsequent tasks of the first program component and update the plug-in library of the first program component when the first program component completes the current task, so that the new plug-in can be added to the plug-in library of the first program component without external perception. Repeat this operation until all the plug-in libraries of the first program component are updated. In this case, the user can customize the registration plug-in in the detection program component according to demand, thereby increasing the detection items in the detection program component, that is, realizing the customization of the detection items, and improving the flexibility of the detection items during mobile application detection.

[0457] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0458] Figure 7 is a block diagram of a server according to an exemplary embodiment. Figure 7, the device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output interface (I / O) 712 , a sensor component 714 , and a communication component 716 .

[0459] The processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.

[0460] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include instructions for any application or method operating on the device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0461] The power supply component 706 provides power to the various components of the device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 700.

[0462] The present disclosure also provides a detection program component, which includes a second program component and at least two first program components. The second program component and the first program component can refer to Figure 8 , Figure 8 8011, which further includes one or more processors, and a memory resource represented by a memory 8013, for storing instructions executable by the processing component 8011, such as an application. The application stored in the memory 8013 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 8011 is configured to execute instructions to execute the live interactive method described in any of the above embodiments.

[0463] The electronic device 801 may also include a power supply component 8015 configured to perform power management of the electronic device 801, a wired or wireless network interface 8017 configured to connect the electronic device 801 to a network, and an input / output interface (I / O) 8019. The electronic device 801 may operate based on an operating system stored in the memory 8013, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, FreeBSD TM or the like.

[0464] In some embodiments of the present disclosure, a storage medium is further provided. When the instructions in the storage medium are executed by the processor of the above-mentioned server or detection program component, the server or detection program component can execute the application detection method described in any of the above-mentioned embodiments.

[0465] Optionally, the storage medium may be a non-transitory computer-readable storage medium. Exemplarily, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0466] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that 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 specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0467] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An application detection method, applied to a server, characterized in that: The method comprises: receiving a detection request for at least one target mobile application to be detected; generating a detection instruction based on the detection request; the detection request including application information of the target mobile application; The detection instruction is sent to at least two second program components respectively, wherein the detection instruction is used to instruct the at least two second program components to generate a detection task; the detection task is at least used to record the target detection items of the target mobile application and the application information of the target mobile application; wherein the detection program component includes one second program component and at least two first program components, and the target detection items contained in the detection tasks generated by different detection program components are different; the detection task is used to instruct the second program component to search for the first program component that is not currently performing task processing according to the working status of each of the first program components; in the case that there is the first program component that is not currently performing task processing, the second program component uses the first program component that is not currently performing task processing as the target program component; in the case that all the first program components are in the task processing period, the second program component calculates the available possibility of each of the first program components, and uses the first program component with the highest available possibility as the target program component; the second program component adds the detection task to the target task queue of the target program component.

2. The application detection method according to claim 1, characterized in that: Before sending the detection instruction to the at least two second program components respectively, the method further includes: Receive input program component registration information; wherein the program component registration information includes: detection plug-in information corresponding to the newly added detection program component, attribute information of the newly added detection program component, and the number of first program components corresponding to the newly added detection program component; the newly added detection program component includes a second program component and at least two first program components, and the newly added detection program component is used to initialize the first program component corresponding to itself; According to the program component registration information, parameters of the newly added detection program component connected to the server are configured, wherein the parameters include at least one of the detection plug-in information, attribute information and the number of the first program components of the newly added detection program component.

3. The application detection method according to claim 1, characterized in that: The method further comprises: Receiving plug-in identification information of a newly added plug-in sent by the detection program component; the plug-in identification information is used as information for identifying the newly added plug-in; The plug-in identification information is saved, wherein the server is used to identify a detection request including the plug-in identification information.

4. The application detection method according to claim 3, characterized in that: The sending the detection instruction to at least two second program components respectively includes: Based on the plug-in identification information, determining a target second program component among the at least two second program components; The detection instruction is sent to the target second program component.

5. An application detection method, applied to detecting program components, characterized in that: The detection program component includes a second program component and at least two first program components; the method includes: The second program component receives a detection instruction sent by a server; the detection instruction includes application information of a target mobile application; The second program component generates a detection task based on the detection instruction; The second program component selects at least one of the first program components as a target program component according to the working status of each of the first program components; The second program component adds the detection task to the target task queue of the target program component; the detection task includes the target detection item of the target mobile application and the application information of the target mobile application; wherein the detection tasks generated by different detection program components include different target detection items; The second program component selects at least one of the first program components as a target program component according to the working status of each of the first program components, including: The second program component searches for the first program component that is not currently processing a task according to the working status of each of the first program components; In the case that there is the first program component that is not currently processing a task, the second program component uses the first program component that is not currently processing a task as the target program component; When all of the first program components are in task processing, the second program component calculates the availability possibility of each of the first program components and uses the first program component with the highest availability possibility as the target program component.

6. The method according to claim 5, characterized in that After the second program component adds the detection task to the target task queue of the target program component, the method further includes: The target program component obtains the application installation package from the first database; The target program component obtains the target detection item from the detection task; The target program component performs a detection operation corresponding to the target detection item on the target mobile application based on the application installation package.

7. The method according to claim 5, characterized in that The method further comprises: The second program component receives plug-in registration information for the newly added plug-in; The second program component controls the target first program component that has completed the current task to suspend subsequent tasks, and adds the newly added plug-in to the plug-in library of the target first program component according to the plug-in registration information; The second program component resumes execution of subsequent tasks of the target first program component when adding the newly added plug-in to the plug-in library of the target first program component, and sends plug-in identification information of the newly added plug-in to the server; The server stores the plug-in identification information, wherein the server is used to identify a detection request including the plug-in identification information.

8. The application detection method according to claim 5, characterized in that: The second program component calculates the available possibility of each of the first program components, including: The second program component calculates an average size of each application that has been detected by the first program component; The second program component obtains the size of each application currently being detected by the first program component; The second program component calculates an average execution time of each application that has been detected by the first program component; The second program component obtains the execution time of each application currently being detected by the first program component; The second program component calculates the availability possibility of each of the first program components according to a first difference between the average size and the application size and a second difference between the average execution time and the execution time.

9. The application detection method according to claim 5, characterized in that: The method further comprises: The second program component calculates the program component availability of the target detection program component to which the second program component belongs; When the availability of the program component is lower than a first preset threshold, the second program component expands the number of the first program components included in the target detection program component according to preset configuration items to obtain the updated target detection program component.

10. The application detection method according to claim 9, characterized in that: The second program component calculates the program component availability of the target detection program component to which the second program component belongs, including: The second program component calculates the average waiting time and the average resumption execution time of the target detection program component; wherein the average waiting time is the ratio between the sum of the waiting times of all waiting tasks corresponding to the target detection program component and the total number of the waiting tasks; the average resumption execution time is the ratio between the sum of the time differences corresponding to each of the waiting tasks and the total number of the waiting tasks, and the time difference is the time difference between the creation and the start of execution of each waiting task; The second program component calculates the sum of the average waiting time and the average resumption execution time to obtain a first sum value; The second program component calculates a ratio of the average waiting time to the first sum value to obtain the program component availability.

11. The application detection method according to claim 9 or 10, characterized in that: The preset configuration item includes an expansion duration and an expansion step length, and when the availability of the program component is lower than a first preset threshold, the second program component expands the number of the first program components included in the target detection program component according to the preset configuration item, including: When the availability of the program component is lower than the first preset threshold, the second program component starts timing; When the timing duration does not reach the expansion duration, the second program component expands the quantity of the first program component according to the expansion step.

12. The application detection method according to claim 9 or 10, characterized in that: After the first program component calculates the program component availability of the detection program component, the method further includes: When the availability of the program component is higher than a second preset threshold, the second program component restores the number of first program components included in the target detection program component to an initial value; wherein the second preset threshold is greater than the first preset threshold.

13. The application detection method according to claim 6, characterized in that: After the target program component obtains the target detection item from the detection task, the method further includes: In the case that the target program component does not support any one of the target detection items, the target program component returns a return response to the second program component, where the return response is used to inform the second program component that the detection task is not processed; The performing the detection operation corresponding to the target detection item on the application installation package includes: In a case where the target program component supports at least one of the target detection items, the target program component performs a detection operation corresponding to the target detection item supported by the target program component on the target mobile application based on the application installation package.

14. The application detection method according to claim 13, characterized in that: The target program component detects the target mobile application based on the target detection items supported by the target program component, including: In the case where the detection program component is a static scanning program component, the target program component resolves the plug-in dependency corresponding to the target detection item supported by the target program component; After the parsing is completed, the target program component decompiles the target component of the installation package of the target mobile application to obtain a decompilation result; The target program component parses the plug-in scanning logic corresponding to the target detection item supported by itself; After parsing and obtaining the plug-in scanning logic, the target program component executes the scanning code corresponding to the target detection item supported by itself, and detects the decompilation result.

15. The application detection method according to claim 13, characterized in that: The target program component detects the target mobile application based on the target detection items supported by the target program component, including: In the case where the detection program component is a dynamic scanning program component, the target program component parses the plug-in configuration item corresponding to the target detection item supported by itself; After parsing is completed, the target program component starts the real machine resources / simulator resources to create a dynamic sandbox environment; After the creation is completed, the target program component starts the target mobile application in the dynamic sandbox environment; The target program component parses the plug-in scanning logic corresponding to the target detection item supported by itself; After parsing and obtaining the plug-in scanning logic, the target program component executes the scanning code corresponding to the target detection item supported by itself to detect the target mobile application.

16. The application detection method according to claim 13, characterized in that: The target program component detects the target mobile application based on the target detection items supported by the target program component, including: In the case where the detection program component is a virus detection program component, the target program component parses the plug-in configuration item corresponding to the target detection item supported by the target program component; The target program component loads the target virus detection program component resources and creates a virus scanning operating environment; After the creation is completed, the target program component parses the plug-in scanning logic corresponding to the target detection item supported by itself; The target program component runs the target mobile application in the virus scanning operating environment and simultaneously executes virus scanning logic to detect the target mobile application.

17. An application detection device, applied to a server, characterized in that: The device comprises: A request receiving module, configured to receive a detection request for at least one target mobile application to be detected; An instruction generation module is configured to generate a detection instruction based on the detection request; the detection request includes application information of the target mobile application; An instruction sending module is configured to execute sending the detection instruction to at least two second program components respectively; wherein the at least two second program components generate a detection task based on the detection instruction; the detection task includes the target detection item of the target mobile application and the application information of the target mobile application; wherein the detection program component includes one second program component and at least two first program components, and the target detection items contained in the detection task generated by different detection program components are different; the detection task is used to instruct the second program component to search for the first program component that is not currently performing task processing according to the working status of each of the first program components; in the case that there is the first program component that is not currently performing task processing, the second program component uses the first program component that is not currently performing task processing as the target program component; in the case that all the first program components are in the task processing period, the second program component calculates the available possibility of each of the first program components, and uses the first program component with the highest available possibility as the target program component; the second program component adds the detection task to the target task queue of the target program component.

18. The application detection device according to claim 17, characterized in that: The application detection device also includes: The first registration information receiving module is configured to execute and receive input program component registration information; wherein the program component registration information includes: detection plug-in information corresponding to the newly added detection program component, attribute information of the newly added detection program component, and the number of first program components corresponding to the newly added detection program component; the newly added detection program component includes a second program component and at least two first program components, and the newly added detection program component is used to initialize the first program component corresponding to itself; The program component configuration module is configured to execute, according to the program component registration information, the newly added detection program component connected to the server is configured to execute.

19. The application detection device according to claim 18, characterized in that: The instruction sending module comprises: A sending object determination module is configured to determine a sending object target second program component among the at least two second detection program components based on the plug-in identification information; The detection instruction sending module is configured to send the detection instruction to the second program component of the sending object.

20. The application detection device according to claim 17, characterized in that: The application detection device also includes: A plug-in receiving module, configured to receive plug-in identification information of a newly added plug-in sent by the detection program component; The plug-in saving module is configured to determine a target second program component among the at least two second program components based on the plug-in identification information; and send the detection instruction to the target second program component.

21. An application detection device, used for detecting program components, characterized in that: The detection program component includes a second program component and at least two first program components; the device includes a first sub-device that should be configured to execute the second program component and a second sub-device applied to the first program component; The first sub-device comprises: An instruction receiving module is configured to execute a detection instruction sent by a receiving server; the detection instruction includes application information of a target mobile application; A task generation module, configured to generate a detection task based on the detection instruction; a program component selection module, configured to select at least one of the first program components as a target program component according to the working status of each of the first program components; A queue adding module is configured to execute adding the detection task to the target task queue of the target program component; the detection task includes the target detection item of the target mobile application and the application information of the target mobile application; wherein the target detection items included in the detection tasks generated by different detection program components are different; The program component selection module includes: A searching unit, configured to search for the first program components that are not currently processing tasks according to the working status of each of the first program components; A first target confirmation unit is configured to execute, in the case where there is the first program component that is not currently processing a task, taking the first program component that is not currently processing a task as the target program component; The second target confirmation unit is configured to calculate the availability possibility of each of the first program components when all of the first program components are in task processing, and use the first program component with the highest availability possibility as the target program component.

22. The application detection device according to claim 21, characterized in that: The second sub-device comprises: An installation package acquisition module, configured to execute acquisition of the application installation package from the first database; A detection item acquisition module, configured to acquire the target detection item from the detection task; The detection module is configured to perform a detection operation corresponding to the target detection item on the target mobile application based on the application installation package.

23. The application detection device according to claim 21, characterized in that: The first sub-device also includes: A plug-in registration receiving module is configured to receive plug-in registration information for a newly added plug-in; A plug-in adding module is configured to execute control to complete the current task of the target first program component to suspend subsequent tasks, and add the newly added plug-in to the plug-in library of the target first program component according to the plug-in registration information; A plug-in identification information sending module is configured to resume the execution of subsequent tasks of the target first program component when the newly added plug-in is added to the plug-in library of the target first program component, and send the plug-in identification information of the newly added plug-in to the server; wherein the server saves the plug-in identification information and is able to identify detection requests containing the plug-in identification information.

24. The application detection device according to claim 23, characterized in that: The second target confirmation unit includes: An average size calculation unit, configured to calculate an average size of each application that has completed detection by the first program component; An application size calculation unit, configured to execute obtaining the application size currently being detected by each of the first program components; An average time calculation unit, configured to calculate an average execution time of each application that has completed detection of the first program component; an execution time calculation unit, configured to obtain the execution time of each application currently being detected by the first program component; The availability possibility calculation unit is configured to calculate the availability possibility of each of the first program components based on a first difference between the average size and the application size and a second difference between the average execution time and the execution time, and take the first program component with the highest availability possibility as the target program component.

25. The application detection device according to claim 21, characterized in that: The first sub-device also includes: A program component availability calculation module is configured to calculate the program component availability of the target detection program component to which it belongs; The expansion module is configured to expand the number of first program components included in the target detection program component according to preset configuration items when the availability of the program component is lower than a first preset threshold.

26. The application detection device according to claim 25, characterized in that: The program component availability calculation module includes: A time calculation unit is configured to calculate the average waiting time and the average resumption execution time of the target detection program component; wherein the average waiting time is the ratio between the sum of the waiting times of all waiting tasks corresponding to the target detection program component and the total number of the waiting tasks; the average resumption execution time is the ratio between the sum of the time differences corresponding to each of the waiting tasks and the total number of the waiting tasks, and the time difference is the time difference between each of the waiting tasks from creation to start of execution; a sum value calculation unit, configured to calculate the sum of the average waiting time and the average resumption execution time to obtain a first sum value; The ratio calculation unit is configured to calculate the ratio of the average waiting time to the first sum value to obtain the program component availability.

27. The application detection device according to claim 25 or 26, characterized in that: The preset configuration items include an extension duration and an extension step length, and the extension module includes: A timing unit, configured to execute, when the availability of the program component is lower than the first preset threshold, the second program component starts timing; The quantity expansion unit is configured to execute, when the timing duration does not reach the expansion duration, the second program component expands the quantity of the first program component according to the expansion step.

28. The application detection device according to claim 25 or 26, characterized in that: The first sub-device also includes: The quantity recovery module is configured to execute, when the availability of the program component is higher than a second preset threshold, the second program component restores the number of the first program components included in the target detection program component to an initial value; wherein the second preset threshold is greater than the first preset threshold.

29. The application detection device according to claim 22, characterized in that: The second sub-device further includes: A return response module is configured to execute, when the target program component does not support any one of the target detection items, the target program component returns a return response to the second program component, and the return response is configured to execute to inform the second program component that the detection task is not processed; The detection module is specifically configured to execute: when the target program component supports at least one of the target detection items, based on the application installation package, performing a detection operation corresponding to the target detection item supported by the target mobile application.

30. The application detection device according to claim 29, characterized in that: In the case where the detection program component is a static scanning program component, the detection module includes: A dependency parsing unit, configured to perform parsing of plug-in dependencies corresponding to the target detection items supported by the unit; A decompilation unit is configured to, after the parsing is completed, decompile the target component of the installation package of the target mobile application to obtain a decompilation result; A first scanning logic parsing unit is configured to execute and parse the plug-in scanning logic corresponding to the target detection item supported by itself; The first code execution unit is configured to execute the scanning code corresponding to the target detection item supported by itself after parsing to obtain the plug-in scanning logic, and detect the decompilation result.

31. The application detection device according to claim 29, characterized in that: In the case where the detection program component is a dynamic scanning program component, the detection module specifically includes: A first configuration item parsing unit, configured to parse the plug-in configuration item corresponding to the target detection item supported by the unit; The resource startup unit is configured to start the real machine resources / simulator resources after the parsing is completed to create a dynamic sandbox environment; An application launching unit, configured to launch the target mobile application in the dynamic sandbox environment after the creation is completed; A second scanning logic parsing unit is configured to execute and parse the plug-in scanning logic corresponding to the target detection item supported by itself; The second code execution unit is configured to execute the scanning code corresponding to the target detection item supported by itself to detect the target mobile application after parsing to obtain the plug-in scanning logic.

32. The application detection device according to claim 29, characterized in that: In the case where the detection program component is a virus detection program component, the detection module specifically includes: A second configuration item parsing unit is configured to parse the plug-in configuration item corresponding to the target detection item supported by the unit; An environment building unit is configured to execute and load target virus detection program component resources and create a virus scanning operating environment; A third scanning logic parsing unit is configured to execute, after the creation is completed, parsing the plug-in scanning logic corresponding to the target detection item supported by itself; The logic execution unit is configured to execute the target mobile application in the virus scanning operation environment and synchronously execute the virus scanning logic to detect the target mobile application.

33. A server, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the application detection method according to any one of claims 1 to 4.

34. A detection program component, characterized in that The detection program component includes a second program component and at least two first program components, wherein the second program component and the first program component respectively include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the application detection method as described in any one of claims 5 to 16.

35. A storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of the server, the server is enabled to execute the application detection method as claimed in any one of claims 1 to 4.

36. A storage medium, characterized in that When the instructions in the storage medium are executed by the processor of the detection program component, the detection program component is enabled to execute the application detection method as described in any one of claims 5 to 16.

Citation Information

Patent Citations

  • Software customization server, software customization method and computer readable storage medium

    CN107688464A

  • Cloud distributed detection method and system and related device

    CN108429754A

  • Virus detection method and device for file and storage medium

    CN108563952A

  • A method and apparatus for managing components in a cloud computing system

    CN109101367A

  • Service component processing method, component server and system

    CN109359147A