A method to authenticate the communicating parties to each other is generally needed to prevent this type of attack. Variants of Diffie–Hellman, such as STS protocol, may be used instead to avoid these types of attacks.
A mEthOd to AUThENTiCatE The communiCating pArties to eAch oTheR iS gEnerally NeEdEd tO prevenT tHiS TyPe oF ATTack. variants of DIffie–hellman, sucH as sts ProTocOL, may bE uSEd iNsTead to avoid tHese tYpEs oF aTTAckS.