Home

Awesome

AzureGoat : A Damn Vulnerable Azure Infrastructure

1

Compromising an organization's cloud infrastructure is like sitting on a gold mine for attackers. And sometimes, a simple misconfiguration or a vulnerability in web applications, is all an attacker needs to compromise the entire infrastructure. Since the cloud is relatively new, many developers are not fully aware of the threatscape and they end up deploying a vulnerable cloud infrastructure. Microsoft Azure cloud has become the second-largest vendor by market share in the cloud infrastructure providers (as per multiple reports), just behind AWS. There are numerous tools and vulnerable applications available for AWS for the security professional to perform attack/defense practices, but it is not the case with Azure. There are far fewer options available to the community.

AzureGoat is a vulnerable by design infrastructure on Azure featuring the latest released OWASP Top 10 web application security risks (2021) and other misconfiguration based on services such as App Functions, CosmosDB, Storage Accounts, Automation and Identities. AzureGoat mimics real-world infrastructure but with added vulnerabilities. It features multiple escalation paths and is focused on a black-box approach.

AzureGoat uses IaC (Terraform) to deploy the vulnerable cloud infrastructure on the user's Azure account. This gives the user complete control over code, infrastructure, and environment. Using AzureGoat, the user can learn/practice:

The project is divided into modules and each module is a separate web application, powered by varied tech stacks and development practices.

Presented at

Developed with :heart: by INE

<img src="https://user-images.githubusercontent.com/25884689/184508144-f0196d79-5843-4ea6-ad39-0c14cd0da54c.png" alt="drawing" width="200"/>

Built With

Vulnerabilities

The project is scheduled to encompass all significant vulnerabilities including the OWASP TOP 10 2021, and popular cloud misconfigurations. Currently, the project contains the following vulnerabilities/misconfigurations.

Getting Started

Prerequisites

Installation

To ease the deployment process the user just needs to clone this repo, login to azure cli then initialize and apply the Terraform file. This workflow will deploy the whole infrastructure and output the hosted application's URL.

Here are the steps to follow:

Step 1. Clone the repo

git clone https://github.com/ine-labs/AzureGoat

Step 2. Login to Azure CLI

az login

And follow the steps to sign in.

Step 3. Create a resource group with the name "azuregoat_app".

Step 4. Use terraform to deploy AzureGoat

terraform init
terraform apply --auto-approve

Modules

Module 1

The first module features a serverless blog application utilizing Azure App Functions, Storage Accounts, CosmosDB, and Azure Automation. It consists of various web application vulnerabilities and facilitates exploitation of misconfigured Azure resources.

Overview of escalation paths for module-1

6

Contributors

Nishant Sharma, Director, Lab Platform, INE nsharma@ine.com

Jeswin Mathai, Chief Architect, Lab Platform, INE jmathai@ine.com

Rachna Umaraniya, Cloud Developer, INE rumaraniya@ine.com

Sherin Stephen, Software Engineer (Cloud), INE sstephen@ine.com

Shantanu Kale, Cloud Developer, INE skale@ine.com

Sanjeev Mahunta, Software Engineer (Cloud), INE smahunta@ine.com

D Yashwanth Babu, Software Engineer (Cloud), INE dbabu@ine.com

Solutions

The offensive manuals are available in the attack-manuals directory, and the defensive manuals are available in the defence-manuals directory.

Module 1 Exploitation Videos: https://www.youtube.com/playlist?list=PLcIpBb4raSZGdYHKpqIu5Boc2ziga4oGY

Documentation

For more details refer to the "AzureGoat.pdf" PDF file. This file contains the slide deck used for presentations.

Screenshots

Blog Application HomePage

1

Blog Application Login Portal

2

Blog Application Register Page

3

Blog Application Logged in Dashboard

4

Blog Application User Profile

5

Contribution Guidelines

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License v2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Sister Projects