Network security detection method, device, electronic device and readable storage medium

By obtaining preset detection rules and rule selection instructions, and using target detection rules for network security detection, the problems of complex modification of detection rules and lagging response in the existing technology are solved, and fast and flexible network security detection is achieved, and various types of people are improved. The ability to deal with attack methods.

CN114500038BActive Publication Date: 2024-12-03SANGFOR TECH INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210081681.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-24
Publication Date
2024-12-03
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

The existing cyberattack detection technology requires the cooperation of multiple personnel, and is complex and has a long online cycle. It cannot achieve flexible modification of network security detection rules and cannot respond to intruders' changing attack methods in a timely manner.

Method used

Provide a network security detection method, by obtaining preset detection rules, rule selection instructions and data to be tested, and performing security detection based on target detection rules, to achieve fast and flexible modification of network security detection rules. The method includes obtaining preset detection rules, rule selection instructions and data to be tested, using target detection rules to perform security detection, and generating network security detection results.

Benefits of technology

It realizes rapid and flexible modification and application of network security detection rules, can respond to various attack methods in a timely manner, and improves the efficiency and response capabilities of network security detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114500038B_ABST
    Figure CN114500038B_ABST
Patent Text Reader

Abstract

The present application discloses a network security detection method, device, electronic device and computer-readable storage medium, the method comprising: obtaining a plurality of preset detection rules; obtaining a rule selection instruction, and determining a target detection rule in the preset detection rules according to the rule selection instruction; obtaining data to be tested; performing security detection on the data to be tested based on the target detection rule to obtain a network security detection result; the method can flexibly and quickly modify the network security detection rules to be used by setting a plurality of preset detection rules and selecting a specific detection rule to be used from them according to the rule selection instruction, and can respond to various attack methods in a timely manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a network security detection method, a network security detection device, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the popularization of Internet technology and the development of enterprises, the network environment of enterprises is also expanding, and network security issues are becoming increasingly prominent. The technical solution for the implementation of traditional network attack detection first requires security researchers to analyze network attack characteristics and write network security detection models (i.e., detection rules), and then hand over the network security detection models to software developers for coding, and finally rely on software delivery personnel to deploy programs to achieve attack detection. This method requires the cooperation of multiple personnel during the process of launching network attack detection rules, is complex and has a long launch cycle, and cannot realize the flexible modification of network security detection rules, and cannot respond to the ever-changing attack methods of intruders in a timely manner. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide a network security detection method, a network security detection device, an electronic device and a computer-readable storage medium, which can flexibly and quickly modify the network security detection rules used.

[0004] In order to solve the above technical problems, the present application provides a network security detection method, comprising:

[0005] Get several preset detection rules;

[0006] Obtaining a rule selection instruction, and determining a target detection rule from the preset detection rules according to the rule selection instruction;

[0007] Get the data to be tested;

[0008] Based on the target detection rule, security detection is performed on the data to be tested to obtain a network security detection result.

[0009] Optionally, the obtaining rule selection instruction includes:

[0010] The data interaction channel between the terminal and the controller is monitored in real time, and the rule selection instruction sent by the terminal is obtained from the data interaction channel.

[0011] Optionally, performing security detection on the data to be tested based on the target detection rule to obtain a network security detection result includes:

[0012] Performing feature extraction processing on the data to be tested to obtain features to be tested;

[0013] A detection task is generated based on the target detection rule, and the detection task is executed using the feature to be detected to obtain the network security detection result.

[0014] Optionally, the detection task includes an initial detection task and an association analysis task;

[0015] The using the feature to be tested to perform the detection task and obtain the network security detection result includes:

[0016] Determining corresponding target features to be detected based on each of the initial detection tasks respectively;

[0017] Utilizing the target features to be detected to respectively perform the initial detection tasks to obtain a first detection result;

[0018] The association analysis task is performed using the first detection result to obtain the network security detection result.

[0019] Optionally, the detection task includes an initial detection task and an alarm elimination task;

[0020] The using the feature to be tested to perform the detection task and obtain the network security detection result includes:

[0021] Performing the initial detection task using the feature to be detected to obtain a second detection result;

[0022] Execute the alarm elimination task using the second detection result to obtain an elimination detection result;

[0023] If the elimination detection result is a hit, determining that the network security detection result is safe;

[0024] If the elimination detection result is a miss, the network security detection result is determined to be the second detection result.

[0025] Optionally, the detection task includes an initial detection task and a historical association task;

[0026] The using the feature to be tested to perform the detection task and obtain the network security detection result includes:

[0027] Performing the initial detection task using the feature to be detected to obtain a third detection result;

[0028] Acquire historical data corresponding to historical detection results; the historical data is context data of the data to be detected;

[0029] The historical association task is performed using the third detection result and the historical detection result to obtain the network security detection result.

[0030] Optionally, it also includes:

[0031] Obtaining a code package sent by the terminal, and using the code package to generate a custom security detection task;

[0032] The user-defined security detection task is executed using the data to be tested to obtain a user-defined network security detection result.

[0033] The present application also provides a network security detection device, comprising:

[0034] A rule acquisition module is used to obtain several preset detection rules;

[0035] A target determination module, used to obtain a rule selection instruction and determine a target detection rule from the preset detection rules according to the rule selection instruction;

[0036] A data acquisition module, used for acquiring the data to be tested;

[0037] The security detection module is used to perform security detection on the data to be tested based on the target detection rules to obtain a network security detection result.

[0038] The present application also provides an electronic device, including a memory and a processor, wherein:

[0039] The memory is used to store the computer program;

[0040] The processor is used to execute the computer program to implement the above-mentioned network security detection method.

[0041] The present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program implements the above-mentioned network security detection method when executed by a processor.

[0042] The network security detection method provided in the present application obtains a number of preset detection rules; obtains a rule selection instruction, and determines a target detection rule in the preset detection rules according to the rule selection instruction; obtains data to be tested; and performs security detection on the data to be tested based on the target detection rule to obtain a network security detection result.

[0043] It can be seen that the method has multiple preset detection rules pre-set in advance, and different detection rules have different detection methods, angles and other factors for network security. By obtaining the rule selection instruction, the target detection rule can be determined, and then the target detection rule can be used to perform security detection on the data to be tested to obtain the Wanluo security detection result. By setting multiple preset detection rules and selecting the specific detection rules to be used according to the rule selection instruction, the network security detection rules used can be modified flexibly and quickly, and various attack methods can be responded to in a timely manner.

[0044] In addition, the present application also provides a network security detection device, an electronic device and a computer-readable storage medium, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0046] Figure 1 A flow chart of a network security detection method provided in an embodiment of the present application;

[0047] Figure 2 A flowchart of a specific network security detection method provided in an embodiment of the present application;

[0048] Figure 3 A schematic diagram of the structure of a network security detection device provided in an embodiment of the present application;

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

[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0051] Please refer to Figure 1 , Figure 1 A flow chart of a network security detection method provided in an embodiment of the present application.

[0052] The method includes:

[0053] S101: Obtain several preset detection rules.

[0054] It should be noted that each step in the present application can be executed by a designated electronic device, such as a server with strong computing power, etc. The specific number is not limited. It can be executed by a single electronic device alone, or by multiple electronic devices in cooperation, that is, different electronic devices execute different steps, and all electronic devices can eventually execute all the steps.

[0055] The preset detection rules can be called network security detection models, which refer to preset rules for detecting the data to be tested to determine whether there is a network attack, and the specific form is not limited. In this application, in order to be able to replace the applicable detection rules in a timely and flexible manner, several preset detection rules can be obtained and stored in advance, and the preset detection rules can be deployed in advance, and can be directly called when needed, so as to realize flexible configuration and management of the rules.

[0056] This embodiment does not limit the specific method of obtaining the preset detection rules. For example, data interaction can be performed with a specified electronic device to obtain the preset detection rules. The specified electronic device can be a device logged in by the user, or can be an electronic device with a specified network address or physical address.

[0057] It should be noted that this step can be performed once or multiple times, for example, it can be performed once during the server initialization process, or it can be performed again during the operation process, so as to supplement or modify the preset detection rules.

[0058] S102: Obtain a rule selection instruction, and determine a target detection rule from preset detection rules according to the rule selection instruction.

[0059] The rule selection instruction refers to an instruction for determining the currently used target detection rule from the preset detection rules. Specifically, the rule selection instruction may include the unique identification information of the target detection rule, and the unique identification information can be used to indicate the identity of the target detection rule, which can be in the form of a serial number, name, etc. Normally, there is one target detection rule, but it can also be multiple in special scenarios.

[0060] The rule selection instruction can be sent by a terminal or other device operated by a user to an electronic device that serves as the executor. The generation process is not limited. For example, a user can perform human-computer interaction with a terminal or other device through the interactive components of the terminal or other device. The terminal or other device obtains the unique identification information of the above-mentioned target detection rule through human-computer interaction, and encapsulates it in a preset message format to obtain the rule selection instruction.

[0061] By obtaining the rule selection instruction, the target detection rule can be selected flexibly and quickly, and the hot loading of the target detection rule can be realized without deploying it when changing it, so as to respond to the changing attack methods of the intruder in a timely manner. In one embodiment, in order to increase the speed of changing the target detection rule, the data interaction channel between the terminal can be monitored in real time, and the rule selection instruction sent by the terminal can be obtained from the data interaction channel. The terminal is the terminal operated by the user mentioned above.

[0062] S103: Acquire the data to be tested.

[0063] The data to be tested refers to the data that needs to be detected by the target detection rule. The specific type is not limited, for example, it can be network data, work status data, log data, etc. One or more types of data can be set as the data to be tested as needed. The data to be tested can be obtained locally, or from other electronic devices, such as from the above-mentioned terminal.

[0064] It should be noted that the execution timing of step S103 is not limited. For example, it can be executed in parallel with step S101, or it can be executed after step S102 is executed. The specific timing can be set as needed.

[0065] S104: Based on the target detection rules, security detection is performed on the data to be tested to obtain a network security detection result.

[0066] After determining the target detection, use it to perform security detection on the data to be tested, and the obtained detection result is the network security detection result. It can be understood that according to different target detection rules, the process of security detection may be different, and the type and content of the obtained network security detection result may be different. Specifically, feature extraction processing is performed on the data to be tested to obtain the features to be tested. The specific process of feature extraction processing is not limited. For example, it can be statistical feature extraction, data format encapsulation, invalid data filtering and other processing. Generate a detection task based on the target detection rule, and use the features to be tested to perform the detection task to obtain the network security detection result. That is, various security detections of the data to be tested are completed by executing the detection task. The task can be specifically numerical judgment, condition matching and other contents, and its number, priority relationship between each other, etc. are not limited. The generation process of the detection task can refer to the relevant technology.

[0067] In the first embodiment, the detection task includes multiple initial detection tasks and associated analysis tasks. In this case, the corresponding target features to be tested can be determined based on each initial detection task, and the target features to be tested refer to the features to be tested corresponding to the initial detection task. The target features to be tested are used to perform each initial detection task to obtain a first detection result. Each initial detection task corresponds to a first detection result. The form and content of the first detection result may be different depending on the type of the initial detection task. In this embodiment, the first detection result can be used to perform an associated analysis task to obtain a network security detection result. Specifically, there is an associated relationship between each initial detection task, and the associated relationship can be a priority relationship or other logical relationship. When performing security detection, the first detection result is processed using the associated relationship, and the network security can be evaluated overall based on the various first detection results, thereby improving the accuracy and reliability of the network security detection results.

[0068] In the second implementation, for some anomalies that have been detected enough times or recorded in the whitelist, there is no need to alarm or record them, so as to improve the effective information ratio of alarm or record. Specifically, the detection task may include an initial detection task and an alarm elimination task. In this case, the initial detection task can be performed using the feature to be tested to obtain a second detection result; the second detection result can be the first detection result in the first implementation, or it can be the network security detection result in the first implementation. The alarm elimination task is performed using the second detection result to obtain the elimination detection result. The alarm elimination task refers to the task of determining whether the anomaly needs to be ignored. Specifically, when the second detection result is detected to be abnormal, it can be determined whether the same type of anomaly has been detected or has been alarmed enough times after detection, or it can be determined whether the anomaly of this type is recorded in the whitelist. If the elimination detection result is a hit, it means that the anomaly needs to be ignored, so the network security detection result is determined to be safe; if the elimination detection result is a miss, it means that the anomaly is not detected, or it is not necessary to ignore the anomaly, so the network security detection result can be determined to be the second detection result.

[0069] In the third embodiment, in order to improve the accuracy and reliability of the network security detection results, the current detection can be associated with the previous detection results to determine whether there is an abnormality from a larger detection dimension. Specifically, the detection task may include an initial detection task and a historical association task. The initial detection task is performed using the feature to be tested to obtain a third detection result. The historical data corresponding to the historical detection results is obtained, wherein the historical data is the context data of the data to be tested, so the historical association task can also be called a context association task. The historical association task is performed using the third detection result and the historical detection result to obtain the network security detection result.

[0070] In another embodiment, in order to further improve the flexibility of selecting security detection, a code package sent by the terminal can be obtained, and a custom security detection task can be generated using the code package. The code package includes a custom detection rule, which is processed according to a preset task generation method to obtain a custom security detection task, and the specific type of the custom security detection task is not limited. The custom security detection task is executed using the data to be tested to obtain a custom network security detection result. By uploading the code package, the user is allowed to customize the detection rules, thereby improving the flexibility of security detection.

[0071] After obtaining network security detection results, or obtaining customized network security detection results, they can be outputted, and the data can be in the form of alarms or generated log records.

[0072] Please refer to Figure 2 , Figure 2A flow chart of a specific network security detection method provided in an embodiment of the present application. A network security detection system based on streaming processing is shown, including a network security detection model configuration and display subsystem, a translation subsystem, a data access subsystem, a streaming computing subsystem, a secondary detection subsystem, a correlation analysis subsystem, a result confirmation subsystem, an alarm reduction subsystem, a context association subsystem, an alarm output subsystem and a monitoring subsystem. The network security detection model configuration and display subsystem can persistently store the network security detection model (i.e., preset detection rules) configured by the user on the web page; the translation subsystem translates the network security detection model into a task executable by the streaming computing subsystem by monitoring the persistent storage and the specified file directory, or packages the user-defined code (i.e., code package) as a task and registers it to the streaming computing subsystem; the data access subsystem can read the original log and the alarm log submitted by the secondary detection subsystem in real time and in an orderly manner, and convert both into events (i.e., data to be tested) after preprocessing and send them to the streaming computing subsystem; the streaming computing subsystem calculates the data submitted by the data access subsystem by loading the tasks and code packages submitted by the translation subsystem, and sends the detection results (primary results) to the secondary detection subsystem and the correlation analysis subsystem; the secondary detection subsystem encapsulates the primary calculation results of the streaming computing subsystem as an alarm log and sends them to the data access subsystem; the correlation analysis subsystem can The correlation analysis configuration of the network security detection model performs correlation analysis on the first-level results and generates second-level results and sends them to the result confirmation subsystem; the result confirmation subsystem can judge the attack effect of the second-level results according to the result analysis configuration of the network security detection model to generate a third-level result; the alarm reduction subsystem can reduce the third-level calculation results according to the alarm reduction configuration and whitelist configuration of the network security detection model to generate a fourth-level result; the context association subsystem can fill the fourth-level results with context information according to the alarm description configuration of the network security detection model to generate a fifth-level result; the alarm output subsystem encapsulates the fifth-level results as alarms and outputs them; the monitoring subsystem can monitor the operation of the translation subsystem, data access subsystem, streaming computing subsystem, secondary detection subsystem, correlation analysis subsystem, result confirmation subsystem, alarm reduction subsystem, context association subsystem, and alarm output subsystem in real time, and regulate the task submission of the translation subsystem and the log reading of the data access subsystem.

[0073] Specifically, the network security detection rule configuration and display subsystem includes a model display module, a model configuration module, and a model storage module. The model display module includes a series of operation interfaces for displaying the network security detection models set by the user, the operation records of each network security detection model, the built-in data filtering operators and the operator set. Further, the network security detection model includes association analysis configuration, result analysis configuration, alarm reduction configuration, whitelist configuration, alarm description configuration and detection rule configuration. Further, the operation records of the network security detection model include but are not limited to record number, action, operator, and time. Further, the built-in data filtering operators include but are not limited to digital operation operators, string operation operators, Boolean value operation operators, set operation operators, IP operation operators, asset operation operators, certificate operation operators, machine learning operators, deep learning operators, new operators, and rare operators, and the built-in data filtering operators support extension. Further, the operator set is a pre-set combination of the built-in data filtering operators commonly used when configuring the detection rules of the network security detection model. The model configuration module is used to realize the addition, modification, deletion, and restoration of deleted network security models of network security detection models. The model storage module is used to persistently store the network security detection model set by the user. Furthermore, the persistent storage includes but is not limited to the file system, database, and network storage. Based on the network security detection rule configuration and display subsystem, the user can configure the network security detection model in the operation interface, that is, initiate a rule selection instruction to select the target detection rule (or target network security detection model), and realize the network security detection model configuration in a code-free manner.

[0074] The translation subsystem includes a model acquisition module, a semantic transformation module, a translation extension module, and a task submission module. The model acquisition module is used to obtain the network security detection model that needs to be translated. The model acquisition method includes but is not limited to: obtaining the persistently stored network security detection model from the model storage module of the network security detection model configuration and display subsystem; obtaining the network security detection model from a pre-set file directory. The model acquisition module adopts a monitoring method to monitor the change instructions (i.e., rule selection instructions) of selecting the network security detection model in the persistent storage or file directory in real time, and submits the network security detection model specified by the change instruction to the semantic transformation module in real time, thereby realizing the hot loading of the network security detection model. The semantic transformation module translates the network security detection model into a semantic format that can be recognized by the streaming computing engine subsystem, and sends the translated network security detection model to the task submission module. The translation extension module is used for user-defined coding to implement the calculation logic of the streaming computing subsystem, and packages the user-defined coding into a code package that can be recognized by the streaming computing subsystem and sends it to the task submission module, thereby realizing the low-code configuration of the network security detection model. The task submission module is responsible for receiving the translated network security detection models and code packages submitted by the semantic transformation module and the translation extension module, and encapsulating them into tasks and submitting them to the streaming computing subsystem.

[0075] The data access subsystem includes a connection module, a data reading module, a data preprocessing module, and a data sending module. The connection module is used to establish a connection with a data source, and it can simultaneously access logs from multiple data sources, including but not limited to Kafka, Elasticsearch, MongoDB, file systems, and secondary detection subsystems, and the data source access is configurable and pluggable. The data reading module reads the original logs and alarm logs from the data source in real time and in an orderly manner, and sends them to the data preprocessing module. Furthermore, the original logs include but are not limited to network traffic logs, terminal operation logs, and security logs. The data preprocessing module generates events after parsing and expanding the logs. The data preprocessing module supports user-defined coding to implement user-defined original log parsing and expansion logic. The data sending module encapsulates the events generated by the data preprocessing module and sends them to the streaming computing subsystem.

[0076] The streaming computing subsystem includes a streaming computing engine module and a result collection module. The streaming computing engine module is used to load the tasks submitted by the translation subsystem, calculate the events submitted by the data access subsystem and generate primary results. Furthermore, the streaming computing engine module includes but is not limited to Siddhi, Flink, Storm, SparkStreaming, Esper and supports plugging and unplugging of engines. The result collection module is used to collect the calculation results of the streaming computing engine module and send the primary calculation results to the secondary detection subsystem and the correlation analysis subsystem.

[0077] The secondary detection subsystem is used to receive the primary result of the stream computing subsystem, save the primary result, and then encapsulate it into an alarm log and send it to the data access subsystem.

[0078] The association analysis subsystem is used to parse the association analysis configuration of the network security detection model into association rules including association relationships, association fields and time limits. The association relationships include but are not limited to any, sequence, scoring and all, and the association fields include but are not limited to domain names, IP addresses, user names, asset IDs, and within the time limit of the association rules, the first-level results are associated and calculated according to the association relationships and association fields, and the second-level results are sent to the result confirmation subsystem.

[0079] The result confirmation subsystem is used to further identify and mark the credibility, attack stage and attack status of the secondary results according to the result analysis configuration of the network security detection model, and generate the tertiary results and send them to the alarm reduction subsystem.

[0080] The alarm reduction subsystem is used to reduce and filter the three-level results according to the alarm reduction configuration and whitelist configuration of the network security detection model. The alarm reduction strategy and alarm update rules can be set in the alarm reduction configuration. The whitelist configuration can set a whitelist that does not generate alarms, and the whitelist content includes but is not limited to domain names, IP addresses, user names, and asset IDs.

[0081] The context association subsystem is used to trace and analyze the four-level results generated by the alarm reduction subsystem according to the alarm description configuration of the network security detection model, and add evidence information and associated alarm information to the four-level results.

[0082] The alarm output subsystem includes an alarm post-processing module and an output source connection module. The alarm post-processing module is used to receive the five-level results generated by the context association subsystem, and can encapsulate the five-level results into alarms according to the alarm format configured by the user. The output source connection module is used to establish a connection with the external middleware and output the alarm. Further, the external middleware includes but is not limited to Rabbitmq, Elasticsearch, Mysql, and file system.

[0083] The monitoring subsystem is used to monitor the detailed operation of the translation subsystem, data access subsystem, streaming computing subsystem, secondary detection subsystem, correlation analysis subsystem, result confirmation subsystem, alarm reduction subsystem, context association subsystem, and alarm output subsystem in real time. It can collect statistics on the detection status of the network security detection model, the data distribution and data volume of the original log and the alarm log, the CPU and memory usage of each subsystem in real time, and can calculate the negative pressure of each subsystem in real time according to user configuration, regulate the task submission of the translation subsystem and the log reading of the data access subsystem, so as to ensure the stable operation of each subsystem.

[0084] The network security detection method provided by the embodiment of the present application is applied, and a plurality of preset detection rules are preset in advance. Different detection rules have different detection methods, angles and other factors for network security. By obtaining the rule selection instruction, the target detection rule can be determined, and then the target detection rule is used to perform security detection on the data to be tested to obtain the Wanluo security detection result. By setting a plurality of preset detection rules and selecting the specific detection rules to be used according to the rule selection instruction, the network security detection rules used can be modified flexibly and quickly, and various attack methods can be responded to in a timely manner.

[0085] The following is an introduction to the network security detection device provided in the embodiment of the present application. The network security detection device described below and the network security detection method described above can be referenced to each other.

[0086] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of a network security detection device provided in an embodiment of the present application includes:

[0087] A rule acquisition module 110, used to acquire a number of preset detection rules;

[0088] The target determination module 120 is used to obtain a rule selection instruction and determine a target detection rule in a preset detection rule according to the rule selection instruction;

[0089] The data acquisition module 130 is used to acquire the data to be tested;

[0090] The security detection module 140 is used to perform security detection on the data to be detected based on the target detection rules to obtain a network security detection result.

[0091] Optionally, the target determination module 120 includes:

[0092] The real-time monitoring unit is used to monitor the data interaction channel between the terminal in real time and obtain the rule selection instruction sent by the terminal from the data interaction channel.

[0093] Optionally, the safety detection module 140 includes:

[0094] A feature extraction unit is used to perform feature extraction processing on the data to be tested to obtain features to be tested;

[0095] The detection unit is used to generate detection tasks based on target detection rules, and perform detection tasks using the features to be tested to obtain network security detection results.

[0096] Optionally, the detection task includes an initial detection task and a correlation analysis task;

[0097] Detection unit, comprising:

[0098] A target data determination subunit, used to determine corresponding target features to be tested based on each initial detection task;

[0099] A first initial detection subunit is used to perform each initial detection task respectively using the target feature to be detected to obtain a first detection result;

[0100] The association detection subunit is used to perform an association analysis task using the first detection result to obtain a network security detection result.

[0101] Optionally, the detection task includes an initial detection task and an alarm elimination task;

[0102] Detection unit, comprising:

[0103] A second initial detection subunit is used to perform an initial detection task using the feature to be detected to obtain a second detection result;

[0104] The elimination detection subunit is used to perform the alarm elimination task using the second detection result to obtain an elimination detection result;

[0105] A first result determination subunit, configured to determine that the network security detection result is safe if the elimination detection result is a hit;

[0106] The second result determination subunit is configured to determine the network security detection result as a second detection result if the elimination detection result is a miss.

[0107] Optionally, the detection task includes an initial detection task and a history association task;

[0108] Detection unit, comprising:

[0109] A third initial detection subunit, used to perform an initial detection task using the feature to be detected to obtain a third detection result;

[0110] The history acquisition subunit is used to acquire the historical data corresponding to the historical test results; the historical data is the context data of the data to be tested;

[0111] The history association detection subunit is used to perform the history association task by using the third detection result and the history detection result to obtain the network security detection result.

[0112] Optionally, it also includes:

[0113] A custom task generation module is used to obtain the code package sent by the terminal and use the code package to generate a custom security detection task;

[0114] The custom detection module is used to perform custom security detection tasks using the data to be tested and obtain custom network security detection results.

[0115] The electronic device provided in the embodiment of the present application is introduced below. The electronic device described below and the network security detection method described above can be referenced to each other.

[0116] Please refer to Figure 4 , Figure 4 The electronic device 100 may include a processor 101 and a memory 102 , and may further include one or more of a multimedia component 103 , an information input / information output (I / O) interface 104 , and a communication component 105 .

[0117] The processor 101 is used to control the overall operation of the electronic device 100 to complete all or part of the steps in the above-mentioned network security detection method; the memory 102 is used to store various types of data to support the operation of the electronic device 100, and these data may include, for example, instructions for any application or method used to operate on the electronic device 100, and data related to the application. The memory 102 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), programmable read-only memory (Programmable Read-Only Memory, PROM), read-only memory (Read-Only Memory, ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0118] The multimedia component 103 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone, which is used to receive external audio signals. The received audio signal may be further stored in the memory 102 or sent through the communication component 105. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 104 provides an interface between the processor 101 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 105 is used for wired or wireless communication between the electronic device 100 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 105 may include: Wi-Fi components, Bluetooth components, NFC components.

[0119] The electronic device 100 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the network security detection method given in the above embodiment.

[0120] The computer-readable storage medium provided in the embodiments of the present application is introduced below. The computer-readable storage medium described below and the network security detection method described above can be referenced to each other.

[0121] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned network security detection method are implemented.

[0122] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0123] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0124] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0125] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0126] Finally, it should be noted that, in this article, relationships such as first and second, etc. are used only 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, include or any other variations are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes 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.

[0127] Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A network security detection method, characterized in that: include: Get several preset detection rules; Obtaining a rule selection instruction, and determining a target detection rule from the preset detection rules according to the rule selection instruction; Get the data to be tested; Based on the target detection rule, security detection is performed on the data to be tested to obtain a network security detection result; The performing security detection on the data to be tested based on the target detection rule to obtain a network security detection result includes: Performing feature extraction processing on the data to be tested to obtain features to be tested; generating a detection task based on the target detection rule, and executing the detection task using the features to be tested to obtain the network security detection result; The using the feature to be tested to perform the detection task and obtain the network security detection result includes at least one of the following situations: If the detection task includes an initial detection task and an associated analysis task, then the corresponding target features to be detected are determined based on each of the initial detection tasks; each of the initial detection tasks is executed using the target features to be detected to obtain a first detection result; the associated analysis task is executed using the first detection result to obtain the network security detection result; If the detection task includes an initial detection task and an alarm elimination task, the initial detection task is performed using the feature to be detected to obtain a second detection result; the alarm elimination task is performed using the second detection result to obtain an elimination detection result; if the elimination detection result is a hit, the network security detection result is determined to be safe; if the elimination detection result is a miss, the network security detection result is determined to be the second detection result; If the detection task includes an initial detection task and a historical association task, the initial detection task is performed using the feature to be tested to obtain a third detection result; historical data corresponding to the historical detection result is obtained; the historical data is the context data of the data to be tested; the historical association task is performed using the third detection result and the historical detection result to obtain the network security detection result.

2. The network security detection method according to claim 1, characterized in that: The obtaining rule selection instruction includes: The data interaction channel between the terminal and the controller is monitored in real time, and the rule selection instruction sent by the terminal is obtained from the data interaction channel.

3. The network security detection method according to claim 1, characterized in that: Also includes: Obtaining a code package sent by the terminal, and using the code package to generate a custom security detection task; The user-defined security detection task is executed using the data to be tested to obtain a user-defined network security detection result.

4. A network security detection device, characterized in that: include: A rule acquisition module is used to obtain several preset detection rules; A target determination module, used to obtain a rule selection instruction and determine a target detection rule from the preset detection rules according to the rule selection instruction; A data acquisition module, used for acquiring the data to be tested; A security detection module, used to perform security detection on the data to be tested based on the target detection rule to obtain a network security detection result; The safety detection module comprises: A feature extraction unit, used for performing feature extraction processing on the data to be tested to obtain features to be tested; A detection unit, configured to generate a detection task based on the target detection rule, and execute the detection task using the feature to be detected to obtain the network security detection result; The detection unit is specifically used for: If the detection task includes an initial detection task and an associated analysis task, then the corresponding target features to be detected are determined based on each of the initial detection tasks; each of the initial detection tasks is executed using the target features to be detected to obtain a first detection result; the associated analysis task is executed using the first detection result to obtain the network security detection result; If the detection task includes an initial detection task and an alarm elimination task, the initial detection task is performed using the feature to be detected to obtain a second detection result; the alarm elimination task is performed using the second detection result to obtain an elimination detection result; if the elimination detection result is a hit, the network security detection result is determined to be safe; if the elimination detection result is a miss, the network security detection result is determined to be the second detection result; If the detection task includes an initial detection task and a historical association task, the initial detection task is performed using the feature to be tested to obtain a third detection result; historical data corresponding to the historical detection result is obtained; the historical data is the context data of the data to be tested; the historical association task is performed using the third detection result and the historical detection result to obtain the network security detection result.

5. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store the computer program; The processor is used to execute the computer program to implement the network security detection method according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the network security detection method according to any one of claims 1 to 3 is implemented.