Home > Glossary > CompTIA PenTest+ > Man-in-the-Middle (MitM)

📖 What is Man-in-the-Middle (MitM)?

A Man-in-the-Middle (MitM) attack occurs when a malicious actor secretly relays and possibly alters the communications between two parties who believe they are directly communicating with each other. This allows the attacker to intercept sensitive data, steal session cookies, or inject payloads.

🥋 Sensei Says:

"While ARP poisoning is a way to achieve MitM on a local network, MitM is the overall objective. Other methods include DNS spoofing and rogue access points."

📚 Certification: CompTIA PenTest+ (PT0-002)

🔑 What are the Key Concepts of Man-in-the-Middle (MitM)?

  • ARP Poisoning involves sending fake ARP messages to link an attacker's MAC address with a legitimate IP, intercepting traffic on local networks.
  • DNS Spoofing redirects users to malicious websites by corrupting DNS cache or responses, making the victim believe they are on a trusted site.
  • SSL/TLS Stripping forces a browser to communicate over unencrypted HTTP instead of HTTPS, allowing the attacker to capture plaintext credentials and cookies.
  • Session Hijacking uses intercepted session tokens to impersonate a user, bypassing authentication by taking over an already established, valid communication session.
  • Rogue Access Points act as fake wireless gateways, tricking devices into connecting so the attacker can monitor and modify all wireless traffic.

🎯 How does Man-in-the-Middle (MitM) appear on the PT0-002 Exam?

You may be asked to identify the correct tool, such as Bettercap or Ettercap, when a scenario describes intercepting traffic on a local network using ARP spoofing to capture credentials.

A scenario might describe a user being redirected to a fraudulent login page despite entering the correct URL, requiring you to identify DNS spoofing as the method used to divert traffic.

Expect questions about analyzing packet captures where a secure HTTPS connection is downgraded to HTTP, which is a primary indicator of an SSL stripping attack used to steal data.

❓ Frequently Asked Questions

How does HSTS mitigate the risk of SSL stripping?

HTTP Strict Transport Security (HSTS) tells the browser to only communicate with a website using HTTPS. This prevents the browser from ever attempting an unencrypted HTTP connection, effectively blocking SSL stripping.


What is the difference between ARP poisoning and DNS spoofing?

ARP poisoning targets the Data Link layer (Layer 2) to redirect traffic within a local network, while DNS spoofing targets the Application layer to redirect traffic globally.


Can MitM attacks occur over a wireless connection without a rogue AP?

Yes, attackers can use techniques like 'Evil Twin' attacks or exploit vulnerabilities in WPA2/WPA3 to intercept traffic between a legitimate client and a real access point.

Related Terms from CompTIA PenTest+

📝 Related Study Guides

Comparison 8 min read

CISSP vs CISM: Which Certification Should You Pursue in 2026?

Choose CISSP if you want broad technical security expertise across eight domains, including cryptography, network security, and software development. Choose CISM if you're focused on information security management, governance, and risk management from a leadership perspective. CISSP is ideal for hands-on security architects, while CISM is designed for security managers and directors.

Career Guide 9 min read

The IT Certification Roadmap: Where to Start in 2026

Start your IT certification journey in 2026 with CompTIA A+ for general IT foundations, then branch into networking (Network+), cybersecurity (Security+), or cloud computing (AWS Cloud Practitioner or Azure Fundamentals) based on your career goals. Each path leads to advanced certifications like CISSP, AWS Solutions Architect, or CISM within 2-3 years of focused progression.

Comparison 10 min read

CISSP vs CISM: Which Certification Should You Pursue in 2026?

The CISSP is a broad, technical-to-managerial certification focusing on security operations and architecture across eight domains. In contrast, CISM is a specialized management certification centered on governance, risk management, and program development. Choose CISSP for comprehensive security expertise and CISM if you are pivoting specifically into security leadership and governance roles.

🧠

Test Your Knowledge

Think you understand Man-in-the-Middle (MitM)? Put it to the test with our practice exam.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium