• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » What is a Replay Attack?

By Abhishek Ghosh April 14, 2024 10:26 am Updated on April 14, 2024

What is a Replay Attack?

Advertisement

A replay attack is a crypto-analytical form of attack on the authenticity of data in a communication protocol. In this case, the attacker sends previously recorded data to simulate a foreign identity, for example. Suppose Alice wants to prove her identity to Bob. They both know Alice’s secret password. Alice calculates the hash value of her password using a cryptographic hash function and sends it to Bob. Bob compares the hash value with his calculation and accepts. Meanwhile, Mallory eavesdrops on the communication and records the hash value sent by Alice. After the communication ends, Mallory connects with Bob, pretends to be Alice, and sends the recorded hash value (replay). Mallory is able to successfully impersonate Alice, even though she doesn’t know the password. The Needham-Schroeder protocol in its original form is vulnerable to a replay attack.

What is a Replay Attack

 

Countermeasures

 

One way to prevent replay attacks is to use a nonce: Alice adds a random number (nonce) to the hash value calculation in addition to the password, which is only used once. Alice tells Bob the nonce in plain text so that Bob can repeat the hash value calculation. Bob remembers the nonce he received and discards messages that contain a nonce that has already been used. However, this method is impractical, as Alice and Bob have to permanently store the nonces used. A timestamp can also be used instead of a nonce. The advantage of a timestamp is that you can see if it is outdated and therefore invalid without having to remember old values. However, there must always be a validity period to tolerate transmission delays and time offset. During the validity period, the procedure is susceptible to replay attacks.

A modified variant is the challenge-response authentication: here Bob sends the nonce to Alice in plain text (challenge). Alice transforms the password together with the nonce into a hash value and sends the result back to Bob (Response). Bob, in turn, performs the same transformation and compares his result to Alice’s result: if both match, Bob accepts Alice’s identity. Now, when Mallory tries to reuse an intercepted hash value, Bob sends a different nonce; the spied hash value is now invalid (because it was generated with a different nonce). Bob rejects because his result and the delivered (outdated) hash value don’t match.

Advertisement

---

To protect continuous data transmission across multiple data packets, a sequence number can be used, the authenticity of which is in turn ensured by a Message Authentication Code. In the case of IPsec, for example, this is provided for both the Authentication Header and the Encapsulating Security Payload. Depending on the operating mode, data transmission encrypted with a block cipher can also provide protection against replay attacks.

One-time passwords, i.e. passwords that are only valid for a short time and then change, are another preventive measure.

Tagged With dugozm
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to What is a Replay Attack?

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • How Email Encryption Works

    Email encryption is used to send sensitive information by email from sender to recipient. Encryption between the end devices of sender and recipient is possible as end-to-end encryption. Email encryption often goes hand in hand with the digital signature and is actually combined with it in many standards such as X.509 or PGP. The goal […]

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

vpsdime

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cloud-Powered Play: How Streaming Tech is Reshaping Online GamesSeptember 3, 2025
  • How to Use Transcribed Texts for MarketingAugust 14, 2025
  • nRF7002 DK vs ESP32 – A Technical Comparison for Wireless IoT DesignJune 18, 2025
  • Principles of Non-Invasive Blood Glucose Measurement By Near Infrared (NIR)June 11, 2025
  • Continuous Non-Invasive Blood Glucose Measurements: Present Situation (May 2025)May 23, 2025
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2026 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy