Hot answers tagged replay-attack
5
You got tripped up by the fact that there are two different group operations in play here, and they don't play nice with each other. This is implicit in the notation, and it's easy to get tripped up, because the notation expresses both operations in the same way -- but they are not the same. This is arguably a pitfall in the notation: the assumption is ...
5
The archetypal safeguard against that threat is including an originator ID and a sequential number in each message (within the authenticated payload), and making the receiver ignore any message from him/herself, or with a number no higher than the highest in any message from that source so far. The sequence number can be replaced by time.
5
There is not much special about near field communication here - it is just like any insecure transport medium, which can be evesdropped on (with external antennas up to several meters in distance).
Because of the low distance limit, there is no way for a man-in-the-middle attack if you (the human operator) are sure that your device is communicating with the ...
3
The standard solution would be to have the sender maintain a counter, and sending the value of that counter in each request (which is tied into the integrity check of the request). The receiver would remember the largest counter value that he has received a valid request for, and a bitmap showing which of the N requests prior to that he has actually seen. ...
2
A replay attack works by blindly re-using an earlier message or ciphertext, or fragment thereof, typically one that was encrypted or signed. A simple example would be a bunker which receive the encrypted message "I'm General X, open the door". Now if this encrypted message was captured a week earlier and replayed by some opponent, well you get the idea.
...
1
You could use some combination of:
an expiration timeout (i.e. if the message does not arrive until the timeout, we don't accept it)
storing previous values of a nonce.
You only have to store those nonce values whose timeout didn't yet expire.
If the messages arrive all in order, you can instead use a simple counter (which always goes up) and reject ...
1
A replay attack simply means that an attacker who intercepts a valid message can re-send that message as many times as they want. If there's nothing in the message that could not be legitimately repeated, then the recipient will have no reason not to accept it as a valid message.
In general, all encryption modes are potentially vulnerable to replay ...
Only top voted, non community-wiki answers of a minimum length are eligible