Malicious program detection method, device, equipment and storage medium

By monitoring the current detection mode and waiting queue status and dynamically switching the detection mode, the problem of difficult to take into account both detection efficiency and depth in the prior art is solved, and efficient detection under changes in the propagation of malicious programs is achieved.

CN113961921BActive Publication Date: 2024-11-05BEIJING TOPSEC NETWORK SECURITY TECH +2
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111234255.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2024-11-05
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

The existing malicious program detection system is difficult to take into account the detection efficiency and depth of detection in different network environments and scenarios, resulting in poor detection results.

Method used

By monitoring the status of the current detection mode and waiting queue, dynamically switch the detection mode, switch from static analysis mode to deep analysis mode or vice versa, optimize the detection mode according to conditions such as duration and proportion to adapt to changes in the propagation of malicious programs.

Benefits of technology

It improves the depth and efficiency of detection, optimizes the use of system resources, enhances the accuracy and adaptability of detection, and takes into account the detection needs in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113961921B_ABST
    Figure CN113961921B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a malicious program detection method, device, equipment and storage medium, wherein the method includes: obtaining the current detection mode; if the current detection mode is the static analysis mode, monitoring the first duration of the static analysis mode and the proportion of programs to be detected in the waiting queue; if the first duration and the proportion meet the first switching condition, switching the current detection mode to the deep analysis mode; if the current detection mode is the deep analysis mode, monitoring the second duration of the waiting queue being full and the third duration of the deep analysis mode; if the second duration and the third duration meet the second switching condition, switching the current detection mode to the static analysis mode. According to the technical solution disclosed in the present disclosure, intelligent switching between the static analysis mode and the deep analysis mode can be realized, and the detection efficiency and the detection resource utilization rate can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a malicious program detection method, device, equipment and storage medium. Background Art

[0002] At present, malicious programs such as viruses, worms and Trojan horses spread quickly and affect a wide range, posing a serious threat to the security of the network environment.

[0003] In the related art, a detection mode is set by a malicious program detection system to determine detection parameters, and malicious programs are detected according to the detection mode. Since the propagation frequency of malicious programs varies in different time periods, different network environments, and different server business scenarios, this solution is difficult to take into account both detection efficiency and detection depth for different scenarios. Summary of the invention

[0004] In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a malicious program detection method.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for detecting malicious programs, including:

[0006] Get the current detection mode;

[0007] If the current detection mode is a static analysis mode, monitoring a first duration of the static analysis mode and a proportion of programs to be detected in the waiting queue;

[0008] When the first duration and the proportion meet a first switching condition, switching the current detection mode to a depth analysis mode;

[0009] If the current detection mode is the deep analysis mode, monitoring a second duration of the waiting queue being in a full state and a third duration of the deep analysis mode;

[0010] When the second duration and the third duration satisfy a second switching condition, the current detection mode is switched to the static analysis mode.

[0011] Optionally, when the first duration and the proportion satisfy a first switching condition, the current detection mode is switched to a deep analysis mode, including: when it is detected that the proportion is less than a preset proportion threshold, determining whether the first duration is greater than a first time threshold; if the first duration is greater than the first time threshold, determining that the first switching condition is satisfied, and switching the current detection mode to a deep analysis mode.

[0012] Optionally, when the second duration and the third duration satisfy a second switching condition, the current detection mode is switched to the static analysis mode, including: when it is detected that the second duration is greater than a second time threshold, determining whether the third duration is greater than a first time threshold; if the third duration is greater than the first time threshold, determining that the second switching condition is satisfied, and switching the current detection mode to the static analysis mode.

[0013] Optionally, after detecting that the second duration is greater than a second time threshold, it also includes: obtaining the number of turned-on analysis machines, and determining whether the number is greater than or equal to a preset number; when the number is less than the preset number, controlling the unturned analysis machines to turn on and repeatedly executing the steps of detecting that the second duration is greater than the second time threshold, obtaining the number of turned-on analysis machines, and determining whether the number is greater than or equal to the preset number, until the number is greater than or equal to the preset number; when the number is greater than or equal to the preset number, executing the step of determining whether the third duration is greater than the first time threshold.

[0014] Optionally, the method also includes: obtaining the current time and at least one pre-configured time period; if the current time is within a target time period in the at least one time period, obtaining the detection mode corresponding to the target time period to switch the current detection mode to the detection mode corresponding to the target time period.

[0015] In a second aspect, an embodiment of the present disclosure provides a malicious program detection device, including:

[0016] An acquisition module is used to obtain the current detection mode;

[0017] A first monitoring module, configured to monitor a first duration of the static analysis mode and a proportion of programs to be detected in a waiting queue if the current detection mode is a static analysis mode;

[0018] A first switching module, configured to switch the current detection mode to a deep analysis mode when the first duration and the proportion satisfy a first switching condition;

[0019] A second monitoring module is configured to monitor a second duration of the waiting queue being in a full state and a third duration of the deep analysis mode if the current detection mode is the deep analysis mode;

[0020] The second switching module is used to switch the current detection mode to the static analysis mode when the second duration and the third duration satisfy a second switching condition.

[0021] Optionally, the first switching module is specifically used to: when it is detected that the proportion is less than a preset proportion threshold, determine whether the first duration is greater than a first time threshold; if the first duration is greater than the first time threshold, determine that the first switching condition is met, and switch the current detection mode to a deep analysis mode.

[0022] Optionally, the second switching module is specifically used to: when it is detected that the second duration is greater than the second time threshold, determine whether the third duration is greater than the first time threshold; if the third duration is greater than the first time threshold, determine that the second switching condition is met, and switch the current detection mode to the static analysis mode.

[0023] Optionally, the second switching module is specifically used to: obtain the number of turned-on analysis machines and determine whether the number is greater than or equal to a preset number; if the number is less than the preset number, control the unturned analysis machines to turn on and repeatedly execute the steps of, when it is detected that the second duration is greater than the second time threshold, obtaining the number of turned-on analysis machines and determining whether the number is greater than or equal to the preset number, until the number is greater than or equal to the preset number; if the number is greater than or equal to the preset number, execute the step of determining whether the third duration is greater than the first time threshold.

[0024] Optionally, the device also includes: a third switching module, which obtains the current time and at least one pre-configured time period; if the current time is within a target time period in the at least one time period, obtains the detection mode corresponding to the target time period to switch the current detection mode to the detection mode corresponding to the target time period.

[0025] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the malicious program detection method described in the first aspect above.

[0026] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the malicious program detection method described in the first aspect is implemented.

[0027] The technical solution provided by the embodiments of the present disclosure has the following advantages over the prior art: when the current detection mode is the static analysis mode, the first duration of the static analysis mode and the proportion of programs to be detected in the waiting queue are monitored, and when the first duration and the proportion meet the first switching condition, the current detection mode is switched to the deep analysis mode to optimize the use of system resources and improve the detection depth and accuracy; and, when the current detection mode is the deep analysis mode, the second duration when the waiting queue is full and the third duration of the deep analysis mode are monitored, and when the second duration and the third duration meet the second switching condition, the current detection mode is switched to the static analysis mode to improve the detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

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

[0030] Figure 1 A flowchart of a malicious program detection method provided by an embodiment of the present disclosure;

[0031] Figure 2 A flowchart of another malicious program detection method provided by an embodiment of the present disclosure;

[0032] Figure 3 A schematic diagram of the structure of a malicious program detection device provided by an embodiment of the present disclosure;

[0033] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0034] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0035] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0036] Figure 1 This is a flow chart of a malicious program detection method provided in an embodiment of the present disclosure. The method provided in an embodiment of the present disclosure can be executed by a malicious program detection device, which can be implemented in software and / or hardware and can be integrated on any electronic device with computing capabilities, such as user terminals such as smartphones and tablet computers.

[0037] like Figure 1 As shown, the malicious program detection method provided by the embodiment of the present disclosure may include:

[0038] Step 101, obtaining the current detection mode.

[0039] The method of the embodiment of the present disclosure can be applied to a threat detection system, which uses a variety of virus engines, machine learning, real sandboxes, and other detection methods to identify malicious programs in the network. The detection mode is a strategy configured by the threat detection system when detecting malicious programs.

[0040] In the embodiments of the present disclosure, the detection mode may include a static analysis mode and a deep analysis mode, wherein when the threat detection system adopts the static analysis mode to detect malicious programs, a static detection method is adopted, and when the threat detection system adopts the deep analysis mode to detect malicious programs, a static + dynamic detection method is adopted. For example, the detection efficiency of the static analysis mode is greater than the detection efficiency of the deep analysis mode, and the detection capability of the deep analysis mode is greater than the detection capability of the static analysis mode.

[0041] Step 102: If the current detection mode is the static analysis mode, monitor the first duration of the static analysis mode and the proportion of programs to be detected in the waiting queue.

[0042] In this embodiment, when the static analysis mode is turned on or switched to the static analysis mode, the start time of the static analysis mode is recorded, the current time is monitored, and the first duration of the static analysis mode is determined according to the difference between the current time and the start time. Also, a waiting queue is set to add the programs to be detected to the waiting queue for detection one by one, and the proportion of the programs to be detected in the waiting queue is monitored. For example, if the length of the waiting queue is 1000, the length is determined to be 500 according to the number of programs to be detected in the waiting queue, and the proportion is determined to be 50%.

[0043] Step 103 : When the first duration and the proportion satisfy a first switching condition, the current detection mode is switched to a depth analysis mode.

[0044] In this embodiment, when the first duration and proportion meet the first switching condition, it is determined that the spread of the malicious program is small, so the current detection mode is switched to the deep analysis mode to optimize the use of system resources, improve detection accuracy, and facilitate correlation analysis.

[0045] In one embodiment of the present disclosure, when the detected proportion is less than a preset proportion threshold, it is determined whether the first duration is greater than the first time threshold, and if the first duration is greater than the first time threshold, it is determined that the first switching condition is met, and the current detection mode is switched to the deep analysis mode. Otherwise, it is determined that the first switching condition is not met, and monitoring is continued until the first switching condition is met.

[0046] Among them, in order to prevent the detection mode from switching too frequently and affecting the system stability, a first time threshold is set, and the first time threshold can be a preset default value or can be configured according to the actual network scenario. That is, after the detection mode is switched, the timing starts. If the timing time does not reach the first time threshold, the mode will not be switched even if the proportion of programs to be detected in the waiting queue is less than the preset proportion threshold.

[0047] Step 104: If the current detection mode is the deep analysis mode, monitor the second duration of the waiting queue being in a full state and the third duration of the deep analysis mode.

[0048] In this embodiment, when the deep analysis mode is turned on or switched to the deep analysis mode, the start time of the deep analysis mode is recorded, the current time is monitored, and the third duration of the deep analysis mode is determined according to the difference between the current time and the start time. Also, it is monitored whether the waiting queue is full, the time when the waiting queue becomes full is recorded, and the second duration is determined according to the difference between the current time and the time when it becomes full, wherein the full state may be that the waiting queue is full, or the proportion of the programs to be detected in the waiting queue is greater than a set value, and the set value is, for example, 90%.

[0049] Step 105: When the second duration and the third duration satisfy a second switching condition, the current detection mode is switched to a static analysis mode.

[0050] In this embodiment, when the second duration and the third duration meet the second switching condition, it is determined that the malicious program has spread to a large extent, so the current detection mode is switched to the static analysis mode to improve detection efficiency.

[0051] In one embodiment of the present disclosure, when it is detected that the second duration is greater than the second time threshold, it is determined whether the third duration is greater than the first time threshold, and if the third duration is greater than the first time threshold, it is determined that the second switching condition is met, and the current detection mode is switched to the static analysis mode. Otherwise, it is determined that the second switching condition is not met, and monitoring is continued until the second switching condition is met.

[0052] The second duration is used to indicate the waiting time of the last program to be detected added to the queue when the waiting queue is full, or the waiting time when the proportion of the programs to be detected in the waiting queue to the total length of the queue is continuously greater than the set value when the current detection mode is the deep analysis mode. The second time threshold can be a preset default value or can be configured according to the actual network scenario.

