Anti-bypass hijacking method and system, inlet and outlet switches, and security network element

By adding an encryption field to the IP data packet and using the SDN controller to determine the consistency of the decrypted data with the security policy, the problem that the TCP protocol is susceptible to side-channel hijacking is solved, security verification and filtering of the data packet is realized, and network security is enhanced. sex.

CN114124491BActive Publication Date: 2024-10-15CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111338317.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-12
Publication Date
2024-10-15
Estimated Expiration
2041-11-12

AI Technical Summary

Technical Problem

The clear text exposure of the TCP protocol makes data packets vulnerable to side-channel hijacking attacks. Attackers can tamper with the intermediate network to bypass user security components and then attack the target host.

Method used

The SDN controller operates the IP data packet, generates encrypted fields and adds optional fields to the data packet. The security network element decrypts and backfills the data packet. The egress switch determines the consistency of the decrypted data with the security policy to determine the hijacking situation.

Benefits of technology

Effectively prevent side-channel hijacking attacks of data packets at key nodes, ensure that data packets pass through the preset security service chain, filter illegal data, and enhance network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114124491B_ABST
    Figure CN114124491B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a bypass hijacking prevention method and system, inlet and outlet switches, and security network elements. The bypass hijacking prevention method includes: the inlet switch generates an encrypted field according to the security policy information of the security network element that the IP data packet needs to pass through; the inlet switch adds the encrypted field to the optional field of the IP data packet; the security network element decrypts the encrypted field and fills the decrypted data back into the IP data packet; the outlet switch extracts the decrypted data; the outlet switch determines whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element. The present disclosure can use the northbound interface of the SDN controller and the virtual switch to add IP data packet header verification to ensure that the data packet passes through the preset security service chain to achieve the purpose of filtering illegal data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information security, and in particular to a bypass hijacking prevention method and system, inlet and outlet switches, and a security network element. Background Art

[0002] TCP (Transmission Control Protocol) is an end-to-end protocol, and all protocol information is exposed in plain text. The source and destination hosts do not understand the intermediate network, so it is prone to the risk of bypass hijacking. Attackers hijack data packets and tamper with the intermediate network to achieve the goal of skipping user security components and then attacking the target host. Summary of the invention

[0003] In view of at least one of the above technical problems, the present disclosure provides a bypass hijacking prevention method and system, ingress and egress switches, and security network elements, which can operate IP (Internet Protocol) data packets through an SDN (Software Defined Network) controller to prevent data packets from being attacked by bypass hijacking at key nodes.

[0004] According to one aspect of the present disclosure, a method for preventing bypass hijacking is provided, comprising:

[0005] The ingress switch generates an encryption field based on the security policy information of the security network element that the IP data packet needs to pass through;

[0006] The ingress switch adds the encryption field to the optional field of the IP data packet;

[0007] The security network element decrypts the encrypted field and fills the decrypted data back into the IP data packet;

[0008] The egress switch extracts the decrypted data;

[0009] The egress switch determines whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element.

[0010] In some embodiments of the present disclosure, the egress switch determines whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element, including:

[0011] If the decrypted data is consistent with the security policy information of the security network element, it is determined that the IP data packet is filtered by the security network element as required;

[0012] If the decrypted data is inconsistent with the security policy information of the security network element, it is determined that the IP data packet is hijacked and the security risk is reported to the controller.

[0013] In some embodiments of the present disclosure, the IP data packet optional field is an optional field of the IP data packet header.

[0014] In some embodiments of the present disclosure, the encrypted field is data obtained by generating a digital summary based on security policy information of the security network element and performing a digital signature.

[0015] In some embodiments of the present disclosure, the number of security network elements that the IP data packet needs to pass through is at least one.

[0016] In some embodiments of the present disclosure, the security network element decrypting the encrypted field includes:

[0017] The security network element decrypts the encrypted field using the public key.

[0018] According to another aspect of the present disclosure, there is provided an ingress switch, comprising:

[0019] An encryption field generation module generates an encryption field according to security policy information of a security network element that an IP data packet needs to pass through;

[0020] The encryption field adding module, the inlet switch adds the encryption field to the optional field of the IP data packet so that the security network element decrypts the encryption field and fills the decrypted data back into the IP data packet. The egress switch extracts the decrypted data and determines whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element.

[0021] According to another aspect of the present disclosure, a security network element is provided, including:

[0022] A decryption module, used to decrypt the encrypted field in the optional field of the IP data packet to generate decrypted data, wherein the encrypted field is generated by the ingress switch according to the security policy information of the security network element that the IP data packet needs to pass through;

[0023] The data backfill module is used to backfill the decrypted data into the IP data packet so that the egress switch can extract the decrypted data and determine whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element.

[0024] According to another aspect of the present disclosure, there is provided an egress switch, comprising:

[0025] A decrypted data extraction module, used to extract the decrypted encrypted field of the security network element and fill it back into the decrypted data in the optional field of the IP data packet, wherein the encrypted field is generated by the ingress switch according to the security policy information of the security network element that the IP data packet needs to pass through;

[0026] The judgment module is used to determine whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element.

[0027] According to another aspect of the present disclosure, a bypass hijacking prevention system is provided, comprising an ingress switch as described in any of the above embodiments, a security network element as described in any of the above embodiments, and an egress switch as described in any of the above embodiments.

[0028] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the anti-bypass hijacking method as described in any of the above embodiments is implemented.

[0029] The present disclosure can utilize the northbound interface of the SDN controller and the virtual switch to add IP data packet header verification to ensure that the data packet passes through a preset security service chain, thereby achieving the purpose of filtering illegal data. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0031] Figure 1 Schematic diagram of some embodiments of the anti-bypass hijacking method disclosed in the present invention.

[0032] Figure 2 Schematic diagrams of other embodiments of the anti-bypass hijacking method disclosed in the present invention.

[0033] Figure 3 The present invention is a schematic diagram of a variable field filling method for an IP data packet in some embodiments of the present invention.

[0034] Figure 4 Schematic diagram of some embodiments of the anti-bypass hijacking system disclosed in the present invention.

[0035] Figure 5 Schematic diagram of some embodiments of the ingress switch disclosed herein.

[0036] Figure 6 Schematic diagram of some embodiments of the security network element disclosed in the present invention.

[0037] Figure 7 Schematic diagram of some embodiments of the egress switch disclosed herein. DETAILED DESCRIPTION

[0038] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0039] Unless specifically stated otherwise, the relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure.

[0040] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0041] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.

[0042] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0043] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0044] Figure 1 Schematic diagram of some embodiments of the anti-bypass hijacking method disclosed in the present invention. Preferably, this embodiment can be performed by the anti-bypass hijacking system disclosed in the present invention. The method may include at least one of steps 11 to 15, wherein:

[0045] Step 11: The ingress switch generates an encryption field according to the security policy information of the security network element that the IP data packet needs to pass through.

[0046] In some embodiments of the present disclosure, the encrypted field is data obtained by generating a digital summary based on security policy information of the security network element and performing a digital signature.

[0047] Step 12: The ingress switch adds the encryption field to the optional field of the IP data packet.

[0048] In some embodiments of the present disclosure, the IP data packet optional field may be an optional field of the IP data packet header.

[0049] In some embodiments of the present disclosure, the IP data packet optional field may be a variable part of the IP data packet header.

[0050] Step 13: The security network element decrypts the encrypted field and fills the decrypted data back into the IP data packet.

[0051] In some embodiments of the present disclosure, in step 13, the step of the security network element decrypting the encrypted field may include: the security network element decrypting the encrypted field using a public key.

[0052] Step 14: The egress switch extracts the decrypted data.

[0053] Step 15: The egress switch determines whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element.

[0054] In some embodiments of the present disclosure, step 15 may include: the egress switch determines whether the decrypted data is consistent with the security policy information of the security network element; if the decrypted data is consistent with the security policy information of the security network element, it is determined that the IP data packet has been filtered by the security network element as required; if the decrypted data is inconsistent with the security policy information of the security network element, it is determined that the IP data packet has been hijacked and the security risk is reported to the controller.

[0055] In some embodiments of the present disclosure, the number of security network elements that the IP data packet needs to pass through is at least one.

[0056] The above-mentioned embodiment of the present disclosure proposes a routing anti-tampering method based on the IP protocol, which can use the northbound interface of the SDN controller and the virtual switch to increase IP data packet header verification to ensure that the data packet passes through the preset security service chain to achieve the purpose of filtering illegal data.

[0057] The above embodiments of the present disclosure can utilize SDN programmability to operate IP data packets through an SDN controller to prevent data packets from being attacked by bypass hijacking at key nodes.

[0058] Figure 2 Schematic diagram of other embodiments of the anti-bypass hijacking method disclosed in the present invention. Preferably, this embodiment can be performed by the anti-bypass hijacking system disclosed in the present invention. The method may include at least one of steps 21 to 29, wherein:

[0059] Step 21, when the IP data packet arrives at the ingress switch, the ingress switch parses the packet header of the IP data packet.

[0060] Step 22: Configure the SDN controller policy on the ingress switch to modify and encapsulate the IP data packet.

[0061] In some embodiments of the present disclosure, step 22 may include: the ingress switch generates an encryption field according to security policy information of a security network element that the IP data packet needs to pass through; and the ingress switch adds the encryption field to an optional field of the IP data packet.

[0062] In some embodiments of the present disclosure, step 22 may include: when creating a source route for a service flow, specifying a network component to calculate a digital signature and adding the digital signature to a data packet.

[0063] In some embodiments of the present disclosure, in step 22, the step of modifying and encapsulating the IP data packet may include: modifying a variable portion of the IP data packet header and adding encrypted data.

[0064] In some embodiments of the present disclosure, the variable portion of the IP data packet header may be an optional field of the IP data packet header.

[0065] In some embodiments of the present disclosure, the encrypted data is digital summary data generated based on the security network element device information and signed.

[0066] In some embodiments of the present disclosure, the security network element device information may be security policy information of at least one security network element that the IP data packet needs to pass through.

[0067] In some embodiments of the present disclosure, the security network element device information may be critical path information.

[0068] In some embodiments of the present disclosure, step 22 may include: generating an 8-bit digital summary from the security policy information of the security network element that the data packet needs to pass through, and adding the summary to the variable field of the IP data packet.

[0069] Figure 3 Schematic diagram of a method for filling variable fields in an IP data packet in some embodiments of the present disclosure. Figure 3 As shown, the security network element is a FW (Firewall).

[0070] In some embodiments of the present disclosure, Figure 3 As shown, the method for filling variable fields of the IP data packet may include: performing a hash algorithm on the firewall information to obtain an 8-bit digital summary 01111110; performing a digital signature on the digital summary to obtain 10110110;

[0071] Fill the 8-bit firewall ciphertext information after the digital signature into the optional field of the IP data packet with variable length.

[0072] Step 23, perform matching table matching, the controller sends the flow table according to the DIP (destination IP) and executes the data packet forwarding action.

[0073] Step 24: The security network element receives the IP data packet, parses the IP data packet header, and extracts the variable part of the IP header.

[0074] Step 25: The security network element decrypts the variable data according to the controller policy.

[0075] In some embodiments of the present disclosure, step 24 may include: the security network element decrypts the 8-digit digital digest using the public key.

[0076] Step 26: The security network element fills the decrypted data back into the variable part of the IP data packet and transmits the data packet to the egress switch.

[0077] In some embodiments of the present disclosure, if there are multiple security network elements, the same process of step 21 to step 26 is performed on each security network element to transmit the data packet to the egress switch.

[0078] Step 27: The egress switch extracts the decrypted data and verifies the decrypted data.

[0079] Step 28: The egress switch matches the security network element ID.

[0080] In some embodiments of the present disclosure, step 28 may include: the export switch determines whether the decrypted data is consistent with the security policy information of the security network element; if the decrypted data is consistent with the security policy information of the security network element, it is determined that the IP data packet has been filtered by the security network element as required, and then the forwarding action is performed; if the decrypted data is inconsistent with the security policy information of the security network element, it is determined that the IP data packet has been hijacked, the data packet is discarded, and the security risk is reported to the controller.

[0081] In some embodiments of the present disclosure, step 28 may include: the egress switch obtains the 8-bit summary information generated by the security component security policy information; compares it with the data packet information; if the decrypted data is consistent with the component security policy information, it is considered that the data packet has been filtered by the security network element as required, and then the forwarding action is performed; otherwise, the data is considered to be hijacked, the data packet is discarded, and the security risk is reported to the controller.

[0082] The above embodiment of the present disclosure can modify and encapsulate IP data packets by configuring SDN controller policies. The above embodiment of the present disclosure fills the encryption field with the optional field of the existing IP data packet header, records the security service chain network element information, and completes the verification through the decryption of the security network element, and determines whether the DIP has been tampered with.

[0083] When creating a source route for a service flow, the above embodiment of the present disclosure may specify a network component to calculate a digital signature and add the digital signature to a data packet. The node verifies the integrity of the source route using the digital signature and the public key.

[0084] The above-mentioned embodiments of the present disclosure can utilize the programmability of SDN to add critical path information to IP data packets, place the decryption process on the critical path, and realize the separation of decryption and verification to ensure that the routing of the data packet is not tampered with.

[0085] Figure 4 Schematic diagram of some embodiments of the anti-bypass hijacking system disclosed in the present invention. Figure 4 As shown, the anti-bypass hijacking system of the present disclosure may include an inlet switch 41, a security network element 42 and an outlet switch 43, wherein:

[0086] The ingress switch 41 is used to generate an encryption field according to the security policy information of the security network element that the IP data packet needs to pass through; and add the encryption field to the optional field of the IP data packet.

[0087] In some embodiments of the present disclosure, the ingress switch 41 may be configured to specify a network component to calculate a digital signature and add the digital signature to a data packet when creating a source route for a service flow.

[0088] In some embodiments of the present disclosure, the ingress switch 41 may be used to modify the variable portion of the IP data packet header and add encrypted data.

[0089] In some embodiments of the present disclosure, the ingress switch 41 may be used to generate an 8-bit digital summary from the security policy information of the security network element that the data packet needs to pass through, and add the summary to the variable field of the IP data packet.

[0090] In some embodiments of the present disclosure, the IP data packet optional field may be an optional field of the IP data packet header.

[0091] In some embodiments of the present disclosure, the IP data packet optional field may be a variable part of the IP data packet header.

[0092] In some embodiments of the present disclosure, the encryption field may be data obtained by generating a digital summary based on security policy information of the security network element and performing a digital signature.

[0093] In some embodiments of the present disclosure, the number of security network elements that the IP data packet needs to pass through is at least one.

[0094] The security network element 42 is used to decrypt the encrypted field and fill the decrypted data back into the IP data packet.

[0095] In some embodiments of the present disclosure, the security network element 42 may be configured to decrypt the encrypted field using a public key.

[0096] In some embodiments of the present disclosure, the security network element 42 may be configured to decrypt the 8-digit digital digest using a public key.

[0097] The egress switch 43 is used to extract the decrypted data; and determine whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element.

[0098] In some embodiments of the present disclosure, the export switch 43 can be used to determine whether the decrypted data is consistent with the security policy information of the security network element; if the decrypted data is consistent with the security policy information of the security network element, it is determined that the IP data packet has been filtered by the security network element as required; if the decrypted data is inconsistent with the security policy information of the security network element, it is determined that the IP data packet has been hijacked and the security risk is reported to the controller.

