Network security detection method and device, equipment and storage medium
By judging the security of packets based on preset conditions and traffic flow rate in network switch equipment, the problem of insufficient real-time warning and detection rate of network attack behavior in the existing technology is solved, and accurate identification and isolation of illegal packets is achieved, improving Improve the accuracy and speed of network security detection.
Patent Information
- Application Number
- CN202311452078.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-02
- Publication Date
- 2024-10-18
AI Technical Summary
Existing technology cannot achieve real-time early warning of network attacks, and the network security detection rate and accuracy are insufficient to effectively identify illegal messages and safe messages.
Through the method executed by the network switch device, based on the preset conditions and traffic flow rate, the security of the packet is determined, and multi-layer security screening and processing are performed, including obtaining network packets, determining the packet header, and the flow of fixed-format data packets. The flow rate and total traffic flow rate are used to determine the legitimacy of the message and perform corresponding security processing.
It improves the accuracy of network security detection and the security of network transmission, realizes real-time identification and isolation of illegal messages, reduces the calculation amount of subsequent security detection, and improves the speed and accuracy of network security detection.
Smart Images

Figure CN118802222A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network security, and in particular to a network security detection method, device, equipment and storage medium. Background Art
[0002] Network security includes network equipment security, network information security and network software security, which means that the hardware, software and data of the network system are protected and will not be damaged, changed or leaked due to accidental or malicious reasons. The system can operate normally and continuously and reliably, and the network service has the characteristics of confidentiality, integrity, availability, controllability and auditability. In the related technology, the local network requests are usually screened by setting a blacklist or whitelist of network requests to maintain network security. When a network request that is not on the blacklist or whitelist appears, manual active detection and blocking are generally required to respond to external data attacks on the application layer and other deep layers, and real-time early warning of attacks cannot be achieved. Summary of the invention
[0003] The present invention provides a network security detection method, device, equipment and storage medium to solve the problems in the related technology, improve the network security detection rate, and improve the accuracy of network security detection and the security of network transmission.
[0004] The first aspect of the present disclosure proposes a network security detection method, which is executed by a network switch device, and includes: based on a first preset condition, determining a second message in a first message involving a security class, wherein the first preset condition is used to determine the security of the first message, and the second message is a first message whose security cannot be identified; based on a first traffic flow rate of the second message, determining the security of the second message; and based on the security, performing message security processing on the second message.
[0005] In some embodiments of the present disclosure, the method further includes: acquiring a network message; and determining the first message based on a message header of the network message.
[0006] In some embodiments of the present disclosure, the first preset condition includes: a whitelist and / or a blacklist, wherein the whitelist is used to determine the safe message in the first message, and the blacklist is used to determine the illegal message in the first message.
[0007] In some embodiments of the present disclosure, determining the second security of the second message based on the first traffic rate of the second message includes: determining the second traffic rate of the fixed-format data message and the total traffic rate of the network switching device; determining the security of the second message based on the first traffic rate, the second traffic rate and the total traffic rate.
[0008] In some embodiments of the present disclosure, determining the security of the second message based on the first traffic rate, the second traffic rate and the total traffic rate includes: when the total traffic rate is greater than the sum of the first traffic rate and the second traffic rate, determining that the second message is an illegal message; when the total traffic rate is equal to the sum of the first traffic rate and the second traffic rate, and the first traffic rate meets a second preset condition, determining that the second message is an illegal message; based on the illegal message, determining a safe message in the second message.
[0009] In some embodiments of the present disclosure, based on security, performing message security processing on the second message includes: switching and forwarding the secure message; and discarding the illegal message.
[0010] In some embodiments of the present disclosure, the method further includes: updating the first preset condition based on the illegal message and the safe message.
[0011] A second aspect embodiment of the present disclosure proposes a switch device, which includes: a first processing unit and a second processing unit, wherein the first processing unit is used to determine a second message in a first message involving a security class based on a first preset condition, wherein the first preset condition is used to determine the security of the first message, and the second message is a first message whose security cannot be identified; the second processing unit is used to determine the security of the second message based on a first traffic flow rate of the second message; and based on the security, perform message security processing on the second message.
[0012] The third aspect embodiment of the present disclosure proposes a communication device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the first aspect embodiment of the present disclosure.
[0013] The fourth aspect embodiment of the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in the first aspect embodiment of the present disclosure.
[0014] In summary, according to a network security detection method proposed in the present disclosure, the method is executed by a network switch device, and the method includes: based on a first preset condition, determining a second message in a first message involving a security class; based on a first flow rate of the second message, determining the security of the second message; based on security, performing message security processing on the second message. The present disclosure preliminarily screens the first message involving a security class through the first preset condition, determines the second message whose security cannot be identified through the first preset condition, and reduces the amount of calculation for subsequent determination of message security; determines the security of the second message through the first flow rate of the second message, so as to accurately identify illegal messages and secure messages in the second message, thereby realizing message security detection. The method performs multi-layer security screening on the first message through the first preset condition and the first flow rate, and improves the accuracy of network security detection and the security of network transmission.
[0015] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0017] Figure 1 A flowchart of a network security detection method provided by an embodiment of the present disclosure;
[0018] Figure 2 A schematic diagram of the structure of a network switch device provided in an embodiment of the present disclosure;
[0019] Figure 3 A flowchart of another network security detection method provided by an embodiment of the present disclosure;
[0020] Figure 4 A flowchart of another network security detection method provided by an embodiment of the present disclosure;
[0021] Figure 5 A flowchart of another network security detection method provided by an embodiment of the present disclosure;
[0022] Figure 6 A flowchart of another network security detection method provided by an embodiment of the present disclosure;
[0023] Figure 7 A schematic diagram of the structure of a switch device provided in an embodiment of the present disclosure;
[0024] Figure 8 A schematic diagram of the structure of a communication device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.
[0026] Network security includes network equipment security, network information security and network software security, which means that the hardware, software and data of the network system are protected from damage, change and leakage due to accidental or malicious reasons. The system can operate normally and continuously and reliably, and the network service has the characteristics of confidentiality, integrity, availability, controllability and auditability.
[0027] In the related art, network requests on the local side are usually screened by setting a blacklist or whitelist of network requests to maintain network security. When a network request that is not on the blacklist or whitelist appears, manual active detection and blocking are generally required to respond to deep attacks on the application layer and other external data, and real-time early warning of attacks cannot be achieved.
[0028] The present disclosure is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0029] Figure 1 The flowchart of a network security detection method provided by the embodiment of the present disclosure is as follows. Figure 1 As shown, the method is executed by a network switch device, and the method includes steps 101-103.
[0030] Step 101: Based on a first preset condition, determine a second message in a first message related to a security category.
[0031] Optionally, in some embodiments, the network switch device may include a first processor, a second processor, a first interaction chip, a second interaction chip, and a network port. The network switch device structure may be as follows: Figure 2 As shown, the network port is used to obtain the first message from the local end, the first processor can be a SoC FPGA processor, the SoC FPGA processor includes a programmable system PS part and a programmable logic PL part, and the second processor can be an X86 processor.
[0032] In some embodiments, the security-related message (ie, the first message) may be a message that needs to pass through a firewall, an encrypted message, etc. The present disclosure does not limit the specific form of the first message.
[0033] In some embodiments, the first preset condition includes a whitelist and / or a blacklist, wherein the whitelist is used to determine a safe message in the first message, and the blacklist is used to determine an illegal message in the first message.
[0034] Optionally, the above-mentioned blacklist and / or whitelist may include: message source address, keywords in the message and other information related to the message. The present disclosure does not limit the specific information in the blacklist and / or whitelist.
[0035] For example, when the message source address in the first message hits the message source address in the whitelist, the first message is a safe message.
[0036] In some embodiments, the network switch device may determine, based on a first preset condition, a second message in a first message related to a security category, wherein the second message is a first message whose security cannot be identified.
[0037] In other words, the network switch device can determine the secure message in the first message based on the whitelist, determine the illegal message in the first message based on the blacklist, and determine the first message other than the secure message and the illegal message as the first message whose security cannot be identified, that is, the second message.
[0038] For example, in some embodiments, the PL part of the SoC FPGA processor in the network switching device can determine the second message in the first message based on the first preset condition.
[0039] Optionally, the first message (ie, the second message) whose security cannot be identified may be transmitted by the second interaction chip of the network switch device.
[0040] Step 102: Determine the security of the second message based on the first traffic flow rate of the second message.
[0041] In some embodiments, the network switch device can determine the security of the second message based on the first flow rate of the second message, thereby implementing multi-layer security screening of the first message, improving the accuracy of network security detection and the security of network transmission.
[0042] In some embodiments, the network switch device can determine a second flow rate of a fixed-format data message and a total flow rate of the network switch device; and determine the security of the second message based on the first flow rate, the second flow rate and the total flow rate.
[0043] That is, the network switch device can determine the illegal messages in the second message based on the first flow rate of the second message, and determine the second message other than the illegal message as a safe message, thereby achieving the security determination of the second message. The specific implementation method can be found in the following related description, which will not be repeated here.
[0044] For example, in some embodiments, the X86 processor in the network switch device stores a traffic rate monitoring program, and the X86 processor can determine the first traffic rate of the first message sent by the SoC FPGA processor by calling the traffic rate monitoring program, thereby determining the security of the second message based on the first traffic rate.
[0045] Step 103: Based on the security of the second message, perform message security processing on the second message.
[0046] In some embodiments, the network switch device can perform different message security processing on second messages with different security based on the security of the second messages, thereby isolating and discarding illegal messages and forwarding secure messages, thereby improving the security of network transmission.
[0047] In some embodiments, based on the security of the second message, the secure message in the second message may be transmitted and forwarded; and the illegal message in the second message may be discarded.
[0048] For example, in some embodiments, the X86 processor in the network switching device can send the security of the second message to the SoC FPGA processor, and the SoC FPGA processor discards the illegal messages in the second message and forwards the secure messages in the second message.
[0049] In summary, according to the network security detection method proposed in the present disclosure, the method is executed by a network switch device, and the method includes: based on a first preset condition, determining a second message in a first message involving a security class; based on a first traffic flow rate of the second message, determining the security of the second message; based on security, performing message security processing on the second message. The present disclosure preliminarily screens the first message involving a security class through the first preset condition, determines the second message whose security cannot be identified through the first preset condition, and reduces the amount of calculation for subsequent determination of message security; determines the security of the second message through the first traffic flow rate of the second message, so as to accurately identify illegal messages and secure messages in the second message, thereby realizing message security detection. The method performs multi-layer security screening on the first message through the first preset condition and the first traffic flow rate, and improves the accuracy of network security detection and the security of network transmission.
[0050] Figure 3 The following is a flowchart of a network security detection method proposed in the present disclosure. Figure 1 The embodiment shown, further explained, Figure 3 The method comprises steps 301 and 302, wherein: Figure 3 The steps shown are Figure 1 Execute before the steps shown.
[0051] Step 301, obtaining network messages.
[0052] In some embodiments, the network switch device may obtain the network message through the local network device, but is not limited thereto, and the present disclosure does not limit the manner in which the network switch device obtains the network message. It should be understood that the network message includes the first message.
[0053] For example, a network port in a network switch device is connected to a local network device, and the network switch can obtain network packets from the local network device through the network port.
[0054] Step 302: Determine a first message based on a message header of the network message.
[0055] In some embodiments, the network switch device may determine the network message involving the security category as the first message based on the message header of the network message, thereby achieving a preliminary screening of the network message and reducing the workload of subsequent security detection.
[0056] Optionally, in some embodiments, the network switch device may also determine other network messages in the network message except the first message as general messages, and the PS part of the SoC FPGA processor encapsulates and forwards the above general messages, and the first interactive chip transmits them to the network port to interact with external devices.
[0057] In summary, the network security detection method proposed in the present disclosure includes: obtaining a network message; and determining a first message based on a message header of the network message. The method disclosed in the present disclosure implements a preliminary screening of network messages based on message headers, and screens out the first message that may pose a threat to network equipment or information, thereby reducing the workload of subsequent security testing and avoiding waste of resources.
[0058] Figure 4 The following is a flowchart of a network security detection method proposed in the present disclosure. Figure 2 The embodiment shown further explains step 102. Figure 4 The following steps are included.
[0059] Step 401, determining a second flow rate of data messages in a fixed format and a total flow rate of a network switching device.
[0060] In some embodiments, the network switch device may determine the second flow rate of the fixed-format data message and the total flow rate of the network switch device, laying a foundation for determining the security of the second message.
[0061] In some embodiments, a data message of a fixed format may refer to a message with a fixed field or a fixed length (eg, a fixed header), and the present disclosure does not limit the specific type of the data message of the fixed format.
[0062] In some embodiments, the second interactive chip of the network switch device is used to transmit the second message and the data message of the fixed format. At this time, the total flow rate of the network switch device can also be the total flow rate of the second interactive chip for message data transmission.
[0063] For example, in some embodiments, an X86 processor in the network switch device stores a traffic flow rate monitoring program, and the X86 processor can determine the second traffic flow rate and the total traffic flow rate by calling the traffic flow rate monitoring program.
[0064] Step 402: Determine the security of the second message based on the first traffic flow rate, the second traffic flow rate and the total traffic flow rate.
[0065] In some embodiments, the network switch device can determine whether there is a third-party network request or an abnormal network request in the second message based on the first flow rate, the second flow rate and the total flow rate, thereby determining the security of the second message. The specific determination method can refer to Figure 5 The embodiments shown will not be described in detail here.
[0066] In summary, according to the network security detection method proposed in the present disclosure, the method includes determining the second flow rate of the fixed-format data message and the total flow rate of the network switching device; based on the first flow rate, the second flow rate and the total flow rate, determining the security of the second message. The method of the present disclosure determines the security of the second message by determining the first flow rate, the second flow rate and the total flow rate, thereby realizing multi-layer security screening of the message and improving the accuracy of network security detection and the security of network transmission.
[0067] Figure 5 The following is a flowchart of a network security detection method proposed in the present disclosure. Figure 4 In the illustrated embodiment, step 402 is further explained, and the method further includes steps 501-503.
[0068] Step 501: When the total flow rate is greater than the sum of the first flow rate and the second flow rate, it is determined that the second message is an illegal message.
[0069] In some embodiments, the network switch device determines that the total traffic rate is greater than the sum of the first traffic rate and the second traffic rate. The network switch device may believe that in addition to the second message and the fixed-format data message, there is also a third-party network request. At this time, in order to ensure network security, the network switching device may determine that the second message is an illegal message.
[0070] For example, when the X86 processor determines that the total traffic rate is greater than the sum of the first traffic rate and the second traffic rate, it proves that the network request made by the second interactive chip includes not only the second message and the data message in a fixed format, but also other third-party network requests. This third-party network request may be an illegally intrusive network request generated after the second message is used to communicate with the external network. At this time, the X86 processor can determine that the second message is an illegal message and notify the SOC FPGA processor of the determination result.
[0071] Step 502: When the total flow rate is equal to the sum of the first flow rate and the second flow rate, and the first flow rate meets a second preset condition, it is determined that the second message is an illegal message.
[0072] In some embodiments, the network switch device determines that the total traffic rate is equal to the sum of the first traffic rate and the second traffic rate, and the first traffic rate and the second traffic rate meet the second preset condition. The network switch device may consider that the traffic rate of the second message exceeds the preset condition. At this time, in order to ensure the normal operation of the network requests corresponding to other security messages, the network switching device may determine that the second message is an illegal message.
[0073] In some embodiments, the second preset condition may be that the second traffic rate is greater than or equal to 10% of the total traffic rate of the network switch device before transmitting the second message, but is not limited thereto. It may also be other preset thresholds or conditions, which are not limited in the present disclosure.
[0074] In other words, the second preset condition is used to determine whether the first traffic flow rate exceeds the transmission speed of a normal network request.
[0075] For example, when the X86 processor determines that the total traffic rate is equal to the sum of the first traffic rate and the second traffic rate, and the first traffic rate is equal to 10% of the total traffic rate before transmitting the second message, this indicates that although there are no other third-party network requests, the traffic rate of the second message far exceeds the transmission speed of normal network requests, which may seriously affect the normal progress of other network requests. At this time, the X86 processor can determine that the second message is an illegal message and notify the SOC FPGA processor of the determination result.
[0076] It should be understood that the present disclosure does not limit the execution order of step 501 and step 502, that is, step 501 may be executed first and then step 502, or step 502 may be executed first and then step 501.
[0077] Step 503: Determine the safe message in the second message based on the illegal message.
[0078] In some embodiments, the network switch device determines the illegal message in the second message through step 501 and step 502, and then determines other messages in the second message except the illegal message as safe messages.
[0079] For example, the X86 processor may determine that the second message other than the illegal message determined above is a safe message, and notify the SOC FPGA processor of the identification result.
[0080] In summary, the network security detection method proposed in the present disclosure includes: when the total flow rate is greater than the sum of the first flow rate and the second flow rate, determining that the second message is an illegal message; when the total flow rate is equal to the sum of the first flow rate and the second flow rate, and the first flow rate meets the second preset condition, determining that the second message is an illegal message; based on the illegal message, determining the safe message in the second message. The method of the present disclosure determines the security of the second message by determining the relationship between the first flow rate, the second flow rate and the total flow rate, thereby improving the accuracy of network security detection and the security of network transmission.
[0081] Figure 6 The following is a flowchart of a network security detection method proposed in the present disclosure. Figure 1-5 The embodiment shown, further explained, Figure 6 Includes step 601.
[0082] Step 601: Update the first preset condition based on the illegal message and the safe message.
[0083] In some embodiments, the network switch device updates the first preset condition based on illegal messages and safe messages, thereby reducing the detection range of subsequent security detection and saving device resources.
[0084] In some embodiments, the network switch device may write information such as the source address and keywords of the illegal message into the blacklist, but is not limited thereto. Other information of the illegal message may also be written into the blacklist to update the first preset condition.
[0085] In some embodiments, the network switch device may write information such as the source address and keywords of the security message into the whitelist, but is not limited thereto. Other information of the security message may also be written into the whitelist to update the first preset condition.
[0086] For example, the SOC FPGA processor receives the determination result (ie, the safe message and the illegal message) sent by the X86 processor, and based on this, the SOC FPGA processor updates the blacklist and the whitelist.
[0087] In summary, the network security detection method proposed in the present disclosure includes: updating the first preset condition based on illegal messages and safe messages. The method of the present disclosure reduces the detection range of subsequent security detection and saves equipment resources by updating the first preset condition.
[0088] The following is an exemplary explanation of the present disclosure:
[0089] A network switch device such as Figure 2 As shown, it includes: a SOC FPGA processor, an X86 processor, a first interactive chip, a second interactive chip, a network port and a local terminal device, wherein:
[0090] 1. Network port: used to connect to local network devices.
[0091] 2. The first interactive chip is responsible for identifying the type of network messages transmitted from the local end. Network messages are divided into general messages and security-related messages (i.e., the second message mentioned above). The type of network messages is identified through the message header. The message type identification process is an existing technology and will not be described in detail here.
[0092] In the first interaction, the security-related messages are handed over to the PL part of the SOC FPGA processor for processing, and the general messages are handed over to the PL part of the SOC FPGA processor for forwarding.
[0093] 3. SoC FPGA processor: SoC FPGA processor is mainly divided into two parts: PL part and PS part. PL part is the programmable logic part, which refers to the FPGA part. PS part is the programmable system part, which refers to the embedded processor part. PS and PL can communicate through the bus.
[0094] In some embodiments, the switch device includes multiple service ports. The complete data message sent by the external device enters the first interactive chip through the network port. The first interactive chip classifies and filters the received data message according to the information and type, and then internally exchanges the general data message and forwards it outward through the network port. The management message and the second / third layer protocol message are transmitted to the PS programmable system part of the SoC FPGA. This part of the function will unpack and process the received data message according to the relevant protocol, control and manage the relevant equipment for the management message, and perform second / third layer protocol processing on the second / third layer protocol message. The processed data message is re-packaged and sent to the first interactive chip, and is transmitted to the network interface through the first interactive chip to interact with the external device.
[0095] In some embodiments, the first interactive chip transmits the security and encrypted message to the PL programmable logic part of the SoC FPGA, and the programmable logic part uses the programmable characteristics to set security rules (i.e., the white list and / or black list in the above-mentioned first preset condition) according to the user or specific environment, and performs corresponding security operations. The specific operations are as follows:
[0096] (1) Perform security level analysis on the received data message, send the security message back to the first interactive chip, perform internal exchange and then forward it externally (i.e., the network request corresponding to the whitelist)
[0097] (2) For some illegal messages similar to message attacks, they are directly discarded (i.e. network requests corresponding to the blacklist)
[0098] (3) The message whose security cannot be determined (i.e., the second message) is sent to the X86 processor for processing.
[0099] 4. X86 processor: The X86 processor stores programs such as transmission security message program, transmission data message program, flow rate monitoring program, and control program.
[0100] In some embodiments, the function of the transmission security message program is to forward the message (ie, the second message) whose security cannot be recognized by the PL part of the SOC FPGA through the second interaction chip as a data message.
[0101] In some embodiments, the data message transmission program controls the X86 processor to send a data message in a fixed format through the second interactive chip to perform data transmission with the external network.
[0102] In some embodiments, the traffic rate monitoring program can monitor the traffic rate of fixed-format data packets (i.e., the second traffic rate mentioned above) and the traffic rate of messages that cannot be identified for security (i.e., the first traffic rate mentioned above), as well as the total traffic rate of data transmission through the second interactive chip.
[0103] The relationship between the total flow rate and the first flow rate and the second flow rate may be the following:
[0104] 3.1 Total traffic flow rate > (first traffic flow rate + second traffic flow rate): In this state, it is proved that the network requests made through the second interactive chip include not only messages that cannot be identified as security and data messages in a fixed format, but also other third-party network requests. This third-party network request is likely to be an illegally intrusive network request generated after communicating with the external network through messages that cannot be identified as security. At this time, the X86 processor determines that the messages that cannot be identified as security are illegal messages, and notifies the SOC FPGA processor of the identification result. The SOC FPGA processor directly discards the message transmitted by the local end, marks it as an illegal message, and updates the blacklist.
[0105] 3.2 Total traffic rate = (first traffic rate + second traffic rate), and the current first traffic rate is 10% of the traffic rate before the execution of the message that cannot be identified as security (it can also be other preset values): This state indicates that although there are no other third-party network requests, the control degree of the traffic rate by the message that cannot be identified as security far exceeds the transmission speed of normal network requests, which may seriously affect the normal progress of other network requests. At this time, the X86 processor determines that the message that cannot be identified as security is an illegal message, and notifies the SOC FPGA processor of the identification result. The SOC FPGA processor directly discards the message transmitted by the local end and updates the blacklist.
[0106] 3.3 In addition to the above two cases, the X86 processor determines that the message that cannot be identified as security is a secure message, and notifies the SOC FPGA processor of the identification result. The SOC FPGA processor forwards the message transmitted by the local end, marks it as a secure message, and updates the whitelist.
[0107] 5. The second interactive chip is used to transmit messages that cannot be identified as security and data messages in a fixed format.
[0108] Therefore, this solution has the following beneficial effects:
[0109] 1. The present disclosure preliminarily screens the first message involving the security category through the first preset condition, determines the second message whose security cannot be identified through the first preset condition, and reduces the amount of calculation for subsequent determination of the security of the message.
[0110] 2. Determine the security of the second message through the first traffic flow rate, the second traffic flow rate and the total traffic flow rate to accurately identify illegal messages and safe messages in the second message, thereby achieving message security detection.
[0111] 3. This method performs multi-layer security screening on the first message through the first preset condition and the determination of the traffic flow rate, and securely isolates the message of uncertain security from the local end, thereby improving the accuracy of network security detection and the security of network transmission.
[0112] Figure 7 FIG. 7 is a schematic diagram of a switch device 700 provided in an embodiment of the present disclosure. Figure 7 As shown, the switch device includes:
[0113] A first processing unit 710 is used to determine, based on a first preset condition, a second message in a first message related to a security class, wherein the first preset condition is used to determine the security of the first message, and the second message is a first message whose security cannot be identified;
[0114] The second processing unit 720 is used to determine the security of the second message based on the first traffic flow rate of the second message; and perform message security processing on the second message based on the security.
[0115] According to the switch device proposed in the present disclosure, a first message involving a security category is preliminarily screened through a first preset condition to determine a second message whose security cannot be identified through the first preset condition, thereby reducing the amount of calculation for subsequently determining the security of the message; the security of the second message is determined through a first traffic flow rate of the second message to accurately identify illegal messages and secure messages in the second message, thereby realizing message security detection. This method performs multi-layer security screening on the first message through the first preset condition and the first traffic flow rate, thereby improving the accuracy of network security detection and the security of network transmission.
[0116] In some embodiments of the present disclosure, the first processing unit 710 is further configured to obtain a network message; and determine the first message based on a message header of the network message.
[0117] In some embodiments of the present disclosure, the first preset condition includes: a whitelist and / or a blacklist, wherein the whitelist is used to determine the safe message in the first message, and the blacklist is used to determine the illegal message in the first message.
[0118] In some embodiments of the present disclosure, the second processing unit 720 is also used to determine the second traffic rate of the fixed-format data packet and the total traffic rate of the network switching device; based on the first traffic rate, the second traffic rate and the total traffic rate, determine the security of the second packet.
[0119] In some embodiments of the present disclosure, the second processing unit 720 is also used to determine that the second message is an illegal message when the total traffic rate is greater than the sum of the first traffic rate and the second traffic rate; when the total traffic rate is equal to the sum of the first traffic rate and the second traffic rate, and the first traffic rate meets the second preset condition, determine that the second message is an illegal message; based on the illegal message, determine a safe message in the second message.
[0120] In some embodiments of the present disclosure, the second processing unit 720 is further configured to: exchange and forward the security message; and discard the illegal message.
[0121] In some embodiments of the present disclosure, the first processing unit 710 is further configured to update the first preset condition based on the illegal message and the safe message.
[0122] It should be noted that: when the switch device provided in the above embodiment performs network security detection, only the division of the above-mentioned program modules is used as an example. In actual applications, the above-mentioned processing can be assigned to different program modules as needed, that is, the internal structure of the switch device is divided into different program modules to complete all or part of the processing described above.
[0123] Since the device provided in the embodiment of the present disclosure corresponds to the methods provided in the above-mentioned embodiments, the implementation of the method is also applicable to the device provided in the embodiment and will not be described in detail in this embodiment.
[0124] In the embodiments provided in the present application, the methods and devices provided in the embodiments of the present application are introduced. In order to implement the functions in the methods provided in the embodiments of the present application, the electronic device may include a hardware structure and a software module, and implement the functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. A function of the functions may be executed in the form of a hardware structure, a software module, or a hardware structure plus a software module.
[0125] Figure 8 A schematic diagram of the hardware structure of the communication device provided in the embodiment of the present disclosure is shown in FIG. Figure 8 As shown, the communication device 800 includes at least one processor 802; and a memory 801 that is communicatively connected to the at least one processor 802; wherein the memory 801 stores instructions that can be executed by the at least one processor 802, and the instructions are executed by the at least one processor 802 to implement the steps of the network security detection method described in the embodiment of the present disclosure; or, the instructions are executed by the at least one processor 802 to implement the steps of the network security detection method described in the embodiment of the present disclosure.
[0126] It is understood that the communication device also includes a communication interface 803. The various components in the communication device are coupled together through a bus system 804. It is understood that the bus system 804 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 804 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 8 Various buses are labeled as bus system 804 .
[0127] It is understood that the memory 801 may be a volatile memory or a non-volatile memory, and may also include a volatile memory and a non-volatile memory.
[0128] Both non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disk, or read-only optical disk (CD ROM); magnetic surface memory can be magnetic disk memory or tape memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The memory 801 described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable types of memory.
[0129] The method disclosed in the above embodiment of the present disclosure may be applied to the processor 802, or implemented by the processor 802. The processor 802 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 802 or an instruction in the form of software.
[0130] The processor 802 described above may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 802 may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiments of the present invention, it may be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a storage medium, which is located in the memory 801, and the processor 802 reads the information in the memory 801 and completes the steps of the aforementioned method in combination with its hardware.
[0131] In an exemplary embodiment, the communication device may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), FPGA, general purpose processor, controller, MCU, microprocessor, or other electronic components to execute the aforementioned method.
[0132] The embodiment of the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to implement the steps of the network security detection method described in the embodiment of the present invention when the computer instructions are executed.
[0133] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0134] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0135] In some embodiments of the present specification, terms such as “MR sample point” and “MR point” may be used interchangeably.
[0136] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0137] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (control method), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.
[0138] It should be understood that the various parts of the embodiments of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0139] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0140] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0141] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A network security detection method, It is characterized in that The method is performed by a network switch device, and the method includes: Based on a first preset condition, determining a second message in a first message related to a security class, wherein the first preset condition is used to determine the security of the first message, and the second message is a first message whose security cannot be identified; Determining the security of the second message based on the first traffic flow rate of the second message; Based on the security, message security processing is performed on the second message.
2. The method according to claim 1, It is characterized in that The method further comprises: Get network messages; The first message is determined based on a message header of the network message.
3. The method according to claim 1, It is characterized in that The first preset condition includes: a white list and / or a black list, wherein the white list is used to determine the safe messages in the first message, and the black list is used to determine the illegal messages in the first message.
4. The method according to claim 1, It is characterized in that The determining, based on the first traffic flow rate of the second message, the second security of the second message includes: Determine a second flow rate of the data message of the fixed format and a total flow rate of the network switching device; The security of the second message is determined based on the first traffic flow rate, the second traffic flow rate and the total traffic flow rate.
5. The method according to claim 4, It is characterized in that The determining the security of the second message based on the first traffic flow rate, the second traffic flow rate and the total traffic flow rate includes: When the total traffic flow rate is greater than the sum of the first traffic flow rate and the second traffic flow rate, determining that the second message is the illegal message; When the total flow rate is equal to the sum of the first flow rate and the second flow rate, and the first flow rate meets a second preset condition, determining that the second message is the illegal message; Based on the illegal message, a safe message in the second message is determined.
6. The method according to any one of claims 1 to 5, It is characterized in that The performing message security processing on the second message based on the security includes: Exchanging and forwarding the security message; The illegal message is discarded.
7. The method according to any one of claims 1 to 6, It is characterized in that The method further comprises: Based on the illegal message and the safe message, the first preset condition is updated.
8. A network switching device, It is characterized in that include: a first processing unit and a second processing unit, The first processing unit is used to determine a second message in a first message related to a security class based on a first preset condition, wherein the first preset condition is used to determine the security of the first message, and the second message is a first message whose security cannot be identified; The second processing unit is used to determine the security of the second message based on the first traffic flow rate of the second message; and perform message security processing on the second message based on the security.
9. A communication device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A computer storage medium, in, The computer storage medium stores computer executable instructions; after the computer executable instructions are executed by the processor, the method described in any one of claims 1 to 7 can be implemented.