[0053] According to the technical solution of the embodiment of the present disclosure, by obtaining the current detection mode, if the current detection mode is the static analysis mode, the first duration of the static analysis mode and the proportion of the programs to be detected in the waiting queue are monitored, and when the first duration and the proportion meet the first switching condition, the current detection mode is switched to the deep analysis mode, thereby being able to switch to the deep analysis mode in a scenario where the amount of malicious program propagation is small, optimize the use of system resources, and improve the detection depth and accuracy; and, if the current detection mode is the deep analysis mode, the second duration of the waiting queue being full and the third duration of the deep analysis mode are monitored, and when the second duration and the third duration meet the second switching condition, the current detection mode is switched to the static analysis mode, thereby being able to switch to the static analysis mode in a scenario where the amount of malicious program propagation is large, thereby improving the detection efficiency, and determining the switching node by the duration and the proportion of the programs to be detected in the waiting queue, thereby realizing intelligent switching between the static analysis mode and the deep analysis mode, taking into account both the detection efficiency and the detection capability.

[0054] Based on the above embodiments, Figure 2 A flowchart of another malicious program detection method provided by the present disclosure is shown in FIG. Figure 2 , wherein, an intelligent switching function switch is set, based on which the intelligent switching function is determined to be turned on, and initialization configuration is performed, including setting a first time threshold, a second time threshold, a proportion threshold, a custom configuration, etc.

[0055] Initialize the start time of the current detection mode to the current time for subsequent judgment. In one embodiment of the present disclosure, if the current detection mode is the static analysis mode, the proportion of programs to be detected in the waiting queue is monitored. If the proportion is less than the preset proportion threshold, determine whether the first duration of the static analysis mode is greater than the first time threshold. If the first duration is greater than the first time threshold, switch the current detection mode to the deep analysis mode.

[0056] In one embodiment of the present disclosure, if the current detection mode is the deep analysis mode, the second duration of the waiting queue being full and the third duration of the deep analysis mode are monitored. When it is detected that the second duration is greater than the second time threshold, the number of enabled analysis machines is obtained, and it is determined whether the number of enabled analysis machines is greater than or equal to a preset number.

[0057] When the number of turned-on analysis machines is less than the preset number, the unturned analysis machines are controlled to be turned on and the above steps of detecting the second duration, obtaining the number of turned-on analysis machines when the second duration is detected to be greater than the second time threshold, and determining whether the number is greater than or equal to the preset number are repeatedly performed until the number of turned-on analysis machines is greater than or equal to the preset number. For example, the number of all analysis machines is taken as the preset number.

[0058] When the number of activated analysis machines is greater than or equal to the preset number, a step of determining whether the third duration is greater than the first time threshold is performed. By determining whether the third duration is greater than the first time threshold, if the third duration is greater than the first time threshold, it is determined that the second switching condition is met, and the current detection mode is switched to the static analysis mode.

[0059] In one embodiment of the present disclosure, the above-mentioned custom configuration may include at least one pre-configured time period, and by obtaining the current time and at least one pre-configured time period, if the current time is within a target time period in at least one time period, the detection mode corresponding to the target time period is obtained to switch the current detection mode to the detection mode corresponding to the target time period. In this embodiment, a mapping relationship between time periods and detection modes is set, for example, the detection mode corresponding to the time period from 0:00 to 6:00 is set as a deep analysis mode, and in the time period from 0:00 to 6:00, the deep analysis mode is fixedly used to detect malicious programs, which can meet the needs of malicious program detection in different scenarios and facilitate adaptation to the user's network scenarios and detection habits.

[0060] If there is a custom configuration, the fixed detection mode of the custom time period will be executed first. If there is no custom configuration, when executing the detection mode switch, the programs waiting to be detected in the waiting queue will be detected according to the switched detection mode. For the programs to be detected that are being detected, the detection site will be retained for continued detection. When the detection of the retained detection site is completed, the detection mode is switched and the next round of intelligent switching monitoring is carried out.

[0061] For example, the initial detection mode of the threat detection system is the deep analysis mode, the waiting queue length is 1000, and all analysis machines are turned on. Turn on the intelligent switching function switch, configure the first time threshold to 1 hour, and the second time threshold to 30 minutes. A large number of malicious programs are transmitted to the threat detection system in a linked manner to fill the waiting queue. If the waiting time is longer than 30 minutes, the detection mode is switched to the static analysis mode. Then, the linked transmission step is stopped, so that the proportion of programs to be detected in the waiting queue gradually decreases to the preset proportion threshold. If the duration of the static analysis mode is less than 1 hour, the mode is not switched and the static analysis mode is maintained. If the duration of the static analysis mode reaches 1 hour, the detection mode is switched to the deep analysis mode.

[0062] In this embodiment, the detection mode is switched by monitoring the number of programs to be detected, the number of analysis machines opened, the duration and other parameters. In the scenario where the amount of malicious programs spread is large, the static analysis mode is switched to improve the detection efficiency. In the scenario where the amount of malicious programs spread is small, the deep analysis mode is switched to optimize the use of system resources, while improving the detection depth and facilitating the correlation analysis, taking into account the detection efficiency, detection capability and resource utilization. In addition, the switching is performed when the duration of the detection mode is greater than the time threshold to avoid the jitter of frequent switching.

[0063] Figure 3 A schematic diagram of the structure of a malicious program detection device provided by an embodiment of the present disclosure is shown in FIG. Figure 3 As shown, the malicious program detection device includes: an acquisition module 31 , a first monitoring module 32 , a first switching module 33 , a second monitoring module 34 , and a second switching module 35 .

[0064] The acquisition module 31 is used to acquire the current detection mode.

[0065] The first monitoring module 32 is configured to monitor a first duration of the static analysis mode and a proportion of programs to be detected in the waiting queue if the current detection mode is the static analysis mode.

[0066] The first switching module 33 is configured to switch the current detection mode to a depth analysis mode when the first duration and the proportion satisfy a first switching condition.

[0067] The second monitoring module 34 is configured to monitor a second duration of the waiting queue being in a full state and a third duration of the deep analysis mode if the current detection mode is the deep analysis mode.

[0068] The second switching module 35 is configured to switch the current detection mode to the static analysis mode when the second duration and the third duration satisfy a second switching condition.

[0069] In one embodiment of the present disclosure, the first switching module 33 is specifically used to: when it is detected that the proportion is less than a preset proportion threshold, determine whether the first duration is greater than a first time threshold; if the first duration is greater than the first time threshold, determine that the first switching condition is met, and switch the current detection mode to a deep analysis mode.

[0070] In one embodiment of the present disclosure, the second switching module 35 is specifically used to: when it is detected that the second duration is greater than the second time threshold, determine whether the third duration is greater than the first time threshold; if the third duration is greater than the first time threshold, determine that the second switching condition is met, and switch the current detection mode to the static analysis mode.

[0071] In one embodiment of the present disclosure, the second switching module 35 is specifically used to: obtain the number of turned-on analysis machines and determine whether the number is greater than or equal to a preset number; if the number is less than the preset number, control the unturned analysis machines to turn on and repeat the steps of detecting that the second duration is greater than the second time threshold, obtaining the number of turned-on analysis machines and determining whether the number is greater than or equal to the preset number, until the number is greater than or equal to the preset number; if the number is greater than or equal to the preset number, execute the step of determining whether the third duration is greater than the first time threshold.

[0072] In one embodiment of the present disclosure, the malicious program detection device also includes: a third switching module, which obtains the current time and at least one pre-configured time period; if the current time is within a target time period in the at least one time period, obtains the detection mode corresponding to the target time period to switch the current detection mode to the detection mode corresponding to the target time period.

[0073] The malicious program detection device provided in the embodiment of the present disclosure can execute any malicious program detection method provided in the embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method. The contents not described in detail in the embodiment of the device of the present disclosure can refer to the description in any method embodiment of the present disclosure.

[0074] Figure 4 The structure diagram of an electronic device provided by the embodiment of the present disclosure is shown in FIG. Figure 4 As shown, the electronic device 600 includes one or more processors 601 and a memory 602 .

[0075] The processor 601 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 600 to perform desired functions.

[0076] The memory 602 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on a computer-readable storage medium, and the processor 601 may run the program instructions to implement the method of the embodiment of the present disclosure above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.

[0077] In one example, the electronic device 600 may further include: an input device 603 and an output device 604, which are interconnected via a bus system and / or other forms of connection mechanisms (not shown). In addition, the input device 603 may also include, for example, a keyboard, a mouse, etc. The output device 604 may output various information to the outside, including determined distance information, direction information, etc. The output device 604 may include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.

[0078] Of course, to simplify, Figure 4 Only some of the components related to the present disclosure in the electronic device 600 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 600 may also include any other appropriate components.

[0079] In addition to the above methods and devices, the embodiments of the present disclosure may also be a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, the processor executes any method provided by the embodiments of the present disclosure.

[0080] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0081] In addition, the embodiments of the present disclosure may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes any method provided by the embodiments of the present disclosure.

[0082] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0083] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0084] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for detecting malicious programs, characterized in that: include: Get the current detection mode; If the current detection mode is a static analysis mode, monitoring a first duration of the static analysis mode and a proportion of programs to be detected in the waiting queue; When the first duration and the proportion meet a first switching condition, switching the current detection mode to a depth analysis mode; If the current detection mode is the deep analysis mode, monitoring a second duration of the waiting queue being in a full state and a third duration of the deep analysis mode; When the second duration and the third duration satisfy a second switching condition, switching the current detection mode to the static analysis mode; Wherein, when the first duration and the proportion satisfy a first switching condition, switching the current detection mode to a deep analysis mode includes: When it is detected that the proportion is less than a preset proportion threshold, determining whether the first duration is greater than a first time threshold; If the first duration is greater than the first time threshold, it is determined that the first switching condition is met, and the current detection mode is switched to a deep analysis mode; Wherein, when the second duration and the third duration satisfy a second switching condition, switching the current detection mode to the static analysis mode includes: When it is detected that the second duration is greater than the second time threshold, determining whether the third duration is greater than the first time threshold; If the third duration is greater than the first time threshold, it is determined that the second switching condition is met, and the current detection mode is switched to the static analysis mode.

2. The method according to claim 1, characterized in that After detecting that the second duration is greater than a second time threshold, the method further includes: Obtaining the number of activated analysis machines, and determining whether the number is greater than or equal to a preset number; In the case where the number is less than the preset number, controlling the unactivated analysis machines to be activated and repeatedly executing the steps of, when detecting that the second duration is greater than a second time threshold, obtaining the number of activated analysis machines and determining whether the number is greater than or equal to the preset number, until the number is greater than or equal to the preset number; In a case where the number is greater than or equal to the preset number, the step of determining whether the third duration is greater than a first time threshold is performed.

3. The method according to claim 1, characterized in that Also includes: Get the current time and at least one pre-configured time period; If the current time is within a target time period in the at least one time period, a detection mode corresponding to the target time period is acquired to switch the current detection mode to a detection mode corresponding to the target time period.

4. A malicious program detection device, characterized in that: include: An acquisition module is used to obtain the current detection mode; A first monitoring module, configured to monitor a first duration of the static analysis mode and a proportion of programs to be detected in a waiting queue if the current detection mode is a static analysis mode; A first switching module, configured to switch the current detection mode to a deep analysis mode when the first duration and the proportion satisfy a first switching condition; A second monitoring module is configured to monitor a second duration of the waiting queue being in a full state and a third duration of the deep analysis mode if the current detection mode is the deep analysis mode; A second switching module, configured to switch the current detection mode to the static analysis mode when the second duration and the third duration satisfy a second switching condition; Wherein, the first switching module is specifically used for: When it is detected that the proportion is less than a preset proportion threshold, determining whether the first duration is greater than a first time threshold; If the first duration is greater than the first time threshold, it is determined that the first switching condition is met, and the current detection mode is switched to a deep analysis mode; Wherein, the second switching module is specifically used for: When it is detected that the second duration is greater than the second time threshold, determining whether the third duration is greater than the first time threshold; If the third duration is greater than the first time threshold, it is determined that the second switching condition is met, and the current detection mode is switched to the static analysis mode.

5. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the malicious program detection method described in any one of claims 1-3 above.

6. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the malicious program detection method described in any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Port mode negotiation method and device

    CN104796306A

  • Communication devices and methods for selecting a radio access mode

    CN105376840A

  • Log-based real-time single-step debugging method and device

    CN110489294A

  • Application program running mode switching method and device, electronic equipment and storage medium

    CN112083787A

  • System and method for detecting malicious links in electronic messages

    US20150007312A1