encyclopegia.org

Replay attack

A replay attack (also known as a repeat attack or playback attack) is a form of network attack in which valid data transmission is maliciously or fraudulently repeated or delayed.[src] This is carried out either by the originator or by an adversary who intercepts the data and re-transmits it, possibly as part of a spoofing attack by IP packet substitution.[src] This is one of the lower-tier versions of a man-in-the-middle attack.[src] Replay attacks are usually passive in nature.[src] Another way of describing such an attack is: "an attack on a security protocol using a replay of messages from a different context into the intended (or original and expected) context, thereby fooling the honest participant(s) into thinking they have successfully completed the protocol run."[src]

A replay attack (also known as a repeat attack or playback attack) is a form of network attack in which valid data transmission is maliciously or fraudulently repeated or delayed.[src] This is carried out either by the originator or by an adversary who intercepts the data and re-transmits it, possibly as part of a spoofing attack by IP packet substitution.[src] This is one of the lower-tier versions of a man-in-the-middle attack.[src] Replay attacks are usually passive in nature.[src] Another way of describing such an attack is: "an attack on a security protocol using a replay of messages from a different context into the intended (or original and expected) context, thereby fooling the honest participant(s) into thinking they have successfully completed the protocol run." ==Example== Suppose Alice wants to prove her identity to Bob.[src] Bob requests her password as proof of identity, which Alice dutifully provides (possibly after some transformation like hashing, or even salting, the password); meanwhile, Eve is eavesdropping on the conversation and keeps the password (or the hash).[src] After the interchange is over, Eve (acting as Alice) connects to Bob; when asked for proof of identity, Eve sends Alice's password (or hash) read from the last session which Bob accepts, thus granting Eve access.[src] ==Prevention and countermeasures== Replay attacks can be prevented by tagging each encrypted component with a session ID and a component number.[src] This combination of solutions does not use anything that is interdependent on one another.[src] Due to the fact that there is no interdependency, there are fewer vulnerabilities.[src] This works because a unique, random session ID is created for each run of the program; thus, a previous run becomes more difficult to replicate.[src] In this case, an attacker would be unable to perform the replay because on a new run the session ID would have changed.[src] Session IDs, also known as session tokens, are one mechanism that can be used to help avoid replay attacks.[src] The way of generating a session ID works as follows.[src] Bob sends a one-time token to Alice, which Alice uses to transform the password and send the result to Bob.[src] For example, she would use the token to compute a hash function of the session token and append it to the password to be used.[src] On his side Bob performs the same computation with the session token.[src] If and only if both Alice’s and Bob’s values match, the login is successful.[src] Now suppose an attacker Eve has captured this value and tries to use it on another session.[src] Bob would send a different session token, and when Eve replies with her captured value it will be different from Bob's computation so he will know it is not Alice.[src] Session tokens should be chosen by a random process (usually, pseudorandom processes are used).[src] Otherwise, Eve may be able to pose as Bob, presenting some predicted future token, and convince Alice to use that token in her transformation.[src] Eve can then replay her reply at a later time (when the previously predicted token is actually presented by Bob), and Bob will accept the authentication.[src] One-time passwords are similar to session tokens in that the password expires after it has been used or after a very short amount of time.[src] They can be used to authenticate individual transactions in addition to sessions.[src] These can also be used during the authentication process to help establish trust between the two parties that are communicating with each other.[src] Bob can also send nonces but should then include a message authentication code (MAC), which Alice should check.[src] Timestamping is another way of preventing a replay attack.[src] Synchronization should be achieved using a secure protocol.[src] For example, Bob periodically broadcasts the time on his clock together with a MAC.[src] When Alice wants to send Bob a message, she includes her best estimate of the time on his clock in her message, which is also authenticated.[src] Bob only accepts messages for which the timestamp is within a reasonable tolerance.[src] Timestamps are also implemented during mutual authentication, when both Bob and Alice authenticate each other with unique session IDs, in order to prevent the replay attacks.[src] The advantages of this scheme are that Bob does not need to generate (pseudo-) random numbers and that Alice doesn't need to ask Bob for a random number.[src] In networks that are unidirectional or near unidirectional, it can be an advantage.[src] The trade-off being that replay attacks, if they are performed quickly enough, i.e.[src] within that 'reasonable' limit, could succeed.[src] ===Kerberos protocol prevention=== The Kerberos authentication protocol includes some countermeasures.[src] In the classic case of a replay attack, a message is captured by an adversary and then replayed at a later date in order to produce an effect.[src] For example, if a banking scheme were to be vulnerable to this attack, a message which results in the transfer of funds could be replayed over and over to transfer more funds than originally intended.[src] However, the Kerberos protocol, as implemented in Microsoft Windows Active Directory, includes the use of a scheme involving time stamps to severely limit the effectiveness of replay attacks.[src] Messages which are past the "time to live (TTL)" are considered old and are discarded.[src] There have been improvements proposed, including the use of a triple password scheme.[src] These three passwords are used with the authentication server, ticket-granting server, and TGS.[src] These servers use the passwords to encrypt messages with secret keys between the different servers.[src] The encryption that is provided by these three keys help aid in preventing replay attacks.[src] ===Secure routing in ad hoc networks=== Wireless ad hoc networks are also susceptible to replay attacks.[src] In this case, the authentication system can be improved and made stronger by extending the AODV protocol.[src] This method of improving the security of Ad Hoc networks increases the security of the network with a small amount of overhead.[src] If there were to be extensive overhead then the network would run the risk of becoming slower and its performance would decrease.[src] By keeping a relatively low overhead, the network can maintain better performance while still improving the security.[src] ==Real-world examples of replay attack susceptibility== There are several real-world examples of how replay attacks have been used and how the issues were detected and fixed in order to prevent further attacks.[src] ===Remote keyless-entry system for vehicles=== Many vehicles on the road use a remote keyless system, or key fob, for the convenience of the user.[src] Modern systems are hardened against simple replay attacks but are vulnerable to buffered replay attacks.[src] This attack is performed by placing a device that can receive and transmit radio waves within range of the target vehicle.[src] The transmitter will attempt to jam any RF vehicle unlock signal while receiving it and placing it in a buffer for later use.[src] Upon further attempts to unlock the vehicle, the transmitter will jam the new signal, buffer it, and playback an old one, creating a rolling buffer that is one step ahead of the vehicle.[src] At a later time, the attacker may use this buffered code to unlock the vehicle.[src] ===Text-dependent speaker verification=== Various devices use speaker recognition to verify the identity of a speaker.[src] In text-dependent systems, an attacker can record the target individual’s speech that was correctly verified by the system, then play the recording again to be verified by the system.[src] A counter-measure was devised using spectral bitmaps from the stored speech of verified users.[src] Replayed speech has a different pattern in this scenario and will then be rejected by the system.[src] ===Replay attacks on IoT devices=== In the realm of smart home environments, Internet of things (IoT) devices are increasingly vulnerable to replay attacks, where an adversary intercepts and replays legitimate communication signals between an IoT device and its companion app.[src] These attacks can compromise a wide array of devices, including smart plugs, security cameras, and even household appliances.[src] A recent study demonstrated that a substantial portion of consumer IoT devices are prone to replay attacks.[src] Researchers found that 75% of tested devices supporting local connectivity were vulnerable to such attacks.[src] These vulnerabilities allow attackers to mimic legitimate commands, potentially enabling unauthorized actions such as turning on a smart kettle, unlocking doors, or manipulating security systems.[src] Such breaches pose significant safety, security, and privacy risks, as malicious actors can gain control over critical home systems.[src] ===In popular culture=== In the folk tale Ali Baba and the Forty Thieves, the thieves' captain used the passphrase "Open, Sesame" to open the door to their loot depot.[src] This was overheard by Ali Baba, who later reused the passphrase to get access and collect as much of the loot as he could carry.[src] ==See also== Denial-of-service attack Digest access authentication Man-in-the-middle attack Pre-play attack Relay attack Session replay Telephone tapping ==References==[src]

76 sentences · 76 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Replay attack." encyclopegia.org, 2026, https://encyclopegia.org/wiki/replay-attack. Accessed 28 November 2026.

Chicago

"Replay attack." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/replay-attack.

APA

encyclopegia.org. (2026). Replay attack. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/replay-attack

Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1363967204 · 0.5 · snapshot enwiki-001363967204

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.