TECHNICAL FIELDThe present disclosure relates to network interface devices and systems and more particularly to replay attack prevention on a control plane.
BACKGROUNDReplay attacks use a simple method of exploiting a captured packet and retransmitting that traffic to cause unexpected results by hijacking the traffic and transmitting it at a later time. Even if the communication medium is protected with encryption and strong authentication, if the receiver cannot detect the freshness of a packet or control message, the attack is deemed successful. A major concern in any key management protocol is if the packets or messages carrying the policies or keying material is delayed or captured and replayed after a few seconds, then the Security Associations are installed with incorrect lifetimes. This would result in dropping of data traffic. Thus, the ability for key management protocols to detect such delay and replayed packets and messages would improve protocols which carry time sensitive information.
These shortcomings may be solved by detecting delayed and replayed packets and messages on the control plane by adding pseudotime information to key management exchange packets. Incorporating the ability to detect delayed and replayed packets and messages in the key management protocol helps to mitigate attacks on these protocols.
BRIEF DESCRIPTION OF THE DRAWINGSFIG. 1 is a block diagram showing an example of a secure communication network topology with network devices configured to exchange parameters to prevent replay attacks on a control plane.
FIG. 2 is an example of a timeline depicting control message freshness testing performed during control plane message exchanges between network devices.
FIG. 3 is an example of a block diagram showing a network device configured to perform control message freshness determination techniques.
FIG. 4 is an example of a ladder diagram showing a first exchange of control messages between network devices during which message freshness parameters are exchanged.
FIG. 5 is an example of a ladder diagram showing a second exchange of control messages between the network devices during which message freshness is analyzed.
FIG. 6 is an example of a flow chart for a control message freshness determination operation made during the second exchange of control messages.
FIG. 7 is an example of a diagram showing a time window comparison for control message freshness.
FIG. 8 is an example of a block diagram for a group keying protocol exchange where control message exchanges between a key server device and a plurality of group member devices use the control message freshness determination techniques.
FIG. 9 is an example of a block diagram showing a cooperative keying protocol exchange where message exchanges between respective pairs of a plurality of key server devices use the control message freshness determination techniques.
DETAILED DESCRIPTIONOverview
Techniques are provided for transmitting a plurality of control messages during a secure communication session and testing for the freshness of the control messages. Timestamp information and time window size information are exchanged as a part of the control messages between a plurality of network interface devices. At a first device that is to enter into a secure communication session with a second device, timestamp information and time window size information are sent in a control message to the second device during a first exchange of a first set of control messages between the first device and the second device. The time window size information defines a time window to be used by the second device to test for freshness of a control message received at the second device from the first device during a second exchange of a second set of control messages and the timestamp information indicates a time of departure of the control message with respect to a timing reference of the first device. The first device also receives timestamp information and time window size information from the second device in a control message during the first exchange from the second device. The time window size information received from the second device defines a time window to be used by the first device to test for freshness of a control message received at the first device from the second device during the second exchange of the second set of control messages. The timestamp information contained in the control message received at the first device indicates a time of departure of the control message with respect to a timing reference of the second device.
Example Embodiments
Referring toFIG. 1, a network topology for a secure communication session between network devices is shown atreference numeral10. The network topology has a plurality of network devices that are configured to exchange control messages during the secure communication session. For example,initiator12 andresponder14 are network devices that are configured to exchange control messages over anetwork16. The control messages may be exchanged on a control plane, that is, during control signaling between the devices, as opposed to the transmission of data between the devices. For example, the control messages may be control packets or other packets carrying time sensitive information on the control plane of a secure communication session between the network devices. The control messages contain timing information that allows theinitiator12 and responder14 to test the freshness of the control messages.
Turning toFIG. 2, the freshness of the control messages may be tested for freshness during multiple exchanges of a control plane exchange shown atreference numeral20. For example, thecontrol plane20 may comprise a first phase,Phase1, shown atreference numeral22 and a second phase,Phase2, shown atreference numeral24. According to the techniques described herein, parameters are included in control messages exchanged between theinitiator12 and responder14 during aPhase1 to enable each device to determine the freshness of a control message exchanged duringPhase2. It is also possible that the control messages are tested for freshness duringPhase1.
Turning toFIG. 3, an example of a block diagram for a network device is shown. The block diagram shown inFIG. 3 is representative of a block diagram for a device that serves as theinitiator12 and thetarget14. The network device comprises anetwork interface32, aprocessor34, amemory36 and aclock circuit38. Thenetwork interface32 is configured to send control messages across thenetwork10. Thenetwork interface32 is also configured to receive control messages and to supply the received control messages to theprocessor34. For example, thenetwork interface32 is an Ethernet card or unit.
Theprocessor34 is capable of executing program logic instructions (i.e. software) for carrying out various operations and tasks described herein. For example, theprocessor34 is a microprocessor, microcontroller, digital signal processor, or other data processing device. Theprocessor34 is capable of executing control plane messagefreshness process logic40 stored inmemory36 to send and receive control messages containing timing information and to test the freshness of the control messages based on the timing information. The functions ofprocessor34 may be implemented by logic encoded in one or more tangible media (e.g., embedded logic such as an application specific integrated circuit (ASIC), digital signal processor instructions, software that is executed by a processor, etc), whereinmemory36 stores data used for the operations described herein and stores software or processor executable instructions that are executed to carry out the operations described herein. The control plane messagefreshness process logic40 may take any of a variety of forms, so as to be encoded in one or more tangible media for execution, such as fixed logic or programmable logic (e.g., software/computer instructions executed by a processor) and theprocessor34 may be an ASIC that comprises fixed digital logic, or a combination thereof. For example, theprocessor34 may be embodied by digital logic gates in fixed or a programmable digital logic integrated circuit, which digital logic gates are configured to perform the control plane messagefreshness process logic40. In another form, the control plane messagefreshness process logic40 may be embodied in a processor or computer-readable medium that is encoded with or that stores instructions for execution by a processor (e.g. a processor34) that, when executed by the processor, are operable to cause the processor to perform the operations described herein in connection with the control plane messagefreshness process logic40. Thus, thememory36 may be random access memory (RAM), read only memory (ROM) or any other suitable memory that can store instructions that, when executed by a processor, cause the processor to execute operations.
Theclock circuit38 is a clock chip device that generates the various timing signals used for operations of the network device. To this end, theclock38 serves as a timing reference and is used for purposes of generating a timestamp for a control message that is to be sent by the network device. The timestamp for a control message is also referred to herein as a “Pseudotime” quantity or “Pseudotime” information because it represents a timestamp for a time of departure relative to a timing reference derived from the clock of the device that sends that message. The Pseudotime quantity is used by the network devices for purposes of control message freshness determination, as will become more apparent from the following description.
Turning toFIG. 4, operations of the control plane messagefreshness process logic40 during a first exchange of a first set of control messages between theinitiator12 andresponder14 are shown atreference numeral100. Thisfirst exchange100 corresponds toPhase1 referred to above inFIG. 2. In one example, the control messages are exchanged in an Internet Key Exchange (IKE) protocol. In the IKE protocol, the first exchange of control messages between theinitiator12 andresponder14 occurs during thePhase1 of the IKE protocol. During thePhase1 of the IKE protocol, theinitiator12 and responder14 exchange a series of messages to establish a secure authenticated channel with which to communicate.Phase1 of the IKE protocol can be accomplished in a “Main Mode” or an “Aggressive Mode.” For simplicity,FIG. 4 depicts an example of a Main Mode ofPhase1 of the IKE protocol, though it should be understood that the techniques described herein may be used in other modes of the IKE protocol. It should also be understood that the techniques described herein may be used in connection with other key management protocol exchange.
FIG. 4 shows that theinitiator12 andresponder14 each have a clock (corresponding toclock38 shown inFIG. 3). The initiator clock is used for timing reference at theinitiator12 and the responder clock is used for timing reference at the responder. As will become apparent hereinafter, one aspect of the techniques described herein is to adjust for any offsets between the clocks at theinitiator12 andresponder14. It should also be understood that theinitiator12 andresponder14 may in general be referred to as first and second network devices, respectively.
Referring toFIG. 4, at110, theinitiator12 first generates and sends acontrol message112 to theresponder14.Control message112 contains an Internet Security Association and Key Management Protocol (ISAKMP) header (HDR)114 and a Security Association (SA)negotiation payload116 with one or more proposals for negotiation between theinitiator12 andresponder14. Theinitiator12 may provide multiple proposals for the SA negotiation between theinitiator12 and theresponder14. At120, theresponder14 responds to controlmessage112 with acontrol message122 that contains anISAKMP HDR124 andSA payload126 on behalf of theresponder14.
In response to receiving thecontrol message122, at130, theinitiator12 generates and sendscontrol message132 to theresponder14.Control message132 contains anISAKMP HDR134, a key exchange payload (KE)136, and an initiator nonce payload (Ni)138. The KE payload may be a key exchange payload such as Diffie-Hellman parameters associated with a cryptographic protocol that allows two entities that have no prior knowledge of each other to jointly establish a shared secret key over an insecure communication channel. The nonce payload may be a randomly generated number that is sent by theinitiator12 or theresponder14. The nonce is hashed along with the other items using the agreed upon key. Theinitiator12 may check a cookie including the nonce and may reject any messages which do not have the correct nonce value. This helps to prevent replay since a third party can not predict the randomly generated nonce. In response to receiving thecontrol message132, at140 theresponder14 sendscontrol message142.Control message142 contains anISAKMP HDR144, aKE payload146, and a responder nonce (Nr)payload148. These components ofmessage142 serve functions to those similar components incontrol message132.
In response to receivingcontrol message140, at150 theinitiator12 sends acontrol message152.Control message152 contains an ISAKMP header with a payload encryption (HDR*)154, an identification payload (IDii)156 for theinitiator12, a certificate (CERT)payload158, and a signature (SIG_I)payload159 for theinitiator12. In one example, all payloads following the ISAKMP header HDR* are encrypted. Encryption keys are generated from keying material used by the ISAKMP Security Association to protect the confidentiality of its messages. For example, encryption keys can be generated from a SKEYID_e payload. TheCERT payload158 provides a means to transport certificates or other certificate-related information via the IKE protocol. CERT payloads are included in an exchange if certificates are available to the sender. The SIG_I payload may be the result of a negotiated digital signature algorithm that is applied to an initiator hash.
According to the techniques described herein,message152 contains anadditional Pseudotime payload160 and a time window size (Time_window_size_ctrl)payload162. The Pseudotime andTime_window_size_ctrl payloads160 and162 are in addition to those payloads used during the Phase I of the IKE. ThePseudotime payload160 contains a timestamp or time of departure ofcontrol message152 with respect to a timing reference derived from the initiator clock. TheTime_window_size_ctrl payload162 defines a time window to be used by the responder to test for freshness (replay or delay protection) of a control message received at the responder from the initiator during a second exchange of a second set of control messages (Phase2). The time window size set by the initiator for use by the responder may be based on the network conditions and how much of a delay is acceptable.
In response to receiving thecontrol message152, at170, theresponder14 stores theTime_window_size_ctrl payload162 for use in control message freshness testing as explained hereinafter. In addition, theresponder14 may use thePseudotime payload160 to adjust any timing offset between a timing reference derived from the initiator clock and a timing reference derived from the responder clock. For example, upon receipt ofcontrol message152, theresponder14 may adjust the responder clock such that the responder clock is synchronized with the initiator clock. In another form, theresponder14 may store information indicating the timing offset and use that information during the control message freshness determination described hereinafter to account for the timing offset between the two devices.
In response to receiving thecontrol message152, at180 theresponder14 generates and sends message asimilar control message182.Control message182 contains an ISAKMP header with a payload encryption HDR*184, an identification payload (IDir)186 for theresponder14, aCERT payload188, and a signature payload (SIG_R)189 for theresponder14.Control message182 also contains aPseudotime payload190 and aTime_window_size_ctrl payload192. ThePseudotime payload190 comprises a timestamp or time of departure ofcontrol message182 with respect to a timing reference derived from the responder clock. TheTime_window_size_ctrl payload192 defines a time window to be used by theinitiator12 for determining the freshness of a control message received by theinitiator12 from theresponder14 duringPhase2 as described hereinafter. At195, theinitiator12 stores theTime_window_size_ctrl payload192 for use in control message freshness testing with respect to control messages received from theresponder14. In addition, theinitiator12 may use thePseudotime payload190 to adjust for any timing offset between the initiator clock and the responder clock similar to that described above in connection withoperation170 at the responder.
Thus, by the completion ofPhase1, theresponder14 has time window size information received from the initiator to be used for control message freshness determination for control messages received from the initiator (during a subsequent control message exchange) and pseudotime timestamp information to enable theresponder14 to adjust for timing offsets with respect to the initiator. Similarly, theinitiator12 has time window size information received from the responder to be used for control message freshness determination for control messages received from the responder (during a subsequent control message exchange) and pseudotime timestamp information to enable theinitiator12 to adjust for timing offsets with respect to theresponder14.
Turning toFIG. 5, operations of the control planefreshness process logic40 during a second exchange of a second set of control messages between theinitiator12 and theresponder14 are shown atreference numeral200. Thesecond exchange200 corresponds to Phase2 of the IKE protocol referred to above inFIG. 2. DuringPhase2 of the IKE protocol, theinitiator12 andresponder14 exchange a series of control messages to negotiate Security Associations on behalf of services such as an Internet Protocol Security (IPsec) or any other service that needs key material and parameter negotiation.Phase2 of the IKE protocol can be accomplished in a “Quick Mode.” The Quick Mode is used as part of the Security Association negotiation process inPhase2 to derive keying material and negotiate shared policy for non-ISAKMP Security Associations. The information exchanged in the Quick Mode needs to be protected by the ISAKMP Security association. That is, in the Quick Mode, all payloads except the ISAKMP header are encrypted. For simplicity,FIG. 5 depicts an example of a Quick Mode ofPhase2 of the IKE protocol, though it should be understood that the techniques described herein may be used in other modes of the IKE protocol.
At210, theinitiator12 first generates and sends acontrol message212 toresponder14.Control message212 contains an ISAKMP header with payload encryption HDR*214, a first hash (HASH(1))payload216, anSA negotiation payload218, anNi payload220, aKE payload222, an initiator client identifier payload (IDci)224, a responder client identifier payload (IDcr)226, and aPseudotime payload228. The HASH(1)payload216 may be a pseudo-random function of a message identification from the ISAKMP header concatenated with the entire message that follows the hash including all payload headers, but excluding any padding added to the headers for encryption. TheIDci payload224 andIDcr payload226 contain client identification information for theinitiator12 andresponder14 and may be used if the ISAKMP is acting as a client negotiator on behalf of another ISAKMP peer.
ThePseudotime payload228 ofmessage212 comprises a timestamp forcontrol message212 with respect to the initiator clock. After receivingcontrol message212, at230 theresponder14 may use the pseudotime information contained in thePseudotime payload228 ofcontrol message212 as well as the time window size information received by theresponder14 duringPhase1 to test the freshness ofcontrol message212. An example of the freshness testing operation is described hereinafter in connection withFIGS. 6 and 7.
In response to receiving thecontrol message212, at240 theresponder14 generates and sends asimilar control message242.Control message242 contains an ISAKMP header with payload encryption HDR*244, a second hash (HASH(2))payload246, anSA payload248, anNr payload250, aKE payload252, anIDci payload254, anIDcr payload256, and aPseudotime payload258. The HASH(2)payload246 is typically identical to the HASH(1)payload216 incontrol message212 except that the nonce payload, Nr,240 is added after the message identification header but before the complete message.
ThePseudotime payload258 ofmessage242 comprises a timestamp forcontrol message242 with respect to the responder clock. After receivingcontrol message242, theinitiator12 may use the pseudotime information contained in thePseudotime payload248 of control message232 as well as the time window size information received by theinitiator12 duringPhase1 to test the freshness ofcontrol message242. Again, an example of the freshness testing operation is described hereinafter in connection withFIGS. 6 and 7.
In response to receiving thecontrol message242, at270 theinitiator12 generates and sendscontrol message272.Control message272 contains an ISAKMP header with payload encryption HDR*274 and a third hash (HASH(3))payload276. The HASH(3)payload276 may be a pseudo-random function over a zero value, followed by a concatenation of a message identification and an initiator nonce and a responder nonce.
Turning toFIG. 6, an example of a flow chart for the control message freshness determination operations performed by the responder at14 inFIG. 5 and by the initiator at12 inFIG. 5 is now described. At300, the control message is received, either by the initiator or by the responder. For example, a control message is received by theinitiator12 or theresponder14 inPhase2 of the IKE, as described above. After a control message is received by aninitiator12 orresponder14 inPhase2, theinitiator12 orresponder14 may determine the freshness of the control message byoperation310. For example, at310, theinitiator12 may test for freshness the control message received by theinitiator12 from theresponder14 duringPhase2 by determining whether the pseudotime information for the control messages falls within the time window corresponding to the time window size information received by theinitiator12 duringPhase1. Similarly, theresponder14 may test for freshness the control message received by theresponder14 duringPhase2 by determining whether the pseudotime information for the control message falls within the time window corresponding to the time window size information received by theresponder14 duringPhase1. Furthermore, as mentioned above, thefreshness determination operation310 may involve adjusting for any timing offset between a timing reference of the device that sent the control message (whose freshness is being tested) and a timing reference of the device that receives that control message. This adjustment may be to add or subtract time to thetime window312 depending on the timing offset between the two devices.
If a control message is determined to be fresh (i.e., if the pseudotime timestamp information of the control message falls within the time window), theinitiator12 orresponder14 will accept the control message and will process it as indicated at320. If the pseudotime timestamp information for the control message does not fall within the time window corresponding to the time window size information received by theinitiator12 orresponder14 duringPhase1, the control message is determined to not be fresh, and theinitiator12 orresponder14 may discard the control message as indicated at330, and subsequently restartPhase2.
FIG. 7 graphically shows thefreshness determination operation310 ofFIG. 6. When a control message is received at the receiving device (responder or initiator), the pseudotime timestamp information of the control message is compared against a time window that begins with the time of reception of the control message and extends for a duration corresponding to the time window size received from the other device inPhase1. This time window is shown at312 inFIG. 7. When it is determined that the pseudotime timestamp of the control message falls within thetime window312, the control message is deemed to be fresh. If the pseudotime timestamp information of the control message falls outside of thetime window312, the control message is deemed not to be fresh and the control message is rejected.
Reference is now made toFIG. 8, which is an example of a block diagram for one application of the techniques described herein. In this application, a group keying protocol exchange comprising control message exchanges occurs between akey server device400 and a plurality of group member devices (410,420,430,440) using the control message freshness determination techniques described above. For example, the control message exchanges may be similar to those described forPhase1 andPhase2 of the IKE. The control messages may exchange pseudotime information and time window size information inPhase1 betweenkey server400 and any group member (for example group member410), and the control messages may exchange pseudotime information inPhase2 betweenkey server400 and any group member. Thekey server400 and group members (for example, group member410) may use the techniques described above to determine the freshness of the control messages and to adjust for a timing offset between a clock of thekey server400 and a clock of the respective group member. In one example, a Group Domain of Interpretation (GDOI) protocol may be used for the group key management system inFIG. 8.
Reference is now made toFIG. 9 that shows an example of a block diagram depicting another application of the techniques described herein. In this example, a plurality of key server devices (400,500,600) engage in a cooperative (co-op) keying protocol exchange involving control message exchanges between each other using the control message freshness determination techniques. If there is a delayed replay attack of the announcement message between the co-op enabled key servers, then the remaining SA lifetime is jittered on each of these key servers. This is a value that will be propagated to each group member that registers to the key server. Therefore, the data path between the group members will be impacted. For example, the control message exchanges may be similar to those described forPhase1 andPhase2 of the IKE. The control messages may exchange pseudotime information and time window size information inPhase1 between a plurality of key servers (for example betweenkey server400 and key server500), and the control messages may exchange pseudotime information inPhase2 between the plurality of key servers. The key servers may then use the techniques described above to determine the freshness of the control messages and to adjust for a timing offset between clocks of respective key servers participating in the exchange of control messages.
In sum, an apparatus is provided comprising a network interface unit configured to enable communications over a network, a clock circuit configured to generate one or more timing signals, and a processor configured to be coupled to the network interface unit. The processor is configured to generate timestamp information and time window size information to be included in a control message to be sent to an other apparatus during a first exchange of a first set of control messages, the timestamp information indicating a time of departure of the control message with respect to a timing signal of the clock circuit and the time window size information defining a time window to be used by the other apparatus to test for freshness of a control message received at the other apparatus during a second exchange of a second set of control messages. The processor is further configured to recover timestamp information and time window size information from the other apparatus during the first exchange, the time window size information defining a time window to be used to test for freshness of a control message received from the other apparatus during the second exchange of the second set of control messages and the timestamp information recovered from the control message representing a time of departure of the control message from the other apparatus.
Similarly, a tangible computer-readable memory medium is provided that stores or is encoded with instructions that, when executed by a processor, cause the processor to: generate timestamp information and time window size information to be included in a control message to be sent from a first device that is to enter into a secure communication with a second device during a first exchange of control messages between the first device and the second device, the time window size information defining a time window to be used by the second device to test for freshness of a control message received at the second device from the first device during a second exchange of a second set of control messages and the timestamp information indicating a time of departure of the control message with respect to a timing reference of the first device. Instructions are encoded or stored on the computer-readable memory medium that, when executed by a processor, cause the processor to recover timestamp information and time window size information in a control message received from the second device during the first exchange, the time window size information received from the second device defining a time window to be used by the first device to test for freshness of a control message received at the first device from the second device during the second exchange of the second set of control messages, and the timestamp information contained in the control message received at the first device indicating a time of departure of the control message with respect to a timing reference of the second device.
The foregoing techniques are useful to prevent replay and delay packet attacks during a control plane exchange between two devices over a network, such as during the exchange of control messages that are sent between devices during a key exchange procedure. These techniques provide for the ability to determine freshness of packets carrying time sensitive information which is particularly useful to protect from delayed and replayed attacks leading to traffic loss.
These techniques provide for detecting freshness of control packets carrying time sensitive information like SA payload which carry the SA and the keys with a specific lifetime. When applied to key server group members, these techniques prevent group members from accepting stale pseudotime information which otherwise would defeat the purpose of time-based replay protection in large multi-sender networks.
Time-based anti-replay techniques mitigate replay attacks for data packets sent to a group assuming that every group member is synchronized with the correct pseudotime from the key server. When a registration/re-key packet that carries the pseudotime is captured and replayed, there is no way for the group member to detect this delay. The SAs will incorrectly carry the skewed pseudotime and the all the data packets thereafter sent to the group would be dropped by the members as the pseudotime on the packets will not fall within the time-based window. This would be corrected only at the next re-key if the re-key packet is not delayed, which depending on the re-key period could be a relatively long period of time. This delay can cause a huge loss of data packets and also all the members of the group would be unnecessarily spending system resources leading to a massive denial-of-service (DoS) attack and eventually a network outage. The techniques described herein provide delayed replay protection for control packets that carry time sensitive pseudotime information.
The above description is intended by way of example only. Various modifications and structural changes may be made therein without departing from the scope of the concepts described herein and within the scope and range of equivalents of the claims.