Amazon GuardDuty and AWS Security Hub: Threat Detection for Your Account

Amazon GuardDuty and AWS Security Hub: Threat Detection for Your Account

Written by

in

Most AWS account compromises follow the same story: a leaked access key, unusual API calls in a Region nobody uses, then a bill for GPU instances mining cryptocurrency. AWS has managed services that spot this early. Amazon GuardDuty detects suspicious activity, and AWS Security Hub turns security findings into a prioritized list you can act on.

This guide explains what each service does, how the new Security Hub differs from Security Hub CSPM, what to expect on cost, and a simple setup for a single account or a small organization.

What GuardDuty does

Amazon GuardDuty continuously analyzes CloudTrail management events, VPC Flow Logs and DNS query logs, using threat intelligence and anomaly detection. You do not need to turn on those logs yourself for the foundational analysis; GuardDuty reads its own copy. Optional protection plans extend coverage to S3 data events, EKS, runtime activity on EC2 and containers, RDS logins, Lambda network activity and malware scanning. See the GuardDuty user guide.

AWS threat detection stack: GuardDuty finds active threats, Security Hub CSPM checks configuration against best practices, and Security Hub correlates findings into prioritized risks
GuardDuty watches for attacks, CSPM checks for weak settings, and Security Hub ties the findings together.

Typical GuardDuty findings

  • API calls from a known malicious IP address or Tor exit node.
  • Credentials created for an EC2 instance role being used from outside AWS.
  • An instance communicating with a crypto-mining pool.
  • Unusual API activity, such as disabling CloudTrail or creating many users.
  • SSH or RDP brute-force attempts against an instance.
  • An S3 bucket made public or accessed from an unusual location.

Each finding has a severity, the affected resource and recommended remediation.

Security Hub CSPM

AWS Security Hub CSPM, previously simply called Security Hub, runs automated checks against standards such as AWS Foundational Security Best Practices, CIS AWS Foundations and NIST. It flags issues like root access keys, missing MFA, unencrypted volumes, public S3 buckets and security groups open to the world, and it aggregates findings from GuardDuty and other services. It relies on AWS Config recording the relevant resources.

The new Security Hub

AWS announced a new Security Hub at re:Inforce 2025 and made it generally available in December 2025. It correlates signals from GuardDuty, Amazon Inspector, Security Hub CSPM and Amazon Macie to identify exposures, where several issues together create real risk, and prioritizes them. AWS’s Security Hub FAQ explains that both services can be used together, and some new features need CSPM and Inspector enabled.

The services side by side

ServiceQuestion it answersMain input
GuardDutyIs someone attacking or misusing the account right now?CloudTrail, Flow Logs, DNS logs, runtime data
Security Hub CSPMWhich settings break security best practices?AWS Config and service checks
Amazon InspectorWhich instances, containers and functions have vulnerabilities?Software inventory and network reachability
Security HubWhich risks matter most, combining all of the above?Findings from the other services

A simple setup

  1. Enable GuardDuty in every Region that is enabled in the account. In an organization, designate a delegated administrator account and auto-enable for members.
  2. Enable AWS Config recording, then Security Hub CSPM with the Foundational Security Best Practices standard.
  3. Turn on cross-Region aggregation so findings from all Regions appear in one home Region.
  4. Create an EventBridge rule for high and critical findings that sends to an SNS topic for email, or to a chat integration.
  5. Fix the highest-severity CSPM findings first, starting with root user and IAM controls.

The AWS account security checklist lists the controls these findings most often point to, and the Organizations guide covers delegated administration.

Responding to findings

  • Leaked credentials: deactivate the access key, review CloudTrail, remove unknown resources in every Region. The CLI and access keys guide has the full steps.
  • Compromised instance: isolate it with a restrictive security group, snapshot the volume for investigation, and replace it from a clean image.
  • Public bucket: turn on Block Public Access and check access logs.
  • Known false positive: suppress it with a rule rather than ignoring all findings of that type.

Unanswered abuse reports can lead AWS to restrict an account; the suspended account guide explains that process.

Costs and free trials

GuardDuty and Security Hub CSPM each offer a 30-day free trial per Region, and their consoles show estimated monthly cost during the trial. After that, GuardDuty is priced by the volume of events and data analyzed, and CSPM by the number of checks and findings ingested. For small accounts the cost is usually modest compared with the price of one undetected compromise. AWS Config recording adds its own charge, which you can limit to the resource types the checks need.

Detection checklist

  • GuardDuty enabled in every active Region.
  • Security Hub CSPM with Foundational Security Best Practices enabled.
  • Findings aggregated to one Region.
  • High and critical findings alert a real person.
  • Unused Regions disabled to reduce exposure.

Detection is especially worth turning on right after a handover, before you start building. The verification and security notes listed with each AWS account tell you what state the account starts in.

GuardDuty and Security Hub questions

What is the difference between GuardDuty and Security Hub?

GuardDuty detects threats such as compromised credentials, crypto mining and unusual API calls by analyzing logs. Security Hub gathers and prioritizes findings from GuardDuty and other services, while Security Hub CSPM checks your configuration against security standards.

What happened to the original Security Hub?

In 2025 AWS launched a new Security Hub that correlates findings and prioritizes risk. The original service, focused on best-practice checks and finding aggregation, is now called AWS Security Hub CSPM and remains available.

Is GuardDuty free?

New accounts get a 30-day free trial per Region. After that, pricing depends on the volume of logs and features analyzed. The console shows an estimate of your cost during the trial.

Do I need to enable GuardDuty in every Region?

Yes, it is a Regional service. Attackers using stolen keys often launch resources in Regions you do not watch, so enable it in all Regions that are turned on in the account.

Will GuardDuty stop an attack?

No. GuardDuty detects and reports. To respond automatically, send findings to EventBridge and trigger actions such as notifications or a Lambda function that isolates an instance.

Editorial guide by Mark Biden · Reviewed 24 November 2026. Official sources are linked beside the relevant sections; AWS features, quotas and prices change, so confirm details in the AWS console before relying on them.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *