A man-in-the-middle attack is a category of cyberattack where a malevolent actor inserts him/herself…