Advent of Cyber 2024 Day 7: Oh, no. I’M SPEAKING IN CLOUDTRAIL!

Questions

1. What is the other activity made by the user glitch aside from the ListObject action?

2. What is the source IP related to the S3 bucket activities of the user glitch?

3. Based on the eventSource field, what AWS service generates the ConsoleLogin event?

4. When did the anomalous user trigger the ConsoleLogin event?

5. What was the name of the user that was created by the mcskidy user?

jq -r '.Records[] | select(.eventSource=="iam.amazonaws.com" and .eventName=="CreateUser" and .userIdentity.userName=="mcskidy") | .requestParameters.userName' cloudtrail_log.json

6. What type of access was assigned to the anomalous user?

jq -r '.Records[] | select(.eventSource=="iam.amazonaws.com" and .eventName=="AttachUserPolicy" and .requestParameters.userName=="glitch") | .requestParameters.policyArn' cloudtrail_log.json

7. Which IP does Mayor Malware typically use to log into AWS?

jq -r '["Event_Time", "Event_Name", "Source_IP"], (.Records[] | select(.userIdentity.userName=="mayor_malware") | [.eventTime, .eventName, .sourceIPAddress // "N/A"]) | @tsv' cloudtrail_log.json | column -t -s $'\t'

8. What is McSkidy’s actual IP address?

jq -r '["Event_Time", "Event_Name", "Source_IP"], (.Records[] | select(.userIdentity.userName == "mcskidy" and .eventName == "ConsoleLogin") | [.eventTime, .eventName, .sourceIPAddress // "N/A"]) | @tsv' cloudtrail_log.json | column -t -s $'\t'

9. What is the bank account number owned by Mayor Malware?

grep "INSERT INTO wareville_bank_transactions" rds.log | grep "Mayor Malware"

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir