You detect a man-in-the-middle attack by comparing what you see now with what you expect: certificate warnings or a changed issuer, a site that drops from HTTPS to HTTP, duplicate Wi-Fi networks, unexpected proxy settings, ARP or DNS answers that point to the wrong device, and sign-ins from impossible locations. No single sign proves an attack, so check several together, stop entering passwords, and switch to a trusted network or VPN.
Key takeaways
- Certificate warnings, HTTPS downgrades and unexpected proxy settings are the strongest early signs of interception.
- ARP spoofing, DNS spoofing and evil-twin Wi-Fi all put an attacker in the path, so check the network as well as the browser.
- If you suspect interception, stop logging in, disconnect, change passwords from a trusted device and check active sessions.
A man-in-the-middle attack rarely announces itself. Your pages still load, your apps still work, and nothing looks broken — yet someone else may be reading or changing the traffic between you and the service you trust.
What is a man-in-the-middle attack?
A man-in-the-middle attack, also called an on-path or adversary-in-the-middle attack, places an attacker between two parties who believe they are talking directly to each other.
Once in that position, the attacker can read traffic, steal passwords and session cookies, change what you see, or redirect you to a fake site.
MITRE ATT&CK describes this as technique T1557: Adversary-in-the-Middle, where adversaries abuse ARP, DNS and similar protocols to force traffic through a system they control. Group-IB detection guidance lists the same signals: certificate anomalies and authentication events that do not fit the baseline.
The attack works because so much trust is invisible. Your device trusts the Wi-Fi network, the DNS answer, the certificate and the gateway without asking you. An attacker who controls any one of those can insert themselves into the path.
How does a man-in-the-middle attack work?
The attacker first gets into the path, then stays there quietly while they collect or change traffic. Getting into the path is the hard part, and it usually happens on a local network, on public Wi-Fi, or through a tricked DNS or proxy setting.
Common ways in include ARP spoofing on a local network, DNS spoofing that sends you to the wrong server, a rogue Wi-Fi hotspot with a familiar name, and a malicious proxy or VPN profile installed by malware or a phishing link.
After that, the attacker may simply watch. Session cookies are a prized target because stealing one can let an attacker act as you without knowing your password at all.
What are the signs of a man-in-the-middle attack?
The clearest signs are trust failures: certificate warnings, HTTPS downgrades, unexpected proxy settings and logins that behave differently on one network. One sign alone may have an innocent cause, so look for a pattern.
1. Browser certificate warnings
A warning such as "Your connection is not private" on a site you visit regularly is the strongest single sign. It means the certificate does not match what the browser expects, which is exactly what a fake certificate looks like.
Do not click through the warning to continue. Check the certificate details, note the issuer and expiry date, and compare them with what you see on a trusted network.
2. HTTPS drops to HTTP
If a site that normally loads with HTTPS suddenly loads over HTTP, or the padlock disappears, stop. Attackers use SSL stripping to downgrade the connection so traffic is readable.
Check the address bar before you log in. If the URL starts with http:// on a site that should be secure, disconnect and try again on a trusted network.
3. Duplicate or strange Wi-Fi networks
Two networks with almost the same name, or a familiar network that suddenly asks you to sign in again, can point to an evil-twin hotspot. The attacker copies the real network name and waits for devices to join theirs instead.
Ask staff for the exact network name and password. Forget the network on your device and rejoin it manually rather than letting your phone connect automatically.
4. Strange DNS behavior
Redirects to the wrong site, slow lookups, and pages that load with the wrong content can point to DNS spoofing. DNS answers that send a trusted domain to an unfamiliar IP address are a classic interception clue.
On a home network, check your router DNS settings for values you did not set. You can also run a DNS lookup from a trusted connection and compare the result.
5. Unexpected proxy or VPN settings
Proxy settings you do not recognize, or prompts for proxy authentication that appear out of nowhere, mean your traffic may be routed through someone else's server. The same applies to a VPN profile you did not install.
Check your device proxy and VPN settings after any malware scare or suspicious download. Remove anything you cannot explain and ask IT before you re-add it.
6. Unexpected logouts and sign-in alerts
Being logged out repeatedly, or getting alerts about sign-ins from unfamiliar places, can mean a session was stolen and reused elsewhere. Look for impossible travel, such as two sign-ins from distant cities minutes apart.
Check active sessions in your email and banking apps. Sign out of sessions you do not recognize and change the password from a trusted device.
7. Slow speeds and frequent disconnections
Traffic that passes through an attacker often takes a longer route, so pages load slowly and connections drop. This sign is weak on its own, but it matters when it starts suddenly on one network.
If only one device is affected, focus on that device. If everyone on the same network sees it, focus on the shared router, gateway or access point.
8. ARP and local network anomalies
On a local network, ARP spoofing shows up as duplicate ARP replies, two devices claiming the same IP address, or a gateway MAC address that keeps changing. These are signs for IT teams rather than casual users.
On Windows, arp -a shows the ARP table; on macOS and Linux, the same command works in a terminal. Compare the gateway entry with the router's printed MAC address if you can.
What are the main types of man-in-the-middle attacks?
The main types are ARP spoofing, DNS spoofing, HTTPS spoofing and SSL stripping, IP spoofing, evil-twin Wi-Fi and email hijacking. They differ in where the attacker sits, but all of them put the attacker in the path.
| Type | Where the attacker sits | Main clue | Best defense |
|---|---|---|---|
| ARP spoofing | Local network | Duplicate ARP replies, gateway MAC changes | Dynamic ARP inspection, port security |
| DNS spoofing | DNS resolver or local network | Trusted domain resolves to a wrong IP | DNSSEC, trusted resolver, monitoring |
| HTTPS spoofing | Fake website | Look-alike URL, wrong certificate | Check URL and certificate, use bookmarks |
| SSL stripping | Between you and the site | HTTPS drops to HTTP, padlock missing | HSTS, HTTPS-only mode, VPN |
| Evil twin Wi-Fi | Rogue hotspot | Duplicate network name, new login page | Verify network name, use mobile data |
| Email hijacking | Compromised mailbox | Unexpected password resets, sent mail you did not send | Phishing-resistant MFA, DMARC |
HTTPS spoofing deserves a special note. The fake site may look identical to the real one, but its domain will be slightly wrong and its certificate will belong to the attacker, not the real company.
SSL stripping is subtler still. The attacker keeps an HTTPS connection to the real site while serving you plain HTTP, so everything you type travels in the clear. That is why a missing padlock is a stop sign, not a minor glitch.
How do you detect a man-in-the-middle attack on public Wi-Fi?
On public Wi-Fi, check the network name with staff, watch for certificate warnings, and avoid logging in to sensitive accounts unless you are on a trusted VPN. Public Wi-Fi is the most common place for a casual attacker to try this.
Start by forgetting networks you joined once and no longer need. Devices that auto-join a familiar name will happily join a rogue copy of it later.
Next, test a site you know well. If it shows a certificate warning, loads over HTTP, or redirects to a login page that asks for unusual detail, disconnect. Use mobile data instead and report the network to the venue.
For more on safe home and public Wi-Fi habits, see our guide to how to secure your Wi-Fi. The same habits — strong router passwords, updated firmware and a trusted VPN — help on the road too.
How do you detect a man-in-the-middle attack at home or at work?
At home or at work, compare what you see with a known-good baseline: the same site, the same certificate, the same gateway address and the same DNS answers you saw yesterday. A change after a network change is the most telling pattern.
Check whether the problem follows a device, a user, a network or a VPN state. If several people see the same certificate warning at the same time, the problem is likely in shared infrastructure. If only one device is affected, check its trust store, proxy settings and installed profiles.
For IT teams, the useful evidence is in logs: DNS resolver logs, proxy logs, certificate transparency data, IDS alerts and authentication logs. Look for a trusted domain resolving to a new IP, a new root certificate on managed devices, or a session token used from a hosting provider address.
You can check a site's certificate and headers from a trusted connection with our free SSL checker. If the certificate you see on the suspect network differs from the one the checker sees, that is strong evidence of interception.
What tools help detect a man-in-the-middle attack?
Network monitoring, certificate checks, DNS logging and sign-in alerts are the tools that reveal interception. No single tool covers every type, so combine network checks with identity checks.
- Certificate checks: browser certificate details, SSL checkers and certificate transparency logs show whether the certificate changed.
- Network monitoring: intrusion detection, network traffic analysis and ARP monitoring flag duplicate replies, unexpected hops and new devices.
- DNS monitoring: resolver logs and DNSSEC validation catch answers that point trusted domains to unfamiliar addresses.
- Identity monitoring: impossible-travel alerts, new device fingerprints mid-session and token use from data-center ranges point to stolen sessions.
- Endpoint checks: proxy settings, installed certificates and VPN profiles reveal local tampering on one device.
For a small business, the practical starting point is simpler: enable sign-in alerts on email and banking, keep an inventory of approved devices, and make sure your router and switches are managed and updated.
How do you prevent a man-in-the-middle attack?
Prevention is about removing the attacker's footholds: encrypt traffic, validate certificates, lock down local networks and use authentication that cannot be replayed. Detection tells you it happened; these controls make it much harder to happen at all.
- Use HTTPS everywhere and turn on HTTPS-only mode in your browser. Sites should also send HSTS headers so browsers refuse plain HTTP.
- Use a trusted VPN on public Wi-Fi, and never install a VPN profile from a link in a message.
- Use phishing-resistant MFA such as passkeys or security keys. One-time codes can be relayed by a proxy; passkeys are bound to the real domain.
- Keep software updated on routers, phones and laptops, and change default router passwords.
- Segment networks at work, use dynamic ARP inspection and port security on managed switches, and monitor DNS answers.
- Verify out of band before you act on any payment or password request that arrives over a suspect connection.
Certificate pinning, where an app only trusts a specific certificate, helps for high-value apps. Mutual authentication, where both sides prove who they are, is the strongest control for server-to-server traffic.
What should you do if you think you are under attack?
Stop entering sensitive information, disconnect from the suspect network, and change passwords from a trusted device. Speed matters, because a stolen session can be reused within minutes.
- Disconnect from the suspect Wi-Fi or network and switch to mobile data or a trusted network.
- Do not log in to banking, email or work accounts until you are on a trusted connection.
- Change passwords for any account you used on the suspect network, starting with email, then banking and work accounts.
- Sign out of all sessions in those accounts and check for new devices, forwarding rules and recovery settings.
- Check your device for unknown proxy settings, VPN profiles, certificates and recently installed apps, and remove anything suspicious.
- Tell your IT team if it happened at work, and report financial fraud to your bank and, in the US, to the FBI's Internet Crime Complaint Center.
If you entered a password on a suspect network, assume it is compromised. Check whether it appears in known breaches with our pwned password checker, then change it everywhere you reused it.
The bottom line
Man-in-the-middle attacks succeed by abusing trust you never see: the network, the DNS answer and the certificate. The signs are there if you look for them — warnings, downgrades, duplicate networks and impossible sign-ins — especially when several appear together.
Make the checks a habit, use a trusted VPN on public Wi-Fi, and move to passkeys where you can. You can start by checking the site you use most with the free SSL checker and confirming its certificate looks right.
Frequently asked questions
What is a man-in-the-middle attack in simple terms?
It is an attack where someone secretly sits between you and the website, app or service you are using. Your traffic passes through them, so they can read it, change it or steal logins and session cookies, while both sides think they are talking directly to each other.
Can a man-in-the-middle attack happen on HTTPS?
Yes, but it is harder. Attackers try to downgrade the connection to HTTP, present a fake certificate, or use a proxy the victim has been tricked into trusting. A valid HTTPS padlock on the real domain still protects the data in transit, which is why certificate warnings matter so much.
How do I know if my Wi-Fi has been hacked?
Look for duplicate network names, a familiar network that suddenly asks you to log in again, certificate warnings on every site, and a captive portal that asks for more detail than usual. If in doubt, forget the network, use mobile data, and ask the venue for the exact network name.
What is ARP spoofing and how do I detect it?
ARP spoofing is when an attacker sends fake ARP messages that link their device address to the gateway IP, so local traffic flows through them. Signs include duplicate ARP replies, two devices claiming the same IP, sudden slowness and disconnections. On a managed network, dynamic ARP inspection and port security help stop it.
Does a VPN protect against man-in-the-middle attacks?
A VPN encrypts traffic between your device and the VPN server, which makes interception on local Wi-Fi much harder. It does not protect you if the VPN itself is fake, if you ignore certificate warnings, or if malware is already on your device, so use a VPN you trust and keep the other checks in this guide.
What should I do first if I suspect a man-in-the-middle attack?
Stop entering passwords or payment details, disconnect from the suspect network, and switch to mobile data or a trusted network. Then change important passwords from a trusted device, sign out of active sessions, turn on phishing-resistant MFA, and tell your IT team if it happened at work.
Can antivirus detect a man-in-the-middle attack?
Antivirus can catch some of the tools and malware used to set one up, but it cannot reliably spot a network-level interception on its own. Certificate checks, network monitoring, DNS logging and sign-in alerts are the controls that actually reveal it.
Is a certificate warning always an attack?
No. Expired certificates, a wrong system clock, a corporate TLS inspection device and a misconfigured site can all trigger warnings. Treat every warning as a stop sign anyway: do not click through it, check the certificate details, and confirm with the site owner or your IT team before you continue.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against MITRE ATT&CK T1557, Group-IB detection guidance and vendor documentation on certificate, ARP and DNS signs.
How we write and fact-check →