Persistence
It's possible to modify an existing docker image with a backdoor, when this image is used it will trigger our team server.
Steps:
1) Enumerating the user
aws sts get-caller-identity2) Listing manager policies attached to the IAM role
aws iam list-attached-role-policies --role-name NAME3) Getting information about the version of the managed policy
aws iam get-policy-version --policy-arn ARN --version-id ID4) Getting information about the repositories in container registry
aws ecr describe-repositories5) Listing all images in the repository
aws ecr list-images --repository-name NAME6) Listing information about an image
aws ecr describe-images --repository-name NAME --image-ids imageTag=NAME7) Authenticate the docker daemon to ECR
8) Building images with backdoor
9) Tagging the docker image
10) Pushing the image to ECR
Last updated