[0099] In some embodiments of the present disclosure, the egress switch 43 can be used to obtain 8-bit summary information generated by security component security policy information; compare it with the data packet information; if the decrypted data is consistent with the component security policy information, it is considered that the data packet has been filtered by the security network element as required, and then the forwarding action is performed; otherwise, it is considered that the data has been hijacked, the data packet is discarded, and the security risk is reported to the controller.

[0100] The above-mentioned embodiment of the present disclosure proposes a routing anti-tampering system based on the IP protocol, which can use the northbound interface of the SDN controller and the virtual switch to increase IP data packet header verification to ensure that the data packet passes through a preset security service chain to achieve the purpose of filtering illegal data.

[0101] The above embodiments of the present disclosure can utilize SDN programmability to operate IP data packets through an SDN controller to prevent data packets from being attacked by bypass hijacking at key nodes.

[0102] The structure and function of each component in the anti-bypass hijacking system are explained below through specific embodiments.

[0103] Figure 5 Schematic diagram of some embodiments of the inlet switch disclosed in the present invention. Figure 5 As shown, the inlet switch (e.g. Figure 4 The ingress switch 41 of the embodiment may include an encrypted field generation module 411 and an encrypted field addition module 412, wherein:

[0104] The encryption field generation module 411 generates an encryption field according to the security policy information of the security network element that the IP data packet needs to pass through.

[0105] The encryption field adding module 412, the inlet switch adds the encryption field to the optional field of the IP data packet so that the security network element decrypts the encryption field and fills the decrypted data back into the IP data packet. The egress switch extracts the decrypted data and determines whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element.

[0106] Figure 6 Schematic diagram of some embodiments of the security network element disclosed in the present invention. Figure 6 As shown, the security network element (e.g. Figure 4 The security network element 42 of the embodiment may include a decryption module 421 and a data backfill module 422, wherein:

[0107] The decryption module 421 is used to decrypt the encrypted field in the optional field of the IP data packet to generate decrypted data, wherein the encrypted field is generated by the ingress switch according to the security policy information of the security network element that the IP data packet needs to pass through.

[0108] The data backfill module 422 is used to backfill the decrypted data into the IP data packet so that the egress switch can extract the decrypted data and determine whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element.

[0109] Figure 7 Schematic diagram of some embodiments of the egress switch disclosed in the present invention. Figure 7 As shown, the export switch (eg Figure 4 The egress switch 43 of the embodiment may include a decrypted data extraction module 431 and a judgment module 432, wherein:

[0110] The decrypted data extraction module 431 is used to extract the decrypted encryption field of the security network element and fill it back into the decrypted data in the optional field of the IP data packet, wherein the encryption field is generated by the ingress switch according to the security policy information of the security network element that the IP data packet needs to pass through.

[0111] The judgment module 432 is used to determine whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element.

[0112] The above embodiment of the present disclosure can modify and encapsulate IP data packets by configuring SDN controller policies. The above embodiment of the present disclosure fills the encryption field with the optional field of the existing IP data packet header, records the security service chain network element information, and completes the verification through the decryption of the security network element, and determines whether the DIP has been tampered with.

[0113] When creating a source route for a service flow, the above embodiment of the present disclosure may specify a network component to calculate a digital signature and add the digital signature to a data packet. The node verifies the integrity of the source route using the digital signature and the public key.

[0114] The above-mentioned embodiments of the present disclosure can utilize the programmability of SDN to add critical path information to IP data packets, place the decryption process on the critical path, and realize the separation of decryption and verification to ensure that the routing of the data packet is not tampered with.

[0115] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, any of the above embodiments (for example Figure 1-Figure 3 The anti-bypass hijacking method described in any embodiment).

[0116] The above-mentioned embodiments of the present disclosure propose a non-transitory computer-readable storage medium, which can use the northbound interface of the SDN controller and the virtual switch to add IP data packet header verification to ensure that the data packet passes through a preset security service chain to achieve the purpose of filtering illegal data.

[0117] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, devices, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0118] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram and the combination of processes and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0119] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0120] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0121] The ingress switch, security network element and egress switch described above may be implemented as a general purpose processor, programmable logic controller (PLC) for executing the functions described in this application. ), digital signal processor (DSP), application specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or any appropriate combination thereof.

