Software detection method, device, computer equipment and storage medium

By obtaining the software system object information based on the full duplex communication connection, extracting and comparing data, and combining the abnormality detection model, efficient abnormality detection of the software system is achieved, solving the problem of low detection efficiency in the prior art.

CN115766554BActive Publication Date: 2024-12-03SHENZHEN FULIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211387551.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-07
Publication Date
2024-12-03
Estimated Expiration
2042-11-07

AI Technical Summary

Technical Problem

The existing software system has low detection efficiency, the detection process is complicated and complicated, and it is difficult to detect abnormalities in a timely manner, resulting in low abnormal detection efficiency.

Method used

Use full-duplex communication connection to obtain object information of software system components and plug-ins, extract the first type of data and the second type of data, and generate detection results through comparison with standard data and abnormal detection model to achieve abnormality from different levels. Automatic detection.

Benefits of technology

The efficiency of software system detection is improved, and abnormalities are detected from multiple angles through direct and indirect detection means to ensure timely discovery and prediction of potential problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115766554B_ABST
    Figure CN115766554B_ABST
Patent Text Reader

Abstract

The embodiment of the present application belongs to the field of software detection, and relates to a software detection method, including: based on a pre-established full-duplex communication connection, obtaining object information of an object to be detected, wherein the object to be detected includes components and / or plug-ins in a software system; extracting first type data and second type data from the object information; obtaining first standard data corresponding to the first type data, and comparing the first type data with the first standard data to obtain a first detection result; inputting the second type data into a trained anomaly detection model to obtain a second detection result; generating a detection result of the object to be detected based on the first detection result and the second detection result. The present application also provides a software detection device, a computer device, and a storage medium. The present application improves the efficiency of software detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of software detection, and in particular to a software detection method, apparatus, computer equipment and storage medium. Background Art

[0002] With the development of computer technology, various software systems have become more and more functional and their architectures are becoming more and more complex, which also makes the software systems more likely to make mistakes. The current software system detection usually involves collecting relevant data of the software system on the server after discovering an anomaly, and the developer reproduces the problem based on the collected data. However, by this time the anomaly has already occurred, and the detection process is cumbersome and complicated, making the anomaly detection efficiency of the software system low. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a software detection method, apparatus, computer equipment and storage medium to improve the detection efficiency of the software system.

[0004] In order to solve the above technical problems, the present application provides a software detection method, which adopts the following technical solution:

[0005] Based on a pre-established full-duplex communication connection, obtaining object information of an object to be detected, wherein the object to be detected includes a component and / or a plug-in in a software system;

[0006] extracting first type data and second type data from the object information;

[0007] Acquire first standard data corresponding to the first type of data, and compare the first type of data with the first standard data to obtain a first detection result;

[0008] Inputting the second type of data into a trained anomaly detection model to obtain a second detection result;

[0009] A detection result of the object to be detected is generated according to the first detection result and the second detection result.

[0010] In order to solve the above technical problems, the embodiment of the present application further provides a software detection device, which adopts the following technical solution:

[0011] An information acquisition module, used to acquire object information of an object to be detected based on a pre-established full-duplex communication connection, wherein the object to be detected includes a component and / or a plug-in in a software system;

[0012] A data extraction module, used to extract first type data and second type data from the object information;

[0013] A first detection module, used for acquiring first standard data corresponding to the first type of data, and comparing the first type of data with the first standard data to obtain a first detection result;

[0014] A second detection module, used for inputting the second type of data into a trained anomaly detection model to obtain a second detection result;

[0015] A result generating module is used to generate a detection result of the object to be detected according to the first detection result and the second detection result.

[0016] In order to solve the above technical problems, an embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the software detection method described above when executing the computer-readable instructions.

[0017] In order to solve the above technical problems, an embodiment of the present application further provides a computer-readable storage medium, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the steps of the software detection method as described above are implemented.

[0018] Compared with the prior art, the embodiments of the present application mainly have the following beneficial effects: obtaining object information of an object to be detected, the object to be detected includes components and / or plug-ins in a software system, and the object information can be obtained at any time based on a pre-established full-duplex communication connection, thereby improving the efficiency of obtaining object information; extracting first type data and second type data from the object information; the first type data is more direct in its expression of abnormalities, and the first standard data corresponding to the first type data is obtained, and the first type data is compared with the first standard data to obtain a first detection result; the second type data is more indirect in its expression of abnormalities, and it is necessary to use an abnormality detection model to determine whether the object to be detected has an abnormality, or whether an abnormality will occur in the future, to obtain a second detection result; the first detection result and the second detection result constitute the detection result of the object to be detected, thereby realizing automatic detection of abnormalities from different levels and improving the efficiency of software detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0021] Figure 2 is a flow chart of an embodiment of a software detection method according to the present application;

[0022] Figure 3 is a structural schematic diagram of an embodiment of a software detection device according to the present application;

[0023] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0025] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0027] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0028] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0029] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.

[0030] The server 105 may be a server that provides various services, such as a background server that provides support for pages displayed on the terminal devices 101, 102, and 103. The server 105 may support the operation of the software system in the present application.

[0031] It should be noted that the software detection method provided in the embodiment of the present application is generally executed by a terminal device, and accordingly, the software detection device is generally arranged in the terminal device.

[0032] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0033] Continue to refer Figure 2 , shows a flow chart of an embodiment of a software detection method according to the present application. The software detection method comprises the following steps:

[0034] Step S201 : acquiring object information of an object to be detected based on a pre-established full-duplex communication connection, wherein the object to be detected includes a component and / or a plug-in in a software system.

[0035] In this embodiment, the electronic device (eg, Figure 1 The terminal device shown in the figure can communicate with the server through a wired connection or a wireless connection. It should be noted that the above wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.

[0036] Specifically, a full-duplex communication connection is pre-established between the terminal device and the server. The full-duplex communication connection is a two-way communication connection. In the communication link of the full-duplex communication connection, data can be freely transmitted to both ends of the communication link, and it is a persistent connection.

[0037] The full-duplex communication connection may be a TCP (Transmission Control Protocol) connection, which is a bidirectional communication connection supporting full-duplex communication, allowing either end of the connection to actively send data to the other end, and both ends can send data simultaneously.

[0038] Through the full-duplex communication connection, the terminal device can obtain the object information of the object to be detected at any time, ensuring the efficiency of obtaining the object information. The object to be detected includes components and / or plug-ins in the software system. It should be pointed out that the object to be detected is not limited to components and / or plug-ins in the software system. For example, the object to be detected can also be the software system itself.

[0039] Step S202: extracting first type data and second type data from the object information.

[0040] Specifically, the object information includes multiple object parameters, and the object parameters have parameter attributes. The object parameters can be divided into different types according to the parameter attributes, wherein one type of object parameters constitutes a first type of data, and another type of object parameters constitutes a second type of data.

[0041] Step S203, obtaining first standard data corresponding to the first type of data, and comparing the first type of data with the first standard data to obtain a first detection result.

[0042] Specifically, both the first type of data and the second type of data can be used to detect the object to be detected. The first type of data can directly determine whether the object to be detected is abnormal, while the second type of data can indirectly determine whether the object to be detected is abnormal.

[0043] The first type of data has a pre-set first standard data. It can be understood that for different components or plug-ins, the first standard data obtained is different. The first type of data is extracted from the object information of a certain object to be detected, and the object to be detected has an object identifier, which can uniquely identify the object to be detected; the object identifier can be a system identifier of a software system, a component identifier of a component, or a plug-in identifier of a plug-in; the first type of data and the first standard data include an object identifier to determine which object to be detected the first type of data and the first standard data correspond to, and obtain the first standard data corresponding to the first type of data according to the object identifier. The first standard data is equivalent to a measurement standard. By comparing the first type of data with the first standard data, if the first type of data meets the data requirements of the first standard data, it indicates that the object to be detected is normal, otherwise it indicates that the object to be detected is abnormal, thereby obtaining a first detection result indicating that the object to be detected is normal or abnormal. It should be pointed out that the normal here is normal under the measurement of the first type of data, or in other words, when the object to be detected generates the first type of data, the object to be detected is normal, but it does not mean that there is no risk of abnormality in the object to be detected at the moment.

[0044] In one embodiment, the object information includes component information and plug-in information, wherein the component information includes component version, component identification, component activation time, component working status, component running log, etc. The plug-in information includes plug-in configuration, plug-in working status, plug-in running environment, plug-in capability information, plug-in identification, plug-in version, plug-in running log, etc. The component information can come from components, databases, caches, etc.; the plug-in information can come from plug-ins, databases, caches, etc.

[0045] For a component, its first type of data may come from the component working status, component operation log, etc. The software system may obtain the component working status through a heartbeat detection mechanism, and the component working status may record whether the component responds to the heartbeat detection of the software system. If the component does not respond within a preset time or N heartbeat detections, the component may stop working or an error may occur, wherein the aforementioned preset time and number of heartbeat detections N come from the first standard data. Some object parameters in the component operation log may also refer to the above method to generate a first detection result. In one embodiment, the component operation log may directly record some errors that occur during the operation of the component and their error levels; or, the component operation log may directly record some errors that occur during the operation of the component, and the error levels are determined by the first standard data.

[0046] For a plug-in, its first type of data can come from the plug-in working status, plug-in capability information, plug-in operating environment, and plug-in operating log. When the first type of data comes from the plug-in working status or plug-in operating log, the detection process refers to the discussion of the above component part, and the principle is the same. The plug-in has capabilities, such as opening services, accessing databases, etc. The software system will record the capabilities used in the operation of the plug-in, and the first standard data can record the capabilities of the plug-in. If the plug-in uses a certain capability, and the capability is not recorded by the first standard data, there may be an exception; if the plug-in does not use a certain capability, and the capability is recorded by the first standard data, there may also be an exception. The operation of the plug-in relies on a certain component, which is the operating environment of the plug-in. If there is an abnormality in the component, the plug-in may also have an abnormality. Whether the component is abnormal has been discussed above.

[0047] Step S204: input the second type of data into the trained anomaly detection model to obtain a second detection result.

[0048] Specifically, the object to be detected can also be detected based on the second type of data, but compared with the first type of data, the second type of data is more concealed in representing whether the object to be detected is normal; and the object to be detected may become abnormal in the future, and such abnormality may not be able to be judged by the first type of data at present.

[0049] Therefore, it is necessary to pre-train the anomaly detection model. The anomaly detection model can be built based on a neural network. By inputting the second type of data into the anomaly detection model, it is possible to more deeply explore whether there is an anomaly in the object to be detected, or whether the object to be detected will have an anomaly in the future, thereby obtaining a second detection result.

[0050] The second type of data may be the CPU (central processing unit) resources, memory resources, disk resources, network resources, open processes, threads, running time, response time, etc., occupied by the software system itself, components, plug-ins, etc. when running. It can be understood that the data included in the second type of data listed above can also be used as the first type of data. For example, the network traffic in the network resources is used as the first type of data. If the network traffic of a plug-in in a unit time exceeds the network traffic threshold preset in the first standard data, then the plug-in may be abnormal, such as being hacked and there is a risk of data theft.

[0051] Step S205: generating a detection result of the object to be detected according to the first detection result and the second detection result.

[0052] Specifically, the first detection result and the second detection result together constitute the detection result of the object to be detected.

[0053] In the present application, a detection tool is installed in the terminal device for detecting components and / or plug-ins in the software system. The detection tool may have a front end in the terminal device and a back end on the server. Wherein, the front end has a desktop GUI (Graphical User Interface) or an interactive command line, and information can be displayed to developers. In one embodiment, GUI is implemented using electron technology, and the interactive command line is implemented using oclif framework. GUI and the interactive command line can use the same core data processing dependency, and some general interfaces are implemented in the dependency to obtain data from the back end. The back end can collect object information of the object to be detected by the software system. The detection tool is configured with 32-bit and 64-bit installation packages in operating systems such as Mac OS, Windows, and Linux to improve the compatibility of the detection tool.

[0054] In this embodiment, object information of an object to be detected is obtained, and the object to be detected includes components and / or plug-ins in a software system. The object information can be obtained at any time based on a pre-established full-duplex communication connection, thereby improving the efficiency of obtaining the object information; first type data and second type data are extracted from the object information; the first type data is more direct in its expression of abnormalities, and first standard data corresponding to the first type data is obtained, and the first type data is compared with the first standard data to obtain a first detection result; the second type data is more indirect in its expression of abnormalities, and it is necessary to use an abnormality detection model to determine whether the object to be detected has an abnormality, or whether an abnormality will occur in the future, to obtain a second detection result; the first detection result and the second detection result constitute the detection result of the object to be detected, thereby realizing automatic detection of abnormalities from different levels and improving the efficiency of software detection.

[0055] Furthermore, the above-mentioned step S201 may include: when an information acquisition instruction triggered by a scheduled task is received, obtaining object information of the object to be detected based on a pre-established full-duplex communication connection; or, receiving object information of the object to be detected sent by the software system through a pre-established full-duplex communication connection, wherein the software system collects the object information of the object to be detected when it detects a state change of the object to be detected.

[0056] Specifically, a timed task may be provided in the detection tool, and the timed task may regularly trigger an information acquisition instruction. The detection tool actively collects object information of the object to be detected through a pre-established full-duplex communication connection according to the triggered information acquisition instruction.

[0057] Alternatively, the software system can also monitor the object to be detected. When the state of the object to be detected changes, such as when the data in the object to be detected changes, the software system actively collects the object information of the object to be detected and pushes the object information to the detection tool through a full-duplex communication connection, so as to avoid the detection tool initiating a large number of requests and wasting resources without knowing when the state of the object to be detected changes.

[0058] In this embodiment, the detection tool can actively obtain object information through information acquisition instructions triggered by a scheduled task, or the software system can actively push object information when it detects a state change of the object to be detected, thereby achieving a variety of object information acquisition methods.

[0059] Furthermore, the above-mentioned step of obtaining object information of the object to be detected may include: obtaining initial object parameters of the object to be detected and routing information corresponding to the initial object parameters; determining a processing function corresponding to the initial object parameters according to the routing information; performing format conversion processing on the initial object parameters according to the processing function to obtain object parameters, and obtaining object information of the object to be detected according to the obtained object parameters.

[0060] Specifically, the initial object parameters of the object to be detected can be obtained first, and the initial object parameters can be the most original object parameters of the object to be detected. The initial object parameters have routing information, and the routing information is the route attribute of the initial object parameters, which is similar to the URL (Uniform Resource Locator) of the initial object parameters, and describes the source and target of the initial object parameters.

[0061] According to the routing information, the processing function corresponding to the initial object parameters can be queried. The data structure of the initial object parameters may not meet the requirements. The processing function can convert the initial object parameters and convert or splice the initial object parameters into a data structure that meets the requirements to obtain the object parameters. All object parameters of the object to be detected constitute the object information. Object parameters are parameters related to the object to be detected, which can be values, characters, text, etc.

[0062] In one embodiment, the data to be transmitted is serialized by Protobuf technology, and then the serialized data is transmitted, which can improve the transmission efficiency. The data to be transmitted can be the initial object parameters of the object to be detected. The initial object parameters are first serialized by Protobuf technology and then transmitted to the detection tool. In the data structure of Protobuf, routing information can be added so that the detection tool processes the initial object parameters according to the routing information to obtain the object parameters and the object information. Alternatively, the software system directly processes the initial object parameters according to the routing information to generate the object parameters and the object information, and then serializes the obtained object information by Protobuf technology and then transmits it to the detection tool.

[0063] In this embodiment, a processing function is selected according to routing information to process the initial object parameters to obtain object parameters that meet the required standards, thereby improving the detection processing efficiency.

[0064] Furthermore, if there are multiple groups of second type data, the above step S204 may include: for each group of second type data, obtaining the collection time of the second type data; splicing the second type data and the collection time into a queue to be detected; inputting each queue to be detected into a trained anomaly detection model to obtain a second detection result.

[0065] Specifically, there can be multiple groups of second-type data, that is, data can be collected from the object to be detected at multiple time points, thereby obtaining second-type data with different collection times. The collection time will also be used as a feature and spliced ​​with the second-type data into a queue to be detected, thereby adding time information to the anomaly detection model and enriching the amount of input information. The anomaly detection model can predict whether the object to be detected has an anomaly or whether the object to be detected will have an anomaly in the future based on the changing rules of the second-type data at different times, and obtain the second detection result.

[0066] The anomaly detection model can be built based on a neural network. In one embodiment, the anomaly detection model can be built based on a long short-term memory (LSTM) network. LSTM is a special RNN that is mainly used to solve the gradient vanishing and gradient exploding problems in the long sequence training process. LSTM can perform better in longer sequences.

[0067] In this embodiment, the collection time of the second type of data is obtained, and the second type of data and the collection time are spliced ​​to obtain the queue to be detected, which enriches the input information volume and improves the prediction accuracy of the anomaly detection model on whether the object to be detected is abnormal or whether it will be abnormal in the future.

[0068] Furthermore, the above-mentioned step of splicing the second type of data and the acquisition time into a queue to be detected may include: splicing each object parameter in the second type of data with the acquisition time to obtain an initial queue; adding a queue weight to the initial queue according to the acquisition time; and merging the queue weight into the initial queue to obtain a queue to be detected.

[0069] Specifically, there are multiple object parameters in each group of second type data, and these object parameters and collection time can be spliced ​​according to a preset splicing order to obtain an initial queue. The collection time can affect the importance of the object parameters. Generally, the later the object parameters are collected, the higher the importance. A larger queue weight can be added to the initial queue composed of these object parameters. The earlier the object parameters are collected, the lower the importance. A smaller queue weight can be added to the initial queue composed of these object parameters. The queue weight is added to the initial queue to obtain a queue to be detected.

[0070] In this embodiment, different queue weights are added to the initial queue according to the collection time, so as to further enrich the input information volume, distinguish the object parameters, and improve the accuracy of subsequent anomaly detection.

[0071] Furthermore, the above-mentioned step S205 may include: when it is determined that there is an object abnormality based on the first detection result and / or the second detection result, generating a jump link for the first detection result and / or the second detection result, and the jump link is used to jump to the object information corresponding to the first detection result and / or the object information corresponding to the second detection result; generating the detection result of the object to be detected based on the first detection result, the second detection result and the jump link.

[0072] Specifically, if the first test result and / or the second test result indicates that the object to be detected has an object anomaly, the storage location of the object information that generates the first test result and / or the second test result is obtained, and a jump link is generated according to the storage location, and the jump link can jump to the object information corresponding to the first test result and / or the second test result, so that the developer can quickly trace the anomaly. The first test result, the second test result, and the jump link constitute the final test result, and the jump link can be attached to the corresponding position of the first test result or the second test result, so that when the developer finds that there is an anomaly, he can directly jump to the corresponding object information.

[0073] In this embodiment, when it is determined that an object anomaly exists according to the first detection result and / or the second detection result, a jump link is generated, and the jump link can jump to the corresponding object information to facilitate anomaly tracing.

[0074] Furthermore, the software detection method may also include: generating a snapshot of the object to be detected according to the object information; packaging the snapshot to obtain a snapshot data packet; and sending the snapshot data packet to a terminal logged in by a preset account.

[0075] Specifically, the software system or detection tool can generate a snapshot of the object to be detected based on the object information, package the snapshot to generate a snapshot data packet, and send the snapshot data packet to the terminal logged in by a preset account, wherein the preset account can be the account logged in by the developer. The developer can export and view the snapshot data packet at the terminal. The snapshot is a pushback and replay of the running process of the object to be detected. Through the snapshot, the running status of the object to be detected at a certain moment can be quickly understood, which is convenient for the developer to detect the object to be detected. For the acquired object information, corresponding snapshots and snapshot data packets can be generated to back up the object information, and can be provided to the developer for viewing and manual detection.

[0076] In this embodiment, a snapshot of the object to be detected is generated according to the object information and packaged into a snapshot data packet, and the snapshot data packet is sent to the terminal logged in by the preset account, so that the developer can quickly perform anomaly detection according to the snapshot.

[0077] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0078] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0079] Further references Figure 3 , as a response to the above Figure 2The present application provides an embodiment of a software detection device, and the embodiment of the device is Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0080] like Figure 3 As shown, the software detection device 300 described in this embodiment includes: an information acquisition module 301, a data extraction module 302, a first detection module 303, a second detection module 304 and a result generation module 305, wherein:

[0081] The information acquisition module 301 is used to acquire object information of an object to be detected based on a pre-established full-duplex communication connection, wherein the object to be detected includes a component and / or a plug-in in a software system.

[0082] The data extraction module 302 is used to extract the first type of data and the second type of data from the object information.

[0083] The first detection module 303 is used to obtain first standard data corresponding to the first type of data, and compare the first type of data with the first standard data to obtain a first detection result.

[0084] The second detection module 304 is used to input the second type of data into the trained anomaly detection model to obtain a second detection result.

[0085] The result generating module 305 is used to generate the detection result of the object to be detected according to the first detection result and the second detection result.

[0086] In this embodiment, object information of an object to be detected is obtained, and the object to be detected includes components and / or plug-ins in a software system. The object information can be obtained at any time based on a pre-established full-duplex communication connection, thereby improving the efficiency of obtaining the object information; first type data and second type data are extracted from the object information; the first type data is more direct in its expression of abnormalities, and first standard data corresponding to the first type data is obtained, and the first type data is compared with the first standard data to obtain a first detection result; the second type data is more indirect in its expression of abnormalities, and it is necessary to use an abnormality detection model to determine whether the object to be detected has an abnormality, or whether an abnormality will occur in the future, to obtain a second detection result; the first detection result and the second detection result constitute the detection result of the object to be detected, thereby realizing automatic detection of abnormalities from different levels and improving the efficiency of software detection.

[0087] In some optional implementations of this embodiment, the information acquisition module 301 may include: an information acquisition submodule or an information receiving submodule, wherein:

[0088] The information acquisition submodule is used to acquire the object information of the object to be detected based on the pre-established full-duplex communication connection when receiving the information acquisition instruction triggered by the scheduled task.

[0089] The information receiving submodule is used to receive object information of the object to be detected sent by the software system through a pre-established full-duplex communication connection, wherein the software system collects the object information of the object to be detected when detecting a state change of the object to be detected.

[0090] In this embodiment, the detection tool can actively obtain object information through information acquisition instructions triggered by a scheduled task, or the software system can actively push object information when it detects a state change of the object to be detected, thereby achieving a variety of object information acquisition methods.

[0091] In some other optional implementations of this embodiment, the information acquisition module 301 may include: an acquisition submodule, a function determination submodule, and a parameter processing submodule, wherein:

[0092] The acquisition submodule is used to obtain the initial object parameters of the object to be detected and the routing information corresponding to the initial object parameters.

[0093] The function determination submodule is used to determine the processing function corresponding to the initial object parameters according to the routing information.

[0094] The parameter processing submodule is used to perform format conversion processing on the initial object parameters according to the processing function to obtain object parameters, and obtain object information of the object to be detected according to the obtained object parameters.

[0095] In this embodiment, a processing function is selected according to routing information to process the initial object parameters to obtain object parameters that meet the required standards, thereby improving the detection processing efficiency.

[0096] In some optional implementations of this embodiment, the second detection module 304 may include: a time acquisition submodule, a data splicing submodule, and a queue input submodule, wherein:

[0097] The time acquisition submodule is used to acquire the collection time of the second type of data for each group of the second type of data.

[0098] The data splicing submodule is used to splice the second type of data and the collection time into a queue to be detected.

[0099] The queue input submodule is used to input each queue to be detected into the trained anomaly detection model to obtain a second detection result.

[0100] In this embodiment, the collection time of the second type of data is obtained, and the second type of data and the collection time are spliced ​​to obtain the queue to be detected, which enriches the input information volume and improves the prediction accuracy of the anomaly detection model on whether the object to be detected is abnormal or whether it will be abnormal in the future.

[0101] In some optional implementations of this embodiment, the data splicing submodule may include: a parameter splicing unit, a weight adding unit, and a weight merging unit, wherein:

[0102] The parameter concatenation unit is used to concatenate the parameters of each object in the second type of data with the collection time to obtain an initial queue.

[0103] The weight adding unit is used to add a queue weight to the initial queue according to the collection time.

[0104] The weight merging unit is used to merge the queue weights into the initial queue to obtain the queue to be detected.

[0105] In this embodiment, different queue weights are added to the initial queue according to the collection time, so as to further enrich the input information volume, distinguish the object parameters, and improve the accuracy of subsequent anomaly detection.

[0106] In some optional implementations of this embodiment, the result generation module 305 may include: a link generation submodule and a result generation submodule, wherein:

[0107] The link generation submodule is used to generate a jump link of the first detection result and / or the second detection result when it is determined that an object abnormality exists based on the first detection result and / or the second detection result. The jump link is used to jump to the object information corresponding to the first detection result and / or the object information corresponding to the second detection result.

[0108] The result generation submodule is used to generate a detection result of the object to be detected according to the first detection result, the second detection result and the jump link.

[0109] In this embodiment, when it is determined that an object anomaly exists according to the first detection result and / or the second detection result, a jump link is generated, and the jump link can jump to the corresponding object information to facilitate anomaly tracing.

[0110] In some optional implementations of this embodiment, the software detection device 300 may further include: a snapshot generation module, a snapshot packaging module, and a data packet sending module, wherein:

[0111] The snapshot generation module is used to generate a snapshot of the object to be detected according to the object information.

[0112] The snapshot packaging module is used to package the snapshots to obtain snapshot data packets.

[0113] The data packet sending module is used to send the snapshot data packet to the terminal logged in by the preset account.

[0114] In this embodiment, a snapshot of the object to be detected is generated according to the object information and packaged into a snapshot data packet, and the snapshot data packet is sent to the terminal logged in by the preset account, so that the developer can quickly perform anomaly detection according to the snapshot.

[0115] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.

[0116] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0117] The computer device may be a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with the user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0118] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of the software detection method, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.

[0119] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run computer-readable instructions stored in the memory 41 or process data, such as computer-readable instructions for running the software detection method.

[0120] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.

[0121] The computer device provided in this embodiment can execute the above software detection method. The software detection method here can be the software detection method of each of the above embodiments.

[0122] In this embodiment, object information of an object to be detected is obtained, and the object to be detected includes components and / or plug-ins in a software system. The object information can be obtained at any time based on a pre-established full-duplex communication connection, thereby improving the efficiency of obtaining the object information; first type data and second type data are extracted from the object information; the first type data is more direct in its expression of abnormalities, and first standard data corresponding to the first type data is obtained, and the first type data is compared with the first standard data to obtain a first detection result; the second type data is more indirect in its expression of abnormalities, and it is necessary to use an abnormality detection model to determine whether the object to be detected has an abnormality, or whether an abnormality will occur in the future, to obtain a second detection result; the first detection result and the second detection result constitute the detection result of the object to be detected, thereby realizing automatic detection of abnormalities from different levels and improving the efficiency of software detection.

[0123] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the software detection method as described above.

[0124] In this embodiment, object information of an object to be detected is obtained, and the object to be detected includes components and / or plug-ins in a software system. The object information can be obtained at any time based on a pre-established full-duplex communication connection, thereby improving the efficiency of obtaining the object information; first type data and second type data are extracted from the object information; the first type data is more direct in its expression of abnormalities, and first standard data corresponding to the first type data is obtained, and the first type data is compared with the first standard data to obtain a first detection result; the second type data is more indirect in its expression of abnormalities, and it is necessary to use an abnormality detection model to determine whether the object to be detected has an abnormality, or whether an abnormality will occur in the future, to obtain a second detection result; the first detection result and the second detection result constitute the detection result of the object to be detected, thereby realizing automatic detection of abnormalities from different levels and improving the efficiency of software detection.

[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0126] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A software detection method, characterized in that: The steps include: Based on a pre-established full-duplex communication connection, obtaining object information of an object to be detected, wherein the object to be detected includes a component and / or a plug-in in a software system; extracting first type data and second type data from the object information; Acquire first standard data corresponding to the first type of data, and compare the first type of data with the first standard data to obtain a first detection result; Inputting the second type of data into a trained anomaly detection model to obtain a second detection result; Generate a detection result of the object to be detected according to the first detection result and the second detection result; There are multiple groups of the second type of data, and the step of inputting the second type of data into the trained anomaly detection model to obtain the second detection result includes: For each group of second type data, obtaining the collection time of the second type data; splicing each object parameter in the second type of data with the acquisition time to obtain an initial queue; Adding a queue weight to the initial queue according to the collection time; the later the collection time of the object parameter is, the greater the queue weight of the initial queue where the object parameter is located; Merging the queue weight into the initial queue to obtain a queue to be detected; Each queue to be detected is input into the trained anomaly detection model to obtain a second detection result.

2. The software detection method according to claim 1, characterized in that: The step of acquiring object information of the object to be detected based on the pre-established full-duplex communication connection includes: When receiving an information acquisition instruction triggered by a scheduled task, acquiring object information of the object to be detected based on a pre-established full-duplex communication connection; or, The object information of the object to be detected is sent by the receiving software system through a pre-established full-duplex communication connection, wherein the software system collects the object information of the object to be detected when detecting that a state change occurs to the object to be detected.

3. The software detection method according to claim 1, characterized in that: The step of obtaining object information of the object to be detected comprises: Acquire initial object parameters of the object to be detected and routing information corresponding to the initial object parameters; Determine the processing function corresponding to the initial object parameter according to the routing information; The initial object parameters are format-converted according to the processing function to obtain object parameters, and the object information of the object to be detected is obtained according to the obtained object parameters.

4. The software detection method according to claim 1, characterized in that: The step of generating the detection result of the object to be detected according to the first detection result and the second detection result comprises: When it is determined that an object abnormality exists according to the first detection result and / or the second detection result, a jump link of the first detection result and / or the second detection result is generated, wherein the jump link is used to jump to the object information corresponding to the first detection result and / or the object information corresponding to the second detection result; A detection result of the object to be detected is generated according to the first detection result, the second detection result and the jump link.

5. The software detection method according to claim 1, characterized in that: After the step of obtaining the object information of the object to be detected, the method further includes: generating a snapshot of the object to be detected according to the object information; Packaging the snapshot to obtain a snapshot data packet; The snapshot data packet is sent to the terminal logged in by the preset account.

6. A software detection device, characterized in that: include: An information acquisition module, used to acquire object information of an object to be detected based on a pre-established full-duplex communication connection, wherein the object to be detected includes a component and / or a plug-in in a software system; A data extraction module, used to extract first type data and second type data from the object information; A first detection module, used for acquiring first standard data corresponding to the first type of data, and comparing the first type of data with the first standard data to obtain a first detection result; A second detection module, used for inputting the second type of data into a trained anomaly detection model to obtain a second detection result; A result generating module, used for generating a detection result of the object to be detected according to the first detection result and the second detection result; There are multiple groups of the second type of data, and inputting the second type of data into a trained anomaly detection model to obtain a second detection result includes: For each group of second type data, obtaining the collection time of the second type data; splicing each object parameter in the second type of data with the acquisition time to obtain an initial queue; Adding a queue weight to the initial queue according to the collection time; the later the collection time of the object parameter is, the greater the queue weight of the initial queue where the object parameter is located; Merging the queue weight into the initial queue to obtain a queue to be detected; Each queue to be detected is input into the trained anomaly detection model to obtain a second detection result.

7. A computer device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the software detection method according to any one of claims 1 to 5 when executing the computer-readable instructions.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the software detection method according to any one of claims 1 to 5 are implemented.