A method for in-band detection of security service health status
By obtaining and analyzing the characteristics of the traffic to be distributed and the information of the security service nodes, the security processing sequence is determined, which solves the problems of network data security and load balancing in in-band management, realizes the rapid formulation of security policies and optimal allocation of resources, and improves efficiency. Network data security and processing efficiency.
Patent Information
- Application Number
- CN202211742891.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-12-30
AI Technical Summary
Network data in in-band management may be mixed with unsafe data, resulting in unbalanced load on security service nodes, making it difficult to effectively judge the threat level and formulate security response strategies.
By obtaining the traffic characteristics of the traffic to be distributed and the security service information of the security service node, the health status of the security service node is determined, and the security processing sequence of the traffic to be distributed is determined based on this information, thereby realizing the threat level judgment of network data and the allocation of security resources. Reasonable distribution.
On the premise of reasonably adjusting the computing load, quickly formulate data security response strategies, implement threat traffic filtering and optimal allocation of security service resources to be distributed, and improve the security and processing efficiency of network data.
Smart Images

Figure CN115941355B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security, and in particular to a method for in-band detection of the health status of security services. Background Art
[0002] In-band management can transmit the management and control information of the network and the bearer service information of the user network through the same logical channel. However, the network data involved in in-band management comes from a wide range of sources and may be mixed with unsafe data. Therefore, a method for in-band detection of the health status of security services is needed to determine the threat level of network data, formulate appropriate security response strategies, and reasonably distribute network data based on the load of security service nodes. Summary of the invention
[0003] The present specification provides a method for in-band detection of the health status of a security service, which is executed by a processor and includes: obtaining traffic to be distributed; determining traffic characteristics of the traffic to be distributed based on the traffic to be distributed; obtaining security service information of a security service node through an in-band logical channel; determining the health status of the security service node based on the security service information; and determining a security processing sequence for the traffic to be distributed based on the traffic characteristics and the health status.
[0004] The present specification provides a system for in-band detection of the health status of security services, the system comprising: a first acquisition module, used to acquire the traffic to be distributed; a first determination module, used to determine the traffic characteristics of the traffic to be distributed based on the traffic to be distributed; a second acquisition module, used to acquire security service information of a security service node through an in-band logical channel; a second determination module, used to determine the health status of the security service node based on the security service information; and a third determination module, used to determine the security processing sequence of the traffic to be distributed based on the traffic characteristics and the health status.
[0005] The present specification provides a device for in-band detection of the health status of security services, the device comprising at least one processor and at least one memory; the at least one memory is used to store computer instructions; the at least one processor is used to execute at least part of the computer instructions to implement the method for in-band detection of the health status of security services.
[0006] The present specification provides a computer-readable storage medium, characterized in that the storage medium stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes the method for in-band detection of the health status of a security service.
[0007] Through the in-band detection of the health status of security services provided in this specification, it is possible to quickly formulate a security response strategy for data while reasonably adjusting the computing load. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:
[0009] Figure 1 It is a schematic diagram of an application scenario of a system for in-band detection of health status of security services according to some embodiments of this specification;
[0010] Figure 2 is an exemplary module diagram of a system for in-band detection of health status of security services according to some embodiments of the present specification;
[0011] Figure 3 is an exemplary flow chart of a method for in-band detection of a health status of a security service according to some embodiments of this specification;
[0012] Figure 4 is an exemplary flow chart for determining health status according to some embodiments of the present specification;
[0013] Figure 5 is another exemplary flow chart of determining health status according to some embodiments of the present specification;
[0014] Figure 6 It is a schematic diagram of determining a security processing sequence according to some embodiments of the present specification. DETAILED DESCRIPTION
[0015] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of this specification. For ordinary technicians in this field, this specification can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0016] It should be understood that the "system", "device", "unit" and / or "module" used herein are a method for distinguishing different components, elements, parts, portions or assemblies at different levels. However, if other words can achieve the same purpose, the words can be replaced by other expressions.
[0017] As shown in this specification and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "comprise" and "include" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0018] Flowcharts are used in this specification to illustrate the operations performed by the system according to the embodiments of this specification. It should be understood that the preceding or following operations are not necessarily performed precisely in order. Instead, the steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes, or one or more operations may be removed from these processes.
[0019] In-band management can transmit the management and control information of the network and the bearer service information of the user network through the same logical channel. However, the network data involved in in-band management comes from a wide range of sources and may be mixed with unsafe data. In addition, the amount of network data will affect the load of the security service node. Therefore, a method for in-band detection of the health status of security services is needed, which can judge the threat level of network data, formulate appropriate security response strategies, and reasonably distribute network data based on the load of security service nodes.
[0020] Figure 1 It is a schematic diagram of an application scenario of a system for in-band detection of the health status of security services according to some embodiments of this specification.
[0021] like Figure 1 As shown, the application scenario 100 may include a server 110, a network 120, traffic to be distributed 130, a front-end protection environment 140, a storage device 150, and a back-end business environment 160. Among them, the server may include a processing device.
[0022] In some embodiments, the application scenario 100 can determine the security processing sequence of the traffic to be distributed by implementing the method and / or system for in-band detection of the health status of security services disclosed in this specification. For example, in a typical application scenario, the system for in-band detection of the health status of security services can obtain the traffic to be distributed through the network; determine the traffic characteristics of the traffic to be distributed based on the traffic to be distributed; obtain the security service information of the security service node through the in-band logical channel; determine the health status of the security service node based on the security service information; and determine the security processing sequence of the traffic to be distributed based on the traffic characteristics and health status. For more information about the above process, please refer to Figure 3 and its related description.
[0023] The server 110 may obtain the traffic 130 to be distributed through the network 120, and the server 110 may be connected to the storage device 150 through the network 120. The server 110 may include a processing device, and the processing device may be used to execute the method for in-band detection of the health status of a security service described in some embodiments of this specification.
[0024] The network 120 may connect various components of the application scenario 100 and / or connect the system with external resources.
[0025] The storage device 150 may be used to store data and / or instructions. For example, the storage device 150 may store information such as traffic to be distributed, security service information, the health status of security service nodes, and the security processing sequence of traffic to be distributed. The storage device 150 may be directly connected to the server 110 or located inside the server 110.
[0026] The traffic to be distributed 130 refers to the traffic that needs to be provided with security services. In some embodiments, the traffic to be distributed 130 can be obtained through the network 120. For example, the traffic to be distributed 130 is obtained through the Internet.
[0027] The front-end protection environment 140 can be used to provide security services. Exemplary security services may include modifying / deleting unsafe traffic in the traffic to be distributed 130, early warning alarms, etc. The front-end protection environment 140 may include multiple security service nodes (such as security service node 1, security service node 2, ... security service node N) for providing security services for each traffic to be distributed. In some embodiments, the processing device may be located inside the front-end protection environment 140.
[0028] The backend business environment 160 can provide business services for the traffic to be distributed 130 after the security service. Exemplary business services may include traffic monitoring, traffic distribution, traffic statistics, etc. Business services can be any business content involving traffic information processing in the fields of medical care, industry, education, research, etc., and this specification does not limit this.
[0029] In some embodiments, the application scenario 100 may also include a terminal ( Figure 1 (not shown in the figure). The terminal can generate traffic to be distributed and send it to the server through the network 120. Exemplary terminals may include terminal devices such as computers and mobile phones.
[0030] It should be noted that application scenario 100 is provided only for the purpose of illustration and is not intended to limit the scope of this specification. For those of ordinary skill in the art, various modifications or variations can be made according to the description of this specification. For example, application scenario 100 can also include a database. For another example, application scenario 100 can be implemented on other devices to achieve similar or different functions. However, changes and modifications will not deviate from the scope of this specification.
[0031] Figure 2 It is an exemplary module diagram of a system for in-band detection of the health status of security services according to some embodiments of the present specification.
[0032] like Figure 2 As shown, the system 200 for in-band detection of the health status of a security service may include a first acquisition module 210, a first determination module 220, a second acquisition module 230, a second determination module 240, and a third determination module 250. In some embodiments, the system 200 for in-band detection of the health status of a security service may be part of a server or implemented by a server.
[0033] The first acquisition module 210 may be used to acquire traffic to be distributed.
[0034] The first determination module 220 may be used to determine the flow characteristics of the flow to be distributed based on the flow to be distributed. For a detailed description of the flow characteristics, see Figure 3 and its related description.
[0035] The second acquisition module 230 can be used to acquire the security service information of the security service node through the in-band logical channel. For a detailed description of the security service information, see Figure 3 and its related description.
[0036] The second determination module 240 may be used to determine the health status of the security service node based on the security service information. For a detailed description of determining the health status of the security service node, see Figure 3 , Figure 4 , Figure 5 and its related description.
[0037] The third determining module is used to determine the security processing sequence of the to-be-distributed traffic based on the traffic characteristics and the health status. For a detailed description of determining the security processing sequence of the to-be-distributed traffic, see Figure 3 , Figure 6 and its related description.
[0038] In some embodiments of the present specification, through the above system, it is possible to quickly formulate a data security response strategy under the premise of reasonably adjusting the computing load.
[0039] Figure 3 300 is an exemplary flow chart of a method for in-band detection of the health status of a security service according to some embodiments of this specification. In some embodiments, process 300 may be executed by a processing device or a processor. Figure 3 As shown, process 300 includes the following steps:
[0040] Step 310: Obtain the traffic to be distributed.
[0041] The traffic to be distributed can be used to perform business services. For example, in the scenario of accessing a data center, the traffic to be distributed can be access requests and data requests from the Internet. There may be traffic that is not related to business services in the traffic to be distributed, or there may be traffic that threatens the security of business services (such as implanting viruses), so it is necessary to filter the traffic to be distributed. In some embodiments, the traffic to be distributed can be obtained through a network (such as network 120). For example, the traffic to be distributed can be obtained through the Internet.
[0042] Step 320: Determine the traffic characteristics of the traffic to be distributed based on the traffic to be distributed.
[0043] Traffic characteristics may be communication-related characteristics of the traffic to be distributed. Traffic characteristics of the traffic to be distributed may include quintuple characteristics, data packet characteristics, etc. Among them, the quintuple characteristics may include source IP address, source port, destination IP address, destination port and transport layer protocol. Data packet characteristics may include: data packet size distribution, data packet arrival interval distribution, data packet transmission efficiency (the number of data packets transmitted per unit time), service type distribution, protocol type distribution, etc. In some embodiments, traffic characteristics may be determined by analyzing the traffic to be distributed by a processing device. Exemplary analysis methods may include artificial intelligence analysis, etc.
[0044] Step 330: Acquire security service information of the security service node through the in-band logical channel.
[0045] The in-band logical channel may be a channel used together when the management control information of the network and the bearer service information of the user network are transmitted. For example, the in-band logical channel may be a certain IP address.
[0046] The security service node may be a node with security processing and / or security auditing functions. The security service node may be used for security services, which may include traffic monitoring and traffic filtering for the traffic to be distributed, as well as detection and defense of active attacks and intrusions involved in the traffic to be distributed. For example, the security service node may include: FW (Firewall), WAF (Web Application Firewall), IDS (Intrusion Detection System), IPS (Intrusion Prevention System), situational awareness, or other anti-virus, security auditing equipment, etc.
[0047] The information generated by the security service node when performing security services can be used as security service information. The security service information can include information such as the load of the security service node and the security service content of the security service node. In some embodiments, the security service information can include heartbeat information. For a detailed description of the heartbeat information, see Figure 4 In some embodiments, the security service information may include historical threat identification results. For a detailed description of historical threat identification results, see Figure 5 In some embodiments, the security service information can be obtained through an information collection terminal of an in-band logical channel.
[0048] Step 340: Determine the health status of the security service node based on the security service information.
[0049] The health status can be an indicator to measure whether the status of the security service node is normal. When the load of the security service node is less than the load limit, or the security service node does not detect threat traffic, the health status of the security service node can be judged to be normal (ie, healthy). The load limit can be determined by a preset value.
[0050] In some embodiments, the health status can be represented by setting a level. For example, the health status of the security service node can be represented by a healthy / abnormal level, a healthy / sub-healthy / abnormal / unknown level. Each health status can correspond to a different load threshold interval. In some embodiments, the health status can be determined by performing artificial intelligence analysis, statistical processing, etc. on the security service information. For a detailed description of the health status, see Figure 4 , Figure 5 and its related description.
[0051] Step 340: Determine a security processing sequence for the traffic to be distributed based on the traffic characteristics and health status.
[0052] The security processing sequence can be a sequence of security service nodes that perform security processing on the traffic to be distributed. For example, when the security processing sequence is firewall, IPS, and IDS, when the processing device receives the traffic to be distributed, it needs to pass through the firewall, IPS, and IDS in sequence. During the above process, if any stage considers that the traffic is abnormal (for example, there is a threat), the traffic to be distributed will be intercepted and filtered.
[0053] In some embodiments, the security processing sequence can be based on traffic characteristics and the health status of the security service nodes, and the security service nodes can be sorted by preset rules to obtain a security processing sequence. The preset rules can be determined by the communication management personnel based on experience. For example, when the transmission efficiency of the data packet in the firewall in the traffic characteristics is higher than the transmission efficiency threshold, the firewall is prioritized as the security service node in the security processing sequence; when the security service node IDS is healthy, the IDS is prioritized as the security service node in the security processing sequence. The above-mentioned priority selection can be to place the priority security service nodes as the first few bits of the security processing sequence (such as the first, second, etc.). For specific instructions on determining the security processing sequence, see Figure 6 and its related description.
[0054] Through the method of in-band detection of the health status of security services described in some embodiments of this specification, it is possible to filter and screen threat traffic in the distributed traffic; in addition, the security service process takes into account the load conditions of the security service nodes, which is beneficial to the allocation of security service resources.
[0055] Figure 4 400 is an exemplary flow chart of determining a health status according to some embodiments of the present specification. In some embodiments, process 400 may be executed by a processing device or a processor. Figure 4 As shown, process 400 includes the following steps:
[0056] Step 410: Acquire the heartbeat information of the security service node within a preset time period.
[0057] The preset time period may be a manually set time period, for example, 1 hour, 6 hours, etc.
[0058] In some embodiments, the security service information may include heartbeat information. The heartbeat information may reflect the connection status between the terminal and the server. In some embodiments, the terminal may send a heartbeat message to the server every other heartbeat interval. The heartbeat information may include the heartbeat interval. For example, the heartbeat interval may be 0.1s.
[0059] In some embodiments, the heartbeat interval may be a preset heartbeat interval or a dynamic heartbeat interval. In some embodiments, the preset heartbeat interval may be determined based on the network scale within a preset time period. The larger the network scale, the larger the preset heartbeat interval may be. When the network scale is large, the load on the server and the security service node is large. At this time, a larger preset heartbeat interval may be selected to avoid the heartbeat message occupying the bandwidth of the business data. In some embodiments, the network scale may be determined by the number of terminals and the degree of information interaction.
[0060] The number of terminals may be the number of all external terminals that interact with the server through the network. For example, the number of terminals may be 500, 2000, etc. The larger the number of terminals, the larger the network scale.
[0061] The information interactivity can be characterized based on the traffic size and / or interaction frequency of information interaction between the terminal and the server. The information interactivity can be a specific value, such as 500MB, 1000Hz corresponding to an information interactivity of 50, etc. It can be understood that the greater the traffic of information interaction between the terminal and the server, the greater the information interactivity, and the larger the network scale; the greater the interaction frequency of information interaction between the terminal and the server, the greater the information interactivity, and the larger the network scale.
[0062] In some embodiments, there may be a preset correspondence between the heartbeat interval, network scale, number of terminals and information interactivity, and the heartbeat interval may be determined based on the network scale, number of terminals and information interactivity by consulting a preset correspondence table.
[0063] The dynamic heartbeat interval may be a dynamically changing heartbeat interval duration. In some embodiments, the dynamic heartbeat interval may be a duration from 0 to a preset heartbeat interval. In some embodiments, the specific duration of the dynamic heartbeat interval may be determined by the above-mentioned network scale. For example, it may be determined by looking up a table of the relationship between the dynamic heartbeat interval and the network scale. It is understandable that the larger the network scale, the larger the duration of the dynamic heartbeat interval. The dynamic heartbeat interval may dynamically change in real time based on the network scale.
[0064] In this embodiment, by setting a preset heartbeat interval and a dynamic heartbeat interval, it is possible to reduce the transmission frequency of heartbeat messages when the server load is large, and restore the normal transmission frequency of heartbeat messages when the server load is normal, thereby avoiding heartbeat messages occupying the bandwidth of business data and ensuring the normal issuance of business instructions during server idle time.
[0065] In some embodiments, the preset heartbeat interval is also related to the load of the security service node. For example, when the load of the security service node is greater than the load threshold of the security service node (i.e., when a large amount of traffic to be distributed pours into the security service node), the preset heartbeat interval can be larger to avoid the heartbeat message occupying the bandwidth of the traffic to be distributed for security services. Among them, the load of the security service node and the specific duration of the preset heartbeat interval can be determined by looking up a preset relationship table. The specific duration of the preset heartbeat interval is set while taking into account the busy and idle conditions of the security service node, ensuring the normal operation of the security service.
[0066] In some embodiments, the dynamic heartbeat interval is also related to the load of the security service node. Exemplarily, the principle of selecting the dynamic heartbeat interval is: based on the interval duration corresponding to the dynamic heartbeat interval and the load of the security service node at the moment corresponding to the dynamic heartbeat interval. For example, the dynamic heartbeat interval is x, x∈(0, T], T is the preset heartbeat interval, then select x that maximizes the following evaluation value Y:
[0067]
[0068] Among them, k1 and k2 can be preset and determined, x is the dynamic heartbeat interval, s is the load of the security service node at the moment corresponding to the dynamic heartbeat interval x, and the greater the load, the greater s.
[0069] Step 410: Determine the health status of the security service node based on the heartbeat information.
[0070] In some embodiments, the processing device can judge the duration of the heartbeat interval in the heartbeat information, and regard the security service node whose heartbeat interval duration is greater than the heartbeat threshold as an abnormal security service node. The heartbeat threshold can be determined based on an empirical value. When the duration of the heartbeat interval is greater than the heartbeat threshold, it means that the security service node is a security service node with a large load, and the security service node can be classified as an abnormal node; when the duration of the heartbeat interval is less than the heartbeat threshold, it means that the security service node is a security service node with a small load, and the security service node can be classified as a healthy node.
[0071] In some embodiments of the present specification, the busy or idle status of the security service node is determined by judging the heartbeat interval duration of the heartbeat message sent, and then the health status of the security service node is determined; in addition, the heartbeat interval is dynamically set based on the network scale, which can avoid the heartbeat message from occupying the business data bandwidth and ensure timely and normal transmission of business data.
[0072] Figure 5 FIG. 5 is another exemplary flow chart of determining a health status according to some embodiments of the present specification. In some embodiments, process 500 may be executed by a processing device. Figure 5As shown, process 500 includes the following steps:
[0073] Step 510, determining the misjudgment rate based on the historical threat identification results.
[0074] In some embodiments, the security service information may further include historical threat identification results, the traffic to be distributed may include historical traffic to be distributed, and the historical threat identification results are obtained based on the security service node identifying the historical traffic to be distributed. The historical threat identification results may indicate the degree of danger of a certain historical traffic to be distributed. For example, the historical threat identification results may include intercepting and releasing the historical traffic to be distributed.
[0075] The misjudgment rate can be the degree of misjudgment of the historical threat identification result by the processing device. The misjudgment rate can be expressed as a percentage, such as 80%. In some embodiments, when the historical threat identification result of the historical traffic to be distributed is interception, the processing device can decrypt the historical traffic to be distributed, and determine whether the traffic is threatening based on the decryption result. An exemplary decryption process can be implemented by a traffic fluctuation analysis method, etc. In some embodiments, the processing device can count the traffic that is not threatening after decryption, and use the ratio between the traffic to be distributed and the total traffic to be distributed as the interception misjudgment rate. Among them, the ratio between the traffic to be distributed and the total traffic to be distributed can be the ratio between the size, quantity, etc. of the above-mentioned traffic.
[0076] In some embodiments, when the historical threat judgment result of the historical traffic to be distributed is released, the processing device can monitor the historical traffic to be distributed and observe whether the traffic causes server abnormalities after flowing within the system. The above monitoring process can be implemented by a server (or a processing device). In some embodiments, the processing device can count the traffic that causes server abnormalities after release, and use the ratio between the traffic to be distributed and the total traffic to be distributed as the release misjudgment rate. Among them, the ratio between the traffic to be distributed and the total traffic to be distributed can be the ratio between the size, quantity, etc. of the above traffic.
[0077] In some embodiments, the processing device may determine the final error rate based on the interception error rate and the release error rate. For example, the average or weighted average of the interception error rate and the release error rate is used as the final error rate. The weight involved in the weighted average may be determined based on a manually set preset sampling ratio.
[0078] In some embodiments, the preset sampling ratio may be related to the traffic characteristics of the traffic to be distributed. For example, the processing device may establish vectors of each traffic to be distributed based on the traffic characteristics of the traffic to be distributed. The elements of the vector may include data packet size distribution, data packet arrival interval distribution, data packet transmission efficiency, etc. For example, the vector may be M=(60, 10, 90), indicating that the data packet size is 60MB, the data packet arrival interval is 10s, and the data packet transmission efficiency is 90%.
[0079] In some embodiments, when the vector network formed by the vectors of each flow to be distributed is more dispersed, the diversity between the vectors is greater, and the preset sampling ratio can be larger at this time; when the vector network formed by the vectors of each flow to be distributed is more concentrated, the diversity between the vectors is smaller, and the preset sampling ratio can be smaller at this time. The diversity of vectors can reflect the similarity between vectors. The greater the diversity, the smaller the similarity between vectors. At this time, the vector network formed by the vectors is relatively dispersed. At this time, more sampling is needed to improve the representativeness of the sampled samples for the flow to be distributed; the smaller the diversity, the greater the similarity between vectors. At this time, the vector network formed by the vectors is relatively concentrated. At this time, only a small number of sampled samples can be used as a substitute for the flow to be distributed. The dynamic adjustment of the preset sampling ratio can avoid unnecessary load caused by excessive sampling of the server and improve operation efficiency while ensuring that the local sampling expresses the whole itself.
[0080] In some embodiments, the preset sampling ratio is also related to the information interaction degree. For example, the greater the information interaction degree, the greater the harm that the threat traffic may cause when misjudged, and the preset sampling ratio needs to be increased; the smaller the information interaction degree, the smaller the harm that the threat traffic may cause when misjudged, and the preset sampling ratio needs to be reduced.
[0081] The numerical relationship between the preset sampling ratio and the information interaction degree can be determined by looking up the preset table. It is understandable that the greater the information interaction degree and the larger the network scale, the more terminals are involved in the information interaction process. At this time, misjudgment will cause more terminals / users to be threatened with security, so a larger sampling ratio is required to reduce the probability of misjudgment. By presetting the sampling ratio and correlating it with the information interaction degree, the representativeness of the sample to the overall distribution flow can be improved, and the loss that may be caused by misjudgment can be reduced.
[0082] Step 520: Determine the health status of the security service node based on the false positive rate.
[0083] In some embodiments, when the false positive rate is less than the false positive threshold, the security service node is determined to be healthy; when the false positive rate is greater than or equal to the false positive threshold, the security service node is determined to be abnormal. The false positive threshold can be determined by a preset value.
[0084] In some embodiments of the present specification, the health status of the security service node is determined by the misjudgment rate, which can improve the applicability of the method of the present specification, and determine the operation status of the security service node from the extent of the misjudgment.
[0085] Figure 6 It is a schematic diagram of determining a security processing sequence according to some embodiments of the present specification.
[0086] In some embodiments, the processing device may determine an estimated threat level 630 based on the traffic feature 610 by using a threat level determination model 620 .
[0087] like Figure 6 As shown, the input of the threat level determination model 620 may include traffic features 610, and the output may include an estimated threat level 630. The estimated threat level 630 may represent the degree of threat that the traffic to be distributed may pose to the system. The estimated threat level 630 may be represented by a vector, such as N=(60,50,40), wherein 60 represents the possibility that the traffic to be distributed will generate DOS (Denial of Service) and DDOS (Distributed Denial of Service) attacks; 50 represents the possibility that the traffic to be distributed will generate MITM (Man in the Middle Attack) threats; and 40 represents the possibility that the traffic to be distributed will generate phishing attacks. As an example only, in addition to the threats in the above dimensions, the estimated threat level may also include threats such as ransomware attacks and password attacks. The threat level determination model 620 may be a machine learning model, such as a convolutional neural network, a deep neural network, and the like.
[0088] In some embodiments, a large number of samples with labels can be used to train the threat level determination model. Specifically, multiple groups of training samples with labels are input into the initial threat level determination model, a loss function is constructed based on the output of the initial threat level determination model and the labels, and the parameters of the threat level determination model are updated through training based on the loss function iteration. In some embodiments, training can be performed based on the training samples by various methods. For example, training can be performed based on the gradient descent method. When the preset conditions are met, the training ends and the trained threat level determination model is obtained. The preset condition can be that the loss function converges.
[0089] In some embodiments, the training sample may include the traffic characteristics of the historical traffic to be distributed. The identification may be the estimated threat level corresponding to the traffic characteristics. The training sample may be determined by calling the information stored in the storage device. The identification may be obtained by manual annotation.
[0090] In some embodiments, the processing device may select a response strategy 650 from the security requirement policy library 640 based on the estimated threat level 630. The security requirement policy library 640 may be a preset vector database, which contains solutions for each estimated threat level and traffic of specific threat content. For example, for a DOS attack, the security requirement policy library 640 may include target feature strategy 1, target feature strategy 2, target feature strategy 3...target feature strategy X. Different target feature strategies may indicate that the threat is removed through different security devices. For example, target feature strategy 1 may be that the threat needs to be removed through Class A security devices and Class B security devices; target feature strategy 2 may be that the threat needs to be removed through Class B security devices, Class C security devices, and Class D security devices; target feature strategy 3 may be that the threat needs to be removed through Class A security devices, Class B security devices, and Class D security devices... The security requirement policy library 640 may be determined by empirical values.
[0091] In some embodiments, the security requirement policy library 640 can be updated based on a preset update cycle through a historical security processing sequence. For example, the processing device can add the response strategies involved in the historical security processing sequence as elements to the security requirement policy library 640 to enrich the content of the security requirement policy library 640. By selecting historical security protection cases as elements of the new security requirement policy library 640, the security requirement policy library 640 can be updated in real time, providing real-time response measures for changing network threats (such as viruses, etc.).
[0092] In some embodiments, the preset update cycle for updating the security requirement policy library 640 may be related to the traffic characteristics of the traffic to be distributed. For example, when the diversity of the traffic to be distributed is greater, the preset update cycle for updating the security requirement policy library 640 may be shorter. For a detailed description of the diversity of the traffic to be distributed, see Figure 5 A shorter preset update cycle can realize high-frequency update of the security demand policy library 640. In the face of a large network scale and a rich amount of data to be distributed, high-frequency update can ensure that the security demand policy library 640 can find solutions to various estimated threats.
[0093] The response strategy 650 may be a solution corresponding to the above-mentioned estimated threat level 630. The response strategy 650 may be represented by a vector, such as P=(1, 2, 3). 1 indicates that for firewall threats, target feature strategy 1 may be adopted; 2 indicates that for IPS threats, target feature strategy 2 may be adopted; 3 indicates that for IDS threats, target feature strategy 3 may be adopted.
[0094] In some embodiments, the processing device may determine the security processing requirement 660 of the traffic to be distributed based on the response strategy 650. The security processing requirement 660 may reflect the degree of demand for each security device by the response strategy corresponding to the traffic to be distributed. For example, the processing device may count the number of times each security device is required based on the vector of the response strategy 650, and use the security devices whose number of requirements is greater than or equal to the requirement threshold as the security devices required by the security processing requirement 660. For example, assuming that the requirement threshold is 2, for the response strategy P = (1, 2, 3), the security processing requirement 660 is that the traffic to be distributed needs to pass through Class A security devices, Class B security devices, and Class D security devices (where the number of times Class C security devices are required is 1, which is less than the requirement threshold).
[0095] In some embodiments, the processing device may determine a security processing sequence 680 for the traffic to be distributed based on the security processing requirement 660 and the health status 670. For example, the processing device may select the Class A security devices, Class B security devices, and Class D security devices involved in the security processing requirement 660, and select the security devices with a healthy health status 670 among the above security devices as the security processing sequence. For example, three security service nodes, Firewall 1, IPS 2, and IDS 4, are selected as the security processing sequence.
[0096] In some embodiments, the processing device may also determine the load conditions of each security service node, and based on the load conditions, determine a security processing sequence after optimizing the processing order.
[0097] The load situation can reflect the busyness of the security service node. The load situation can include the amount of traffic waiting to be processed, the recent average amount of traffic processed per unit time, and the amount of traffic currently being processed simultaneously.
[0098] In some embodiments, the processing device may randomly generate an ordering of security service nodes involved in a security processing sequence, and select a security processing sequence after optimizing the processing order from the ordering. For example, for security service node 1, security service node 2, and security service node 3 involved in the security processing sequence, the processing device may exhaustively determine the ordering of security service nodes in the security processing sequence as 123, 132, 213, 231, 321, and 312, and use the security processing sequence as a candidate security processing sequence.
[0099] In some embodiments, the processing device may select a security processing sequence after optimizing the processing order from the above-mentioned candidate security processing sequences through a congestion probability determination model. The congestion probability determination model may be a machine learning model, such as a neural network model, etc. The input of the congestion probability determination model may include candidate security processing sequences, the load conditions of each security service node, and the traffic characteristics of the traffic to be distributed. The output of the congestion probability determination model may include an estimated network congestion probability corresponding to the input candidate security processing sequence. The estimated network congestion probability can characterize the possible load conditions of the network. The estimated network congestion probability can be expressed as a percentage, such as 70%. The larger the estimated network congestion probability, the greater the possibility of network congestion corresponding to the candidate security processing sequence.
[0100] In some embodiments, a large number of samples with labels can be used to train the crowding probability determination model. Specifically, multiple groups of training samples with labels are input into the initial crowding probability determination model, a loss function is constructed based on the output of the initial crowding probability determination model and the labels, and the parameters of the crowding probability determination model are updated through training based on the loss function iteration. In some embodiments, training can be performed based on the training samples by various methods. For example, training can be performed based on the gradient descent method. When the preset conditions are met, the training ends and the trained crowding probability determination model is obtained. Among them, the preset condition can be that the loss function converges.
[0101] In some embodiments, the training sample may include historical security processing sequences, historical security service node load conditions, and historical traffic characteristics of to-be-distributed traffic. The identifier may be historical network congestion conditions. The training sample may be determined by calling information stored in a storage device. The identifier may be obtained by manual annotation.
[0102] In some embodiments, the processing device can compare the estimated network congestion probabilities corresponding to the ranking of security service nodes in each candidate security processing sequence, and use the candidate security processing sequence with the smallest estimated network congestion probability as the security processing sequence after the optimized processing order. By adjusting the service order of each security service node according to the load situation, the data transmission efficiency can be improved and the network can be used more efficiently; in addition, the congestion probability determination model can determine the congestion of various security service node rankings, and provide a more effective reference for subsequent decision-making through artificial intelligence.
[0103] In some embodiments of the present specification, a threat level determination model is used to quantitatively determine the threat level of the distributed traffic, providing a more meaningful basis for determining the security processing sequence; in addition, the security requirement policy library can be dynamically updated to find response strategies for various and changing threats.
[0104] The present specification provides a device for in-band detection of the health status of security services, the device comprising at least one processor and at least one memory; the at least one memory is used to store computer instructions; the at least one processor is used to execute at least part of the computer instructions to implement a method for in-band detection of the health status of security services.
[0105] The present specification provides a computer-readable storage medium that stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes a method such as in-band detection of the health status of a security service.
[0106] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of this specification. Although not explicitly stated here, those skilled in the art may make various modifications, improvements and corrections to this specification. Such modifications, improvements and corrections are suggested in this specification, so such modifications, improvements and corrections still belong to the spirit and scope of the exemplary embodiments of this specification.
[0107] At the same time, this specification uses specific words to describe the embodiments of this specification. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of this specification. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, certain features, structures or characteristics in one or more embodiments of this specification can be appropriately combined.
[0108] In addition, unless explicitly stated in the claims, the order of the processing elements and sequences described in this specification, the use of alphanumeric characters, or the use of other names are not intended to limit the order of the processes and methods of this specification. Although the above disclosure discusses some invention embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached claims are not limited to the disclosed embodiments. On the contrary, the claims are intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of this specification. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing server or mobile device.
[0109] Similarly, it should be noted that in order to simplify the description disclosed in this specification and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this specification, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the subject matter of this specification are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0110] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of this specification are approximate values, in specific embodiments, the setting of such numerical values is as accurate as possible within the feasible range.
[0111] Each patent, patent application, patent application publication, and other materials, such as articles, books, specifications, publications, documents, etc., cited in this specification are hereby incorporated by reference in their entirety. Except for application history documents that are inconsistent with or conflicting with the contents of this specification, documents that limit the broadest scope of the claims of this specification (currently or later attached to this specification) are also excluded. It should be noted that if the descriptions, definitions, and / or use of terms in the materials attached to this specification are inconsistent or conflicting with the contents described in this specification, the descriptions, definitions, and / or use of terms in this specification shall prevail.
[0112] Finally, it should be understood that the embodiments described in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.
Claims
1. A method for in-band detection of the health status of a security service, characterized in that: The method is executed by a processor, and the method includes: Obtaining the traffic to be distributed; the traffic to be distributed includes historical traffic to be distributed; Based on the traffic to be distributed, determining the traffic characteristics of the traffic to be distributed; Acquire security service information of the security service node through an in-band logical channel; the security service information includes a historical threat identification result, and the historical threat identification result is obtained based on the security service node identifying the historical traffic to be distributed; Determine an interception misjudgment rate and a release misjudgment rate based on the historical threat identification results; The false positive rate is determined based on a weighted average of the interception false positive rate and the release false positive rate; the weight of the weighted average is determined based on a preset sampling ratio, and the preset sampling ratio is related to the traffic characteristics and information interactivity of the traffic to be distributed; Based on the false positive rate, determining a health status of the security service node; Determining an estimated threat level based on the traffic characteristics; Based on the estimated threat level, a response strategy is selected from a security demand strategy library; the security demand strategy library is updated through a historical security processing sequence based on a preset update cycle, and the preset update cycle is related to the traffic characteristics of the traffic to be distributed; Determining the security processing requirements of the traffic to be distributed based on the response strategy; Based on the security processing requirement and the health status, a security processing sequence of the to-be-distributed traffic is determined.
2. A system for in-band detection of the health status of security services, characterized in that: The system comprises: A first acquisition module is used to acquire the traffic to be distributed; the traffic to be distributed includes historical traffic to be distributed; A first determining module, configured to determine a flow characteristic of the flow to be distributed based on the flow to be distributed; A second acquisition module is used to acquire security service information of the security service node through an in-band logical channel; the security service information includes a historical threat identification result, and the historical threat identification result is obtained based on the security service node identifying the historical traffic to be distributed; A second determination module is used to determine an interception misjudgment rate and a release misjudgment rate based on the historical threat identification result, determine the misjudgment rate based on a weighted average of the interception misjudgment rate and the release misjudgment rate, and determine the health status of the security service node based on the misjudgment rate; the weight of the weighted average is determined based on a preset sampling ratio, and the preset sampling ratio is related to the traffic characteristics and information interactivity of the traffic to be distributed; The third determination module is used to determine the estimated threat level based on the traffic characteristics; select a response strategy from the security requirement policy library based on the estimated threat level; the security requirement policy library is updated through a historical security processing sequence based on a preset update cycle, and the preset update cycle is related to the traffic characteristics of the traffic to be distributed; determine the security processing requirements of the traffic to be distributed based on the response strategy; determine the security processing sequence of the traffic to be distributed based on the security processing requirements and the health status.
3. A device for in-band detection of the health status of a security service, the device comprising at least one processor and at least one memory; The at least one memory is used to store computer instructions; The at least one processor is configured to execute at least part of the computer instructions to implement the method as claimed in claim 1.
4. A computer-readable storage medium, characterized in that: The storage medium stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes the method as claimed in claim 1.