[0122] So far, the present disclosure has been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.

[0123] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by instructing the relevant hardware through a program, and the program may be stored in a non-transitory computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0124] The description of the present disclosure is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the present disclosure to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present disclosure, and to enable those of ordinary skill in the art to understand the present disclosure and thereby design various embodiments with various modifications suitable for specific uses.

Claims

1. A method for preventing bypass hijacking, characterized in that: include: The ingress switch generates an encrypted field according to the security policy information of the security network element that the IP data packet needs to pass through, wherein the encrypted field is data after a digital summary is generated according to the security policy information of the security network element and digitally signed; The ingress switch adds the encryption field to the optional field of the IP data packet; The security network element decrypts the encrypted field and fills the decrypted data back into the IP data packet; The egress switch extracts the decrypted data; The egress switch determines whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element.

2. The anti-bypass hijacking method according to claim 1, characterized in that: The egress switch determines whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element, including: If the decrypted data is consistent with the security policy information of the security network element, it is determined that the IP data packet is filtered by the security network element as required; If the decrypted data is inconsistent with the security policy information of the security network element, it is determined that the IP data packet is hijacked and the security risk is reported to the controller.

3. The anti-bypass hijacking method according to claim 2, characterized in that: The IP data packet optional field is an optional field of the IP data packet header.

4. The anti-bypass hijacking method according to any one of claims 1 to 3, characterized in that: The number of security network elements that the IP data packet needs to pass through is at least one.

5. The anti-bypass hijacking method according to any one of claims 1 to 3, characterized in that: The security network element decrypting the encrypted field includes: The security network element decrypts the encrypted field using the public key.

6. An inlet switch, characterized in that: include: An encryption field generation module generates an encryption field according to the security policy information of the security network element that the IP data packet needs to pass through, wherein the encryption field is data after a digital summary is generated according to the security policy information of the security network element and digitally signed; The encryption field adding module, the inlet switch adds the encryption field to the optional field of the IP data packet so that the security network element decrypts the encryption field and fills the decrypted data back into the IP data packet. The egress switch extracts the decrypted data and determines whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element.

7. A security network element, characterized in that: include: A decryption module, used to decrypt the encrypted field in the optional field of the IP data packet to generate decrypted data, wherein the encrypted field is generated by the ingress switch according to the security policy information of the security network element that the IP data packet needs to pass through, and the encrypted field is data after a digital summary is generated according to the security policy information of the security network element and digitally signed; The data backfill module is used to backfill the decrypted data into the IP data packet so that the egress switch can extract the decrypted data and determine whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element.

8. An export switch, characterized in that: include: A decrypted data extraction module, used to extract the decrypted encrypted field of the security network element and fill it back into the decrypted data in the optional field of the IP data packet, wherein the encrypted field is generated by the ingress switch according to the security policy information of the security network element that the IP data packet needs to pass through, and the encrypted field is the data after the digital summary is generated according to the security policy information of the security network element and digitally signed; The judgment module is used to determine whether the IP data packet is hijacked by judging whether the decrypted data is consistent with the security policy information of the security network element.

9. A bypass hijacking prevention system, characterized in that: It comprises the inlet switch as claimed in claim 6, the security network element as claimed in claim 7 and the outlet switch as claimed in claim 8.

10. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the anti-bypass hijacking method as described in any one of claims 1-5 is implemented.