Encrypted Data Walkthrough

Challenge Statment#

image

Solution#

Firstly, we configure our AWS CLI.

image

Then we can check the given S3 bucket. It contains a file, which we can download and view.

image

Now, we have a ciphertext, a key ID, and an algorithm type, but we do not have the permissions to decrypt it.
Looking at other IAM roles, we find this role called crypto-master.

image

We can try to assume the role temporarily using AWS STS.

image

Now, we can use the AccessKeyId, SecretAccessKey, and SessionToken to configure the AWS CLI.
We can now use AWS KMS to decrypt the CipherText.

image


Adapted from harishkannan05/THM-HackfinityBattle-Writeup under MIT.

Find us elsewhere

Merch, stickers, and moreSupport the work at the Solvere Labs shop