Early commit late detect attack prevention
In an embodiment, a method includes identifying, by a first device, a level of degradation. The method also includes transmitting, by the first device during a communication phase, a first signal with a first signal quality based on the level of degradation. The method further includes transmitting, by the first device during a second communication phase, a second signal with a second signal quality. The second signal quality may be greater than the first signal quality.
1 . A method, comprising:
transmitting, by a first device to a second device, a proposed degradation level;
receiving, by the first device from the second device an acknowledgment responsive to the proposed degradation level;
setting a level of degradation level to the proposed degradation level after receiving the acknowledgement;
transmitting, by the first device during a first communication phase, a first signal with a first signal quality based on the level of degradation; and
transmitting, by the first device during a second communication phase, a second signal with a second signal quality, wherein the second signal quality is greater than the first signal quality.
2 . The method of claim 1 , wherein identifying the level of degradation comprises identifying the level of degradation based on a capability of the first device.
3 . A method comprising:
receiving, by a first device from a second device, a proposed degradation level;
transmitting, by the first device to the second device, an acknowledgment responsive to the proposed degradation level;
setting, by the first device a level of degradation level to the proposed degradation level;
identifying, by the first device, a reference signal based on the level of degradation;
receiving, by the first device, a signal;
performing, by the first device, a comparison between the reference signal and the received signal to produce a comparison result; and
determining, by the first device, whether the received signal is authentic or not authentic based on the comparison result.
4 . The method of claim 3 , further comprising, in response to determining that the received signal is not authentic, terminating communication between the first device and the second device.
5 . The method of claim 3 , wherein determining that the received signal is not authentic comprises determining that the received signal deviates from the reference signal by more than a predetermined threshold.
6 . The method of claim 3 , wherein:
performing the comparison between the received signal and the reference signal comprises performing a correlation between the received signal and the reference signal to generate a correlation result, wherein the comparison result comprises the correlation result; and
determining whether the received signal is authentic or not authentic comprises:
determining that the received signal is authentic when the correlation result is above a predetermined threshold; and
determining that the received signal is not authentic when the correlation result is below the predetermined threshold.
7 . The method of claim 3 , further comprising, in response to determining that the received signal is authentic, authenticating, by the first device, the second device.
8 . The method of claim 3 , further comprising determining a distance between the first device and the second device based on the received signal.
9 . The method of claim 8 , further comprising, in response to determining that the distance is below a predetermined distance, and that the received signal is authentic, unlocking a vehicle.
10 . The method of claim 3 , wherein the first and second devices are part of an access control system for a room.
11 . The method of claim 1 , wherein the level of degradation corresponds to a predetermined signal-to-noise ratio (SNR) value or a predetermined bit error rate (BER).
12 . The method of claim 3 , wherein the first received signal comprises a round trip time (RTT) packet, the method further comprising:
receiving, by the first device, the RTT packet;
determining a distance between the first and second devices based on the received RTT packet; and
unlocking a vehicle based on the determined distance.
13 . The method of claim 3 , further comprising:
receiving, by the first device, the first received signal;
detecting an attack based on a distortion of the received signal; and
refusing to take an action, by the first device, based on detecting the attack.
14 . The method of claim 3 , wherein the received signal comprises a round trip time (RTT) packet, the method further comprising:
receiving, by the first device, the RTT packet;
detecting an attack based on a bit error rate (BER) of the received RTT packet; and
refusing to take an action, by the first device, based on detecting the attack.
15 . The method of claim 3 , further comprising:
detecting an attack based on a change in phase trajectory during reception of the received signal; and
refusing to take an action, by the first device, based on detecting the attack.
16 . The method of claim 1 , wherein transmitting the first signal with a first signal quality comprises transmitting the first signal using a phase-locked-loop (PLL) of the first device, the PLL having a first bandwidth, and wherein transmitting the second signal with the second signal quality comprises transmitting the second signal with the PLL having a second bandwidth lower than the first bandwidth.
17 . The method of claim 1 , wherein transmitting the first signal comprises transmitting the first signal using Bluetooth.
18 . The method of claim 1 , wherein transmitting the first signal comprises transmitting the first signal using Bluetooth-Low-Energy (BLE).
19 . The method of claim 1 , wherein the level of degradation comprises a value at or above a predetermined first threshold value and at or below a predetermined second threshold value.
20 . The method of claim 1 , wherein the first device is a key fob or a smartphone.
21 . The method of claim 1 , wherein transmitting the second signal comprises transmitting the second signal after transmitting the first signal.