Cloud Ring - Trufflehog Search Walkthrough

Trufflehog Search

Upon completion of AWS CLI Intro challenge, we are being asked to use Trufflehog to find secrets in a Git repo. Work with Jill Underpole in the Cloud Ring for hints. What's the name of the file that has AWS credentials?

Difficulty Level 2/5

Question in Terminal

Use Trufflehog to find credentials in the Gitlab instance at https://haugfactory.com/asnowball/aws_scripts.git.

Configure these credentials for us-east-1 and then run:

$ aws sts get-caller-identity

Trufflehog is a secrets scanner for git repos

usage examples - https://github.com/trufflesecurity/trufflehog

As per above prompts in question we run the below command to git clone aws_script.git and run trufflehog againt this repository (Assuming trufflehog is preinstalled and it is)

>> git clone https://haugfactory.com/asnowball/aws_scripts.git

>> trufflehog git https://haugfactory.com/asnowball/aws_scripts.git 

Identified 3 unverified results, lets look at the first one a bit deeper

>> git show 106d33e1ffd53eea753c1365eafc6588398279b5

Reveals the AWS keys we are searching for to change our AWS identity

After running “aws configure” command and input all the listed information grabbed from commit msg, we are able to invoke

>> aws sts get-caller-idenity – which should list us the account details and username for this identity


Upon Compeletion we Talk to Gerty Snowburrow for the next objective.


Comments

Popular posts from this blog

SANS Kringlecon 2022 Introduction

Tolkien Ring - Wireshark Practice walkthrough

Elfen Ring - Prison Escape Walkthrough