navigation

Getting Hands on with Amazon GuardDuty

Overview

With Amazon GuardDuty, a fully managed service by AWS, this exercise will cover how to detect system threats and remediate them. We will conduct analysis, assessment and how to alarm and remediate security issues based on the findings (Findings) of GuardDuty.

To prepare for this exercise, using the built-in CloudFormation Template, we will reproduce the attacks and automated fixes by combining EventBridge Event Rules and Lambda Functions.

  • Level: 300
  • Duration: 1-2 hours
  • Requirement: IAM User (Admin) and AWS CLI
  • Functions of CSF (Cybersecurity Framework):
    • Protect (Protect)
    • Detect (Detect)
    • Feedback (Respond)
  • Security Perspectives of CAF (Cloud Adoption Framework):
    • Preventative (Ability to prevent)
    • Detective (Traceability)
    • Responsive
  • AWS Services Used:
    • Amazon EventBridge
    • Amazon GuardDuty
    • AWS CloudTrail
    • AWS Lambda
    • VPC Security Groups
    • Amazon SNS

Establish

The exercise will be set at us-west-2 (Oregon).

For more details, see Environment Setup.

Situation

The exercise will cover the following scenarios:

OrderNameSpecificationSolution
1Compromised EC2 instanceDetect and recover hacked EC2 instancesCombination of Amazon GuardDuty, Amazon EventBridge Event Rules and AWS Lambda
2Compromised IAM credentialsIdentify an individual who is actively calling an API to the system on AWSFix this hazard immediately (manually)
3IAM role exfiltrationThrough a leaked credential, an individual is attempting to hack and call the API from an external serverFix it with AWS Lambda

Clean up

Details are in Environment Cleanup.