Essential Security Tools: Kali Linux

Essential Security Tools: Kali Linux

Analysts and security professionals must always possess robust toolkits to combat rapidly advancing threats in our ever-evolving cyberspace. These toolkits must contain certain essentials, and to remain relevant as security professionals, we must adopt new tools. This series will explore some critical tools and their relevance within cybersecurity.

First on the list is Kali Linux, a powerful, open-source operating system specially built for cybersecurity. From penetration testing to ethical hacking, digital forensics, threat hunting, and advanced incident response, Kali has capabilities that will continue to wow enthusiasts and seasoned professionals alike.

Some key benefits of using Kali include.

  • Kali is highly customizable, allowing users to add or remove tools based on the peculiarities of their use case.
  • Kali comes with over 600 unique tools for security analysis tasks (e.g., network scanning, malware analysis, and more.), making it indispensable.
  • Kali is flexible and can run as a portable from a USB without installation, making it a versatile option for users.
  • Kali boasts of a robust community base and extensive documentation to support users.


Installing Kali Linux.

To install Kali Linux, I strongly recommend getting the software from the official Kali.org website. This article will not cover the installation process; here are some walkthrough videos on installing the OS.


I will only discuss my experience during the installation and share some insights from what I learned.

The official Kali website offers several installer options, such as ISO images, prebuilt virtual machine (VM), and Windows subsystem layer (WSL) versions. It even sports a mobile (Android) version. I explored the VM and ISO versions, which were the same, with a few variations in the installation workflow.


Kali official download page with installer options.
Official Kali Linux downloads page with various installer options.


I always recommend using a hypervisor. VirtualBox, VMWare Workstation, VMWare Fusion (for Macs), and Windows Hyper-V are all great options. I currently use VMWare Workstation.


Snapshot of VMWare workstation
A screenshot of VMWare Workstation 17


Installation using the VM builds takes a few minutes, while the ISO installations are pretty detailed and can take fifteen minutes to an hour to complete.


Kali Linux installation progress bar on VMWare workstation
Kali Linux 2024.3 installation in progress
Kali Linux installation complete screen
Kali Linux 2024.3 installation complete


Here is where my inquisitive mind got the best of me, and I learned a valuable lesson. After successfully installing the OS, I updated the installed packages using the command (as recommended).

sudo apt-get update        


Kali Linux terminal showing update command being processed.


I decided to take it further and upgrade the OS using the command.

sudo apt upgrade        
PS: If you're unwilling to break stuff and fix it back, I would not recommend taking this step.
Kali LInux terminal showing the upgrade command before processing

After about forty-five minutes to an hour, I completed the upgrade, and the machine rebooted with a black screen.

It turns out that Kali Linux's default desktop display manager is 'lightdm', which has been known to fail due to compatibility issues with specific display drivers (e.g., NVIDIA). I currently run an Intel Iris Plus Graphics card on my machine; however, I still ran into the 'black screen' problem.

The most popular solution to this issue involves rebooting the machine and booting into it using any TTY terminal. Unfortunately, that did not work for me, as my TTY terminals kept disconnecting after a few seconds.


Lesson #1:

After a successful OS installation, I recommend taking a snapshot and saving it as a baseline version. This single action helped me recover my OS installation faster than a fresh installation.


An image showing VM snapshots on
Kali Linux 2024.3 baseline snapshot from installation


Lesson #2:

There are multiple ways to solve a problem. Never be content knowing only one path to the solution.

Unable to use the TTY terminal, I resorted to rolling back the upgrade installation (using the baseline snapshot I had earlier created) to find an alternate logical method to fix the problem.

Using the baseline snapshot (which had the 'lightdm' working), I switched the display manager to a different one using the command.

sudo dpkg-reconfigure lightdm        

Let me pause here: Kali Linux has three major desktop display manager options.

  • Gnome DM: Prominently known for its sleek design and ease of use, it is most suitable for users who want a polished login and user interface. The most recent version is GDM3.
  • Light DM: A lightweight display manager preferred for speed and flexibility with multiple desktop environments.
  • Simple Desktop DM:??Also referred to as 'SDDM,' this display manager is preferred for its attractiveness and compatibility with other environments.


Switching from LightDM to SDDM

Once I switched to SDDM, I attempted the upgrade again and completed it without a glitch. I rebooted the machine with my fingers crossed and was delighted to see the login screen.


A screenshot showing apps on Kali Linux using the simple desktop display manager
A screenshot from the Simple Desktop Display Manager (SDDM) environment


Lesson #3:

Be obsessed with progress, no matter the hurdles you face and how slow you progress. Direction is more important than speed!

Not one to back down easily, I decided to test my final hypothesis. If 'lightdm' works perfectly before the upgrade, after upgrading using 'sddm,' I should be able to switch back to 'lightdm' without the black screen. I made the final switch back to 'lightdm' using the command.

sudo dpkg-reconfigure lightdm        
Switching back to LightDM after the upgrade

Here are screenshots of the final result.

Kali Linux 2024.3 'LightDM' login page (Tweaked)
Kali Linux 2024.3 Desktop


To learn more about Kali Linux, here are some additional resources:

  1. OffSec KLCP Course - https://www.offsec.com/courses/pen-103/
  2. Empirical Training (Free Tier) - ??Cyber Swiss Army Knife
  3. Empirical Training (Gold Tier) - Week 2: Kali Setup
  4. Kali Official Website (Tools Documentation) - https://www.kali.org/tools/
  5. FreeCodeCamp (on YouTube) - Linux for Ethical Hackers (Kali Linux Tutorial)

Risikat Tolani O.

Certified Sales Copywriter & Content Writer | Content Creator | Helping Nigeria Moms Heal comfortably After C-Section Delivery | Anti-Diet, Holistic & Realistic Wellness & Body Positivity Advocate

4 个月

Interesting

回复
Josh Davies

Cyber Security Specialist | Principal Technical Manager

4 个月

Really insightful to see your listed lessons at the end: - It showed me how you approached and solved problems - It helped make the content even more accessible for those wishing to follow your journey Great article on your development Edi

IKPA Echechofu, NIPSM, HND, NIMN, CIM

Business Development (seasoned), Trade Marketing & Consultancy (seasoned), Route to Market (SME)

4 个月

Impressive. Keep it rolling!

Chima Nwadike

Software Engineer | Solutions Architect | Integration & Interoperability Expert

4 个月

Don’t be afraid to break things in development—that's where real learning happens. That's a lot of lesson just at installation phase. Keep breaking things Edidiong E.

Odinaka Udoezika

Cybersecurity Engineer || Experienced with Firewall, SIEM, EDR, NAC, IaC, PAM, CI/CD and SOAR solutions || Securing Network and Cloud Environments.

4 个月

Great start Edidiong E.

要查看或添加评论,请登录

Edidiong E.的更多文章

  • Understanding Email Attacks (Part 2)

    Understanding Email Attacks (Part 2)

    Email attacks can sound like a handful, and rightfully so, because they are unavoidable. In my last article, I promised…

    5 条评论
  • Understanding Email Attacks (Part 1)

    Understanding Email Attacks (Part 1)

    It's pretty clear to everyone that emails are a big part of our daily lives for personal and professional…

    5 条评论
  • Cyber Threat Intelligence in a Nutshell

    Cyber Threat Intelligence in a Nutshell

    Exploring more cybersecurity domains remains a lifelong adventure, and "I'm loving it!" Last week, I dived into the…

    8 条评论

社区洞察

其他会员也浏览了