Adversary-in-the-middle, or AiTM, is a phishing attack where a fake page passes the victim's login to the real site in real time and steals the resulting session. The victim sees what looks like the normal sign-in, including any multi-factor prompt, while the attacker's server relays everything and captures the session cookie or token that results.
It matters because it defeats many forms of multi-factor authentication. The user does complete the check, but the proof is used by the attacker, and once the session is stolen the attacker may not need the password or the code again until it expires.
It is not unstoppable. Methods bound to the real site's domain, such as passkeys and security keys, do not work on a fake page, and defenses such as short session lifetimes, checks on the device and the location of a sign-in and alerts on unusual access can limit the damage. No single measure removes every risk, and attackers keep changing their tools.
To reduce exposure, move important accounts to phishing-resistant methods, shorten the life of sessions where practical, monitor for unusual sign-ins and train users to check the address.