Skip to content

About

CloudGoat vulnerable_lambda: SQL injection in a policy-applier Lambda, in your own AWS account, run with Isoloom

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

CloudGoat: vulnerable Lambda

CloudGoat by Rhino Security Labs: "vulnerable by design" AWS deployment scenarios. This repository runs its vulnerable_lambda scenario with Isoloom in your own AWS account: isoloom.yml describes the cloud services, the scenario sits unchanged in app/, and terraform/ is a small wrapper that feeds the scenario what CloudGoat's Python CLI would.

Cloud services What
IAM The user Bilbo and a role
Lambda A function that applies policies to users, vulnerable to SQL injection
Secrets Manager The final flag

Cost while it runs: Lambda and a Secrets Manager secret (about $0.40 a month for the secret, prorated).

Run it

Use an AWS account with nothing else in it, signed in with the AWS CLI (aws login, the default profile, or set another with -s cloud.vars.profile=<name>), and Terraform installed.

isoloom run cloud-services
isoloom test cloud-services
isoloom down cloud-services

run prints where to start (your starting credentials, if the scenario gives you some). Guide: the scenario's README and cheat sheets in app/cloudgoat/scenarios/aws/vulnerable_lambda/. Anything you create yourself while playing isn't Terraform's: delete it before down. After down, the flag's Secrets Manager secret stays scheduled for deletion for 30 days (upstream's recovery window; each deployment gets a new name). To remove it at once: aws secretsmanager delete-secret --force-delete-without-recovery --secret-id <name> (aws secretsmanager list-secrets --include-planned-deletion shows it).

Upstream version and commit: UPSTREAM.md.

Licence

BSD-3-Clause, as CloudGoat (LICENSE). This lab is deliberately vulnerable: deploy it only in an account you use for nothing else, and destroy it when you are done.

About

CloudGoat vulnerable_lambda: SQL injection in a policy-applier Lambda, in your own AWS account, run with Isoloom

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages