Wireless Security · Topic 1 of 3

Wireless Authentication and Encryption

Compare open, WEP, WPA, WPA2 and WPA3 wireless security, PSK versus EAP, management frame protection and the RouterOS security profile settings.

  • 5 min
In a nutshell
  • Authentication decides who may join, and encryption protects the data.
  • WEP is broken, WPA uses TKIP, and WPA2 uses AES with CCMP.
  • WPA3 personal uses SAE, which resists offline guessing.

What it is

Wireless authentication decides who may join a network, and encryption protects the data once they have joined.

Radio waves travel through walls, so anyone nearby can capture the frames. Without encryption, the data is readable by everyone in range.

Wi-Fi security has changed over the years. Older methods are broken, and a modern network should use WPA2 or WPA3.

Clientwants to joinauthenticatesAccess pointchecks key or EAPderives keysEncrypted linkdata protected

How it works

A security method defines how a client proves its identity and how keys are made for encryption.

Security methods compared

MethodEncryptionStatus
OpenNoneNo protection at all
WEPWeak stream cipherBroken and must not be used
WPATKIPObsolete
WPA2AES with CCMPWidely used and still sound with a strong passphrase
WPA3AES, with SAE for personal networksCurrent method, with stronger protection

Open networks need no key, and WEP can be cracked in minutes. WPA was a temporary fix for WEP hardware, and WPA2 brought AES.

TKIP versus AES

TKIP is built on the RC4 cipher so that old WEP hardware could run it. It needs extra work for every packet, and on many devices that work falls on the processor. AES with CCMP is accelerated in the radio chip on modern hardware, so it costs little processing.

TKIP also limits the speed. The 802.11n standard does not allow its high throughput rates with TKIP or WEP, so an n or ac client that uses TKIP falls back to legacy rates, 54 Mbps at most. To get n and ac speeds, use WPA2 with AES.

Exam tip

In a legacy security profile, choose only aes-ccm for the unicast and group ciphers, so that no client can pull the network down to TKIP.

Personal and enterprise

Each method has two modes.

  • Personal uses a pre-shared key (PSK). Every user knows the same passphrase.
  • Enterprise uses 802.1X and EAP. Each user has their own credentials checked by a RADIUS server. The next page covers it.

A PSK is simple, but if one person leaks the passphrase, you must change it for everyone. A weak passphrase can be guessed offline from a captured handshake.

How keys are made

After authentication, the client and the access point run a four way handshake. It proves that both sides know the key and creates fresh keys for the session.

These keys encrypt unicast traffic for that one client. A separate group key protects broadcast and multicast traffic.

The session keys are different for each client and each session.

WPA3 and SAE

WPA3 personal replaces the PSK handshake with SAE (simultaneous authentication of equals). An attacker who captures the exchange cannot run offline guesses against it the way they can with WPA2.

WPA3 also requires protected management frames. Many networks run a mixed mode so that WPA2 only clients can still connect while newer clients use WPA3.

Protected management frames

Normal management frames, such as deauthentication, are not encrypted. An attacker can forge them and kick clients off.

Protected management frames (PMF, defined by 802.11w) add protection to these frames. On the legacy wireless package the setting is management-protection with the values disabled, allowed and required.

Exam tip

Use allowed so that older clients still connect, and use required only when every client supports it.

Configuring security

On the legacy wireless package, security lives in a security profile that you attach to the interface.

/interface wireless security-profiles add name=sec1 mode=dynamic-keys authentication-types=wpa2-psk unicast-ciphers=aes-ccm group-ciphers=aes-ccm wpa2-pre-shared-key=StrongPassphrase1
/interface wireless set wlan1 security-profile=sec1
  • mode=dynamic-keys gives each client its own keys.
  • authentication-types lists the allowed methods.
  • unicast-ciphers and group-ciphers choose the encryption, and aes-ccm is the strong option.

On the wifi driver the security is a separate security profile and it can allow WPA2 and WPA3 together.

/interface wifi security add name=sec1 authentication-types=wpa2-psk,wpa3-psk passphrase=StrongPassphrase1

Choosing the right option

SituationChoice
Home or small officeWPA2 or WPA3 personal with a long passphrase
Business with many usersWPA2 or WPA3 enterprise
Older clients and newer clients togetherMixed WPA2 and WPA3
Public guest networkIsolated network, often with a captive portal
Watch out

An open network is not protected. Anyone in range can read the traffic unless it is protected at a higher layer.

What to remember for the exam

Seven facts cover this topic.

  • Authentication decides who may join, and encryption protects the data.
  • WEP is broken, WPA uses TKIP, and WPA2 uses AES with CCMP.
  • WPA3 personal uses SAE, which resists offline guessing.
  • Personal mode uses a shared passphrase, and enterprise mode uses 802.1X and EAP.
  • A four way handshake creates fresh keys for each session.
  • Protected management frames defend against forged deauthentication.
  • aes-ccm is the strong cipher choice in a legacy security profile.

Common mistakes

These four errors are common.

Using WEP or open networks. WEP can be cracked quickly and open traffic is readable.

Choosing a weak passphrase. A short passphrase can be guessed offline from a captured handshake.

Forgetting to attach the profile. A security profile does nothing until it is set on the interface.

Requiring PMF for all clients. Older clients may fail to connect.

Check yourself

Work through these three questions.

  • What is the difference between authentication and encryption?

    Authentication decides who may join the network. Encryption protects the data after the client has joined.

  • Why is WPA3 personal harder to attack than WPA2 personal?

    It uses SAE, so a captured exchange cannot be used for offline guessing. It also requires protected management frames.

  • What does mode=dynamic-keys do in a legacy security profile?

    It gives each client its own keys, using the chosen authentication types and ciphers.

Topic 1 of 3 in Wireless Security

Test yourself on Wireless Security

The full MikroTik MTCEWE question bank has 476 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by MikroTik. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.