wifi security lab

WiFi Security - Understanding Aircrack-ng in Kali Linux

houseJay Mar 14, 2023

Before completing this lab, ensure you are working in a legal and safe environment. If you haven't already, you can set up your own hacking lab by completing our first tutorial:

Setting Up Your Free Virtual Hacking Environment

In this tutorial, we are going to talk about Aircrack-ng, which is one of the most well-known Wi-Fi security auditing toolsets included with Kali Linux.

Before we go any further, here is the rule:

Only test Wi-Fi networks you own or have written permission to test.

Do not test your neighbor’s Wi-Fi.
Do not test a business Wi-Fi network.
Do not test public Wi-Fi.
Do not “just see what happens.”

That is not learning. That is unauthorized access.

This tutorial is focused on understanding how Wi-Fi attacks work at a high level, setting up your Kali lab correctly, and learning how to protect your own network.

Step 1 – Understanding What Aircrack-ng Is

Aircrack-ng is a suite of command-line tools used to assess Wi-Fi network security.

It focuses on several areas of wireless security, including:

  • Monitoring wireless traffic
  • Testing wireless adapter capabilities
  • Analyzing captured wireless data
  • Auditing weak Wi-Fi configurations
  • Understanding why weak passwords are dangerous

Aircrack-ng is commonly used by penetration testers, security researchers, and network administrators to test whether a Wi-Fi network is properly secured.

The important thing to understand is this:

Aircrack-ng does not magically “hack Wi-Fi.”

It relies on weak configurations, poor passwords, outdated encryption, or captured authentication data. If a Wi-Fi network is configured correctly with modern encryption and a strong password, it becomes much harder to attack.

Step 2 – Why Your VMware Kali Setup Needs Extra Hardware

In the first lab, Kali Linux was installed inside VMware.

That is still fine.

But Wi-Fi testing is different from testing vulnerable virtual machines like Metasploitable.

Your Kali VM does not automatically get full access to your physical laptop’s Wi-Fi card. VMware usually presents your internet connection to Kali as a virtual wired connection, even if your real computer is using Wi-Fi.

That means Kali can usually browse the internet, update packages, and communicate with lab machines, but it cannot directly control your built-in Wi-Fi adapter for wireless testing.

For Wi-Fi security testing, you normally need a separate USB Wi-Fi adapter that supports:

  • Monitor mode
  • Packet capture
  • Linux driver support
  • USB passthrough into VMware

This adapter is what Kali uses to observe wireless traffic in a controlled lab.

Step 3 – Choosing a Legal Wi-Fi Lab Target

For a safe lab, you should use your own equipment.

A good beginner setup is:

  • Your Windows computer running VMware
  • Your Kali Linux virtual machine
  • A compatible USB Wi-Fi adapter
  • A spare router you own
  • A test Wi-Fi network created only for practice

Do not use your main home Wi-Fi at first.

Create a separate test network if your router supports it. Many routers allow a guest network, which is perfect for learning.

A basic test network might look like this:

  • Network name: SecretLab-Test
  • Security: WPA2-Personal or WPA3-Personal
  • Password: something you create for testing
  • Devices connected: only your own devices

The point of the lab is not to break into random Wi-Fi networks.

The point is to understand how weak Wi-Fi security fails, so you can avoid those mistakes on real networks.

Step 4 – Confirm Kali Linux Is Ready

Start your Kali Linux VM in VMware.

Log in with the username and password you created in the first tutorial.

Open the terminal.

Kali includes a large number of security tools by default, and Aircrack-ng is commonly available in Kali’s toolset.

At this stage, you are only confirming your environment is ready.

You should also update Kali before doing any serious lab work.

Keeping Kali updated matters because wireless tools, drivers, and dependencies change over time.

Step 5 – Connect Your USB Wi-Fi Adapter to Kali

Plug your USB Wi-Fi adapter into your computer.

In VMware, USB devices can be connected either to your host machine or to your virtual machine.

You want the adapter connected to Kali, not Windows.

In VMware, look for the removable devices or USB device menu, then connect the Wi-Fi adapter to the Kali VM.

If this works correctly, Kali should detect the adapter as a wireless device.

If it does not appear, the most common causes are:

  • The adapter is still connected to Windows instead of Kali
  • The adapter does not support Linux well
  • VMware USB passthrough is not working
  • The adapter needs a driver
  • The adapter does not support monitor mode

This is why choosing the right adapter matters.

Step 6 – Understand Monitor Mode

Normal Wi-Fi mode is called managed mode.

In managed mode, your Wi-Fi adapter connects to one wireless network, just like your laptop or phone normally does.

Security testing often requires monitor mode.

Monitor mode allows a wireless adapter to observe wireless frames in the air instead of only handling traffic for the network it is connected to.

That is why monitor mode support is important.

Without monitor mode, many Wi-Fi security testing workflows will not work properly.

Step 7 – Understand What a Wi-Fi Handshake Is

When a device connects to a password-protected Wi-Fi network, the device and router perform an authentication exchange.

In WPA and WPA2-Personal networks, this process involves a handshake.

A captured handshake does not directly reveal the password.

Instead, it can be used to test whether a guessed password matches the network.

This is why weak passwords are dangerous.

If the Wi-Fi password is something like:

  • password123
  • letmein123
  • companyname2024
  • summer2025
  • 1234567890

…it may be vulnerable to guessing attacks.

But if the password is long, random, and unique, password guessing becomes much harder.

Step 8 – What Aircrack-ng Teaches You Defensively

The real lesson from Aircrack-ng is not “how to crack Wi-Fi.”

The real lesson is:

Weak Wi-Fi passwords are the vulnerability.

A properly secured Wi-Fi network should use:

  • WPA2-AES or WPA3
  • A long, random password
  • No WPS
  • Updated router firmware
  • A separate guest network
  • No shared password reused across accounts
  • No old WEP security
  • No default router admin password

If your router still supports WEP, do not use it.

WEP is outdated and broken.

For most home and small business networks, WPA2-Personal with a strong password is still common, while WPA3 is better when all devices support it.

Step 9 – Secure Your Own Wi-Fi Network

Log into your router’s admin panel.

Every router is different, but most allow access through a local address such as:

  • 192.168.0.1
  • 192.168.1.1
  • 10.0.0.1

Check the following settings.

Wi-Fi Encryption

Use:

  • WPA3-Personal, if available

Or:

  • WPA2-Personal with AES

Avoid:

  • WEP
  • WPA
  • WPA/WPA2 mixed mode if you do not need it
  • TKIP

Wi-Fi Password

Use a long password.

A good Wi-Fi password should be:

  • At least 16 characters
  • Not based on your business name
  • Not based on your address
  • Not based on your phone number
  • Not reused anywhere else
  • Easy enough for you to store safely, but hard for others to guess

Example style:

correct-horse-style-long-random-phrase-2026

Do not use that exact password. Make your own.

Disable WPS

WPS is the push-button or PIN-based setup feature on many routers.

It was designed for convenience, not security.

If you do not need it, turn it off.

Update Router Firmware

Router firmware updates fix security issues.

Log into your router and check for updates.

If your router has not received updates in years, it may be time to replace it.

Change the Router Admin Password

Your Wi-Fi password and router admin password are not the same thing.

The router admin password controls access to the router settings.

Change it from the default.

Step 10 – Small Business Wi-Fi Recommendations

If you are securing Wi-Fi for a small business, take it more seriously than a basic home setup.

At minimum:

  • Use a separate guest Wi-Fi network
  • Do not give customers access to the main business network
  • Use strong WPA2 or WPA3 encryption
  • Disable WPS
  • Keep router and access point firmware updated
  • Use unique passwords for admin panels
  • Document who has access
  • Remove old employees’ access
  • Consider business-grade access points
  • Consider VLANs for separating devices

A common small business mistake is putting everything on one network.

That means customer phones, employee laptops, printers, security cameras, and business systems may all be on the same network.

That is bad network design.

Segmentation matters.

Step 11 – What You Should Practice Next

For beginners, the best next steps are:

  • Learn basic Linux commands
  • Learn how networking works
  • Learn the difference between NAT, bridged, and host-only networking in VMware
  • Learn how Wi-Fi encryption works
  • Learn how to secure your own router
  • Learn how to read tool documentation
  • Learn how to document a security test professionally

Do not rush straight into attacks.

That is how people end up copying commands without understanding what they are doing.

Good ethical hackers understand the system first.

Closing Thoughts

Aircrack-ng is a powerful Wi-Fi security auditing suite, but tools are not the important part.

The important part is understanding the weakness.

Weak passwords, outdated encryption, bad router settings, and poor network design are what make Wi-Fi networks vulnerable.

Your goal should be to learn how those weaknesses work so you can secure your own networks and eventually perform legal, permission-based testing.

In the next tutorials, we will continue building real cybersecurity skills inside our Kali Linux lab while keeping everything legal, ethical, and controlled.

Please Subscribe to keep up with future tutorials, and always feel free to contact me or leave a comment below.