TCR

The Ultimate Guide to Creating a AWS Pentesting Lab on Kali

May 26, 2025 | by JSK

Penetration testing

Prerequisites

Setting Up Budget Alerts

Installing AWS CLI on Kali Linux

Installing CloudGoat on Kali Linux

Prerequisites

Step 1: Install Terraform
unzip terraform_1.12.0_linux_amd64.zip
cp terraform /usr/local/bin
Step 2: Install jq
sudo apt install jq
Step 3: Install CloudGoat Using pipx
pipx install git+https://github.com/RhinoSecurityLabs/cloudgoat.git
Step 4: Create an IAM User in AWS
      Step 6: Generate IAM Credentials
          Step 7: Configure AWS CLI with CloudGoat Profile
          aws configure --profile cloudgoat
          aws sts get-caller-identity --profile cloudgoat
          Step 8: Link CloudGoat to AWS Profile
          cloudgoat config aws
          Step 9: Whitelist Your IP Address
          cloudgoat config whitelist --auto

          Installing Pacu on Kali Linux

          pipx install git+https://github.com/RhinoSecurityLabs/pacu.git