Run Kali Linux in Microsoft Azure on SSD for free

Big news for Kali Linux users, now you can run Kali Linux in Microsoft Azure cloud and that’s on super fast SSD! It seems Microsoft Azure Marketplace is adding more and more Linux distro including FreeBSD images in their repo. Just to make things better, you can technically run it freely for 1 month if you are willing to cough up your credit card details. Yeah, I know what you are thinking, but this is probably for the White Hats… I’ve added those details at the end of this post.

Kali Linux and Offensive Security team has been working on building and implementing Kali 2016.2 in the Azure Marketplace for some time and it seems they have finally done it. Also, as much we say those nasty things about Microsoft, it seems they are more than willing to accommodate Linux users requirements than some other Operating systems. Case in point: Bash shell integration with Windows 10.

Either way, you can now spin up a Kali machine from the Azure Marketplace and it takes a few seconds for it to be deployed and you can have a full penetration testing toolset at your fingertips for no additional cost (other than the standard Azure pricing). In fact as I said, if you are a new Azure customer, you can create a free account (or integrate your Hotmail/live account) with it and receive $200 credit.

I however recommend reading through Azure Testing Request for T&C before you do something they might not like!

@KaliLinux team announced it via Twitter and their website today. Microsoft Azure also updated their website with this announcement.

Microsoft Azure actually added some nice description and details regarding Kali Linux.

Kali Linux is a Debian-based Linux distribution aimed at advanced Penetration Testing and Security Auditing. Kali contains several hundred tools aimed at various information security tasks, such as Penetration Testing, Forensics and Reverse Engineering. Kali Linux is developed, funded and maintained by Offensive Security, a leading information security training company.

Installation defaults Run Kali Linux in Microsoft Azure on SSD for free - blackMORE Ops - 2

Azure Kali doesn’t allow you to login as root straightaway, so you need to create a standard user (which got sudo access), deploy the VM and then set root password. SSH service runs on standard port 22 but you can use SSH Public Key instead.

  • Kali Linux 2016.2-x64 xfce
  • Credentials: User generated and root password is not set.
  • Services: SSH
  • Ports: 22

Basic configuration

Microsoft Azure added some basic configuration details (I believe these info were provided by @KaliLinux team). Two things that are important, creating new ssh keys (to avoid the system generated ones) and setting PasswordAuthentication to NO in sshd_config.

  1. SSH into your deployed machine with the user account you created during setup.
  2. Set a root password: sudo passwd root
  3. Create SSH keys: ssh-keygen -t rsa
  4. Set PasswordAuthentication to no in the SSH configuration: /etc/ssh/sshd_config
  5. Restart the SSH Server: systemctl restart ssh

Azure and Kali Linux legal terms

When you finally click on the Create button you will be agreeing to the following ToS/T&C:

By clicking the Create button, I acknowledge that I am getting this software from Kali Linux and that the legal terms of Kali Linux apply to it. Microsoft does not provide rights for third-party software. Also see the privacy statement from Kali Linux.

Depending on what you plan to use Kali for in the cloud, I would say, review these carefully if you are going to invest on cloud penetration environment.

Free Azure Trial

Microsoft Azure offers a one-month free trial for any new customer and provide credits of $200 of Azure at no charge.

When you sign up, you will receive $200 Azure credits. The choice is now yours on how you use your Azure credits. Use them on any Azure service based on your needs including, Virtual Machines, Websites, Cloud Services, Mobile Services, Storage, SQL Database, Content Delivery Network, HDInsight, Media Services, and many more.

Azure requires a credit card or debit card to authenticate you when you sign up, so this might not be viable option for everyone, but like I said, Azure’s Kali is for White Hats, but either way; I am sure it will open up a whole new business opportunity for pentesters as now you can spin up thousands of Kali installation in few seconds to do some serious pentesting. What’s more? I think as this is an Azure offering, you can simply call Microsoft and ask for support:

“Hello, I can’t hack into my own server, can you help?”

Won’t that be fun!

Check Also

Enabling AMD GPU for Hashcat on Kali Linux: A Quick Guide

Enabling AMD GPU for Hashcat on Kali Linux: A Quick Guide

If you’ve encountered an issue where Hashcat initially only recognizes your CPU and not the …

Failed to open directory on Kali Linux Virtualbox - blackMORE Ops -1

Failed to open directory on Kali Linux Virtualbox

I added E:\Kali_Shared to my Kali Linux Virtualbox image and then tried to open it within Kali Linux. Received an Failed to open directory error. This seems to be a common problem with different versions of Linux running in Virtualbox where you get Virtualbox shared folder permissions denied error message.

7 comments

  1. Nice try Microsoft, but AWS are giving 12 month free tier :)

  2. You can use privacy.com to bypass the credit card requirements.

Leave your solution or comment to help others.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from blackMORE Ops

Subscribe now to keep reading and get access to the full archive.

Continue reading

Privacy Policy on Cookies Usage

Some services used in this site uses cookies to tailor user experience or to show ads.