Terraform script to deploy below vulnerable container targets on AWS.
Juice-shop:
https://hub.docker.com/r/bkimminich/juice-shop
DVWA:
https://hub.docker.com/r/vulnerables/web-dvwa
XVWA:
https://hub.docker.com/r/bitnetsecdave/xvwa
Vulnerable Graphql:
Damn-Vulnerable-GraphQL-Application
Vulnerable API:
https://github.com/erev0s/VAmPI
Vulnerable SMB:
https://github.com/dperson/samba
Vulnerable FTP:
vsftpd-2.3.4-vulnerable
Vulnerable SMTP:
https://github.com/vulhub/vulhub/tree/master/opensmtpd/CVE-2020-7247
SNMP Enumeration:
ehazlett/snmpd:latest
NFS Enumeration:
itsthenetwork/nfs-server-alpine
Create your AWS keys:
https://www.youtube.com/watch?v=HuE-QhrmE1c
access_key = "ADD YOUR KEY HERE"
secret_key = "ADD YOUR KEY HERE"
ssh-keygen -q -t rsa -N '' -f ~/.ssh/vulnlab <<<y >/dev/null 2>&1
git clone https://github.com/DarkRelayLabs/vulnlab_aws.git && cd vulnlab_aws
terraform init
terraform apply --auto-approve
Web
: http://<EC2_Public_IP>
Network
: Find targets using nmap.
nmap <EC2_Public_IP>
terraform destroy --auto-approve
Configures one EC2 t2.medium instance to host containers.
Configures one security group.
Configures ingress rules for ports 22,25 80,81,82,84 etc. to allow traffic from your IP only.
Compromise DVWA to access Port 8082 and reach XVWA (this is for pivoting scenarios).
Configures ingress rules for port 22 to allow traffic from any IP.
Configures egress rule for all traffic outbound connections.
Happy hunting!!