Pairing methods in zero-trust networks
A method for communications in a network can include performing a pairing between a first device and a second device in the network. The method can include deriving a port knocking sequence from identification information of the pairing. The method can include providing port knocking according to the port knocking sequence. The method can include authorizing a connection between the first device and the second device responsive to detecting the port knocking sequence. Other devices and methods are described.
1 . A method performed for communications in a network, the method comprising:
performing a pairing between a first device and a second device in the network;
deriving, during the pairing, a dynamic cryptographic identity for at least one of the first device and the second device using a key-negation function based on a Password-Authentication Key Exchange (PAKE) protocol;
deriving a port knocking sequence from the dynamic cryptographic identity identification information of the pairing;
providing port knocking according to the port knocking sequence; and
authorizing a connection between the first device and the second device responsive to detecting the port knocking sequence;
detecting a connection attempt from a third device that does not include the port knocking sequence;
marking the connection attempt as a malicious attempt responsive to the detection; and
refraining from transmitting the signals to the third device;
wherein the port knocking sequence specifies port numbers in an order that the port numbers should be knocked.
2 . The method of claim 1 , further comprising:
deriving the dynamic cryptographic identity subsequent to pairing based on an elliptic curve Diffie-Hellman Ephemeral (ECDHE) protocol.
3 . The method of claim 1 , further comprising:
detecting a connection attempt that does not include the port knocking sequence; and
marking the connection attempt as a malicious attempt responsive to the detecting.
4 . The method of claim 1 , further comprising:
hashing a device identity of the first device or the second device to a pre-authorize connectivity string prior to deriving the port knocking sequence.
5 . The method of claim 4 , further comprising:
hashing an application identity or a device location to the connectivity string prior to deriving the port knocking sequence.
6 . A device comprising:
communication circuitry; and
processing circuitry coupled to the communication circuitry and configured to:
provide a cryptographic identity over the communication circuitry to pair with a second device;
derive, during the pairing, a dynamic cryptographic identity for at least one of the first device and the second device using a key-negation function based on a Password-Authentication Key Exchange (PAKE) protocol;
derive a port knocking sequence from the dynamic cryptographic identity identification information of the pairing;
encode signals for port knocking according to the port knocking sequence in a subsequent communication with the second device; and
transmit the signals using the communication circuitry;
detect a connection attempt from a third device that does not include the port knocking sequence;
mark the connection attempt as a malicious attempt responsive to the detection; and
refrain from transmitting the signals to the third device;
wherein the port knocking sequence specifies port numbers in an order that the port numbers should be knocked.
7 . The device of claim 6 , wherein the processing circuitry is further configured to:
authorize a connection to the second device responsive to detecting the port knocking sequence in a communication from the second device.
8 . The device of claim 6 , wherein the identification information includes a dynamic cryptographic identity of the device.
9 . The device of claim 8 , wherein the processing circuitry is further configured to:
derive the dynamic cryptographic identity during the pairing using a key negation function based on a Password Authentication Key Exchange (PAKE) protocol.
10 . The device of claim 9 , wherein the processing circuitry is further configured to:
derive the cryptographic identity subsequent to pairing based on an elliptic curve Diffie-Hellman Ephemeral (ECDHE) protocol.
11 . The device of claim 6 , wherein the processing circuitry is further configured to:
hash a device identity of the device to a pre-authorize connectivity string prior to deriving the port knocking sequence.
12 . The device of claim 11 , wherein the processing circuitry is further configured to:
hash an application identity or a device location to the connectivity string prior to deriving the port knocking sequence.
13 . A non-transitory machine-readable medium including instructions that, when executed on processing circuitry, cause the processing circuitry to perform operations including:
performing a pairing between a first device and a second device in a network;
deriving, during the pairing, a dynamic cryptographic identity for at least one of the first device and the second device using a key-negation function based on a Password-Authentication Key Exchange (PAKE) protocol;
derive a port knocking sequence from the dynamic cryptographic identity identification information of the pairing;
encoding a signal to provide port knocking according to the port knocking sequence; and
authorizing a connection between the first device and the second device responsive to detecting the port knocking sequence;
detecting a connection attempt from a third device that does not include the port knocking sequence;
marking the connection attempt as a malicious attempt responsive to the detecting; and
refraining from transmitting the signals to the third device;
wherein the port knocking sequence specifies port numbers in an order that the port numbers should be knocked.
14 . The non-transitory machine-readable medium of claim 13 , wherein the identification information includes a dynamic cryptographic identity of at least one of the first device and the second device.
15 . The non-transitory machine-readable medium of claim 14 , wherein the operations further comprise:
prior to pairing, deriving the dynamic cryptographic identity using a key negation function based on a Password Authentication Key Exchange (PAKE) protocol; and
subsequent to pairing, deriving the cryptographic identity subsequent to pairing based on an elliptic curve Diffie-Hellman (ECDH) protocol.
16 . The non-transitory machine-readable medium of claim 13 , wherein the operations further comprise:
hashing at least one of a device identity, an application identity, or a device location to a pre-authorize connectivity string prior to deriving the port knocking sequence.