GuardDuty, Security Hub and Inspector

Detect threats and misconfigurations continuously with GuardDuty, aggregate findings in Security Hub and scan workloads with Inspector.

Intermediate · about 3 hours · difficulty 3/5

Learn first: Auditing with CloudTrail and AWS Config

Preventive controls will eventually miss something. Detective services watch your accounts continuously and tell you when something looks wrong. Microsoft Defender for Cloud and Google Security Command Center are the equivalents.

Amazon GuardDuty

  • Analyzes CloudTrail, VPC Flow Logs and DNS logs using threat intelligence and machine learning, with no agents to install.
  • Finds things like crypto-mining instances, access from known malicious IPs, credentials used from unusual locations and disabled logging.
  • Optional protection plans for S3, EKS, RDS, Lambda and malware scanning.
  • Enable it in every region, organization-wide, with a delegated admin account.

AWS Security Hub

  • Aggregates findings from GuardDuty, Inspector, Macie, Config and partner tools into one place.
  • Runs security standards such as AWS Foundational Security Best Practices and CIS AWS Foundations, giving you a score and failed controls.
  • Send findings to EventBridge for automated response (isolate an instance, notify Slack).

Amazon Inspector

Scans EC2 instances, ECR container images and Lambda functions for known software vulnerabilities (CVEs) and unintended network exposure.

Also know

Amazon Macie discovers sensitive data such as personal information in S3. IAM Access Analyzer finds resources shared outside your organization.

Pitfalls

  • Enabling GuardDuty in only one region.
  • Turning everything on and never triaging findings.
  • Forgetting these services have costs after their free trial periods.

You are ready to move on when you can enable GuardDuty and Security Hub, generate sample findings, and route high-severity ones to your email through EventBridge and SNS.

Key concepts

  • GuardDuty findings
  • GuardDuty protection plans
  • Security Hub standards
  • Amazon Inspector
  • Amazon Macie
  • Automated response with EventBridge
  • Delegated administrator

Mini project

Enable GuardDuty and Security Hub on their free trials, generate GuardDuty sample findings, and create an EventBridge rule that emails you for high-severity findings. Review the top five failed Security Hub controls and fix two. Disable both services before the trial ends unless you choose to pay.

Check yourself

What is the difference between GuardDuty and Security Hub, and why do you usually want both?

Free resources