Skip to content
Visual explainer 2h 30m to learn 5 steps

Triage AWS security findings from GuardDuty to Macie

Compare GuardDuty, Security Hub, Inspector and Macie and turn their findings into a prioritised remediation list.

By Invicly Tech, , in AWS Cloud Engineering. About 11 minutes to read.

Topic 29 of 38

In short

AWS has four detective services that look at different risks. GuardDuty spots suspicious activity, Inspector finds software vulnerabilities, Macie finds sensitive data in S3, and Security Hub brings findings and best-practice checks into one place. A defender's job is to turn their many findings into a short, ordered list of fixes.

Think of it like this: GuardDuty is the burglar alarm, Inspector is the building inspector, Macie checks which drawers hold passports, and Security Hub is the front desk that collects every report.

Explained simply

Detective services watch your account and report problems as findings. Each finding says what was seen, which resource is involved and how serious it looks. They do not fix anything themselves. Your job is to read the findings, decide which matter most and fix those first.

GuardDuty watches activity. It reads CloudTrail events, network flow data and DNS lookups and flags things like a role being used from an unusual country, or an instance talking to a known bad address. Inspector looks for known weaknesses in software on EC2 instances, in container images and in Lambda functions.

Macie looks inside S3 for sensitive data such as names, credit card numbers or keys, and reports buckets that are public or shared. Security Hub CSPM (the service long known as Security Hub) runs best-practice checks across your account and collects findings from the other services into one list.

Lots of findings arrive at once, so you need a way to rank them. Ask three questions for each: how bad is it, can an attacker reach it, and what data could they get? A critical flaw on an internet-facing server with customer data comes first. A low finding on an internal test box can wait.

Press Play on a diagram to walk through it one step at a time.

MapWhich service looks at what
Detective services
  • GuardDuty
    • Threats and odd behaviour
    • CloudTrail, VPC flow and DNS logs
    • Optional S3, EKS, runtime and malware plans
  • Inspector
    • Known vulnerabilities (CVEs)
    • EC2, ECR images and Lambda
    • Network reachability
  • Macie
    • Sensitive data in S3
    • Bucket security and access
    • Managed and custom data identifiers
  • Security Hub CSPM
    • Best-practice controls
    • Aggregates findings from the others
    • Standards such as AWS FSBP and CIS
CompareWhere each finding comes from
Behaviour signals
  • GuardDuty
  • Something is happening now
  • Credentials used oddly
  • Calls to bad domains
Weakness signals
  • Inspector and Security Hub CSPM
  • Something could be exploited
  • Unpatched CVEs
  • Risky settings such as public buckets
Data signals
  • Macie
  • What is at stake
  • Personal or card data in S3
  • Who can reach the bucket

In depth

GuardDuty: threat detection

GuardDuty analyses foundational sources on its own: CloudTrail management events, VPC Flow Logs and Route 53 Resolver DNS query logs. You do not need to turn those logs on yourself, and GuardDuty does not change your resources. Optional protection plans add more coverage: S3 Protection for object access, EKS Protection, Runtime Monitoring with an agent, Malware Protection for EC2 volumes and S3 uploads, RDS Protection for login activity and Lambda Protection for function network activity.

A finding type reads like a sentence: ThreatPurpose:ResourceType/ThreatFamily. UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS means instance role credentials were used from outside AWS, which is serious. Each finding has a numeric severity mapped to a label from low upward. Findings go to EventBridge, so you can alert or start automated containment.

  • Enable per Region; use a delegated admin account in an organisation
  • Practise with create-sample-findings
  • Suppression rules hide known, expected behaviour
  • Typical containment: revoke sessions, isolate the instance, snapshot for forensics

Inspector and Macie: weaknesses and sensitive data

Amazon Inspector scans EC2 instances, container images in ECR and Lambda functions for known vulnerabilities, listed as CVEs. It scans again when a new CVE is published or the software changes. Each finding gets an Inspector score that adjusts the base severity using context such as network reachability, so the same CVE can rank higher on an exposed instance.

Amazon Macie inventories your S3 buckets and reports their security posture, such as public access or sharing with other accounts. It finds sensitive data with managed data identifiers (common types like credit card numbers and credentials) and custom identifiers you define with a pattern. Automated sensitive data discovery samples objects across buckets; discovery jobs scan chosen buckets in depth. Because Macie charges by data inspected, start with sampling and target jobs where risk is highest.

  • Inspector fix: patch, rebuild the image, update the package
  • Macie fix: block public access, move or delete data, tighten the bucket policy
  • Both send findings to EventBridge and Security Hub CSPM

Security Hub CSPM: one place for posture

Security Hub CSPM runs controls from standards such as AWS Foundational Security Best Practices, CIS AWS Foundations Benchmark, PCI DSS and NIST. Most controls use service-linked AWS Config rules, so Config must be recording for them to work. It also receives findings from GuardDuty, Inspector, Macie and partner tools, and normalises them into the AWS Security Finding Format (ASFF).

Use a single administrator account and an aggregation Region to see every account and Region in one view. Each finding has a workflow status: NEW, NOTIFIED, SUPPRESSED or RESOLVED. Automation rules can change severity or suppress findings that match criteria, and EventBridge can send findings to a ticket system.

AWS has also released a newer AWS Security Hub that correlates signals into exposure findings and uses the OCSF format. Check which one your organisation uses before building automation, because the formats differ.

FlowFrom finding to fix
  1. 1
    Collect

    GuardDuty, Inspector, Macie into Security Hub CSPM

  2. 2
    Filter

    Suppress expected findings with clear rules

  3. 3
    Rank

    Severity, exposure, data sensitivity

  4. 4
    Assign

    Ticket with owner and due date

  5. 5
    Fix and verify

    Finding moves to RESOLVED after re-check

Prioritising a remediation list

Severity alone gives a poor order. A practical score combines four factors: severity of the issue, exposure (internet-facing or internal), sensitivity of reachable data, and whether there is evidence of active abuse. Active abuse, such as a GuardDuty finding of credentials used outside AWS, always goes to the top and is handled as an incident, not a backlog item.

Group findings by root cause. Fifty Inspector findings may come from one outdated base image; rebuilding that image closes all of them. Twenty failed controls may come from one IaC module; fixing the module stops new ones.

Set targets by priority, for example: incidents now, critical exposed issues within 2 days, high within 2 weeks, the rest in normal sprints. Track the count of open findings over time as a simple health metric.

  • Active threat: incident response, now
  • Critical and exposed: days
  • High or sensitive data: weeks
  • Fix the source (image, module), not each copy

Learn it in 5 short steps

About 30m each. Track them with a timer in your plan.

  1. 1
    Read a GuardDuty finding~30m
  2. 2
    Aggregate in Security Hub~30m
  3. 3
    Scan workloads with Inspector~30m
  4. 4
    Find sensitive data with Macie~30m
  5. 5
    Prioritise and remediate~30m

Key points

  • GuardDuty needs no agents for its foundational sources and does not change your resources.
  • Inspector scores each vulnerability, with extra weight when the resource is reachable from the internet.
  • Macie charges by data inspected, so scope jobs to the buckets that matter.
  • Security Hub CSPM uses AWS Config to run most of its controls, so Config must be recording.
  • Prioritise by severity, exposure and data sensitivity together, not by severity alone.

Key terms

Tap a card to flip it. 0/5 known

Examples

bash
# Generate harmless sample findings in a lab account
DET=$(aws guardduty list-detectors --query 'DetectorIds[0]' --output text)
aws guardduty create-sample-findings --detector-id "$DET" \
  --finding-types Recon:EC2/PortProbeUnprotectedPort

# List finding IDs to inspect
aws guardduty list-findings --detector-id "$DET" --max-results 5

Sample findings are marked as samples, so you can practise triage without a real attack.

Ranking five findings in the file-processing account

The list has: A) GuardDuty, credentials of the worker role used outside AWS; B) Inspector, critical CVE in a library in the public API container; C) Macie, uploads bucket has files with personal data and is not public; D) Security Hub CSPM control, S3 access logging disabled on a log bucket; E) Inspector, medium CVE on an internal build instance. Order: A first, as an incident (rotate and revoke the role sessions, find the leak). B second: critical and internet-facing; rebuild the image. C third: sensitive data, so confirm encryption and tight access, and add a lifecycle rule. E and D go into the normal backlog.

Practising triage with sample findings

Prerequisites: a lab account; GuardDuty has a 30-day free trial, then charges by data analysed. Step 1: enable GuardDuty in one Region. Step 2: create sample findings. Step 3: list them and read one; sample findings carry a sample flag in their details. Step 4: write a short triage note: what it means, affected resource, priority, first action. Cleanup: archive the samples and disable GuardDuty if you do not want charges after the trial.

bash
aws guardduty create-detector --enable
DET=$(aws guardduty list-detectors --query 'DetectorIds[0]' --output text)
aws guardduty create-sample-findings --detector-id $DET
IDS=$(aws guardduty list-findings --detector-id $DET \
  --max-results 3 --query 'FindingIds' --output text)
aws guardduty get-findings --detector-id $DET --finding-ids $IDS \
  --query 'Findings[].[Type,Severity]' --output table
# Cleanup: aws guardduty delete-detector --detector-id $DET

Quick reference

  • GuardDuty = threats, Inspector = CVEs, Macie = sensitive S3 data, Security Hub CSPM = controls plus aggregation
  • GuardDuty reads CloudTrail, VPC flow and DNS data itself; no log setup needed
  • Security Hub CSPM needs AWS Config recording for most controls
  • Rank by severity x exposure x data sensitivity; active abuse is an incident
  • Fix the root cause (base image, IaC module) to close many findings at once
  • Use a delegated administrator account to see all accounts in an organisation

Common mistakes

  • Enabling every service in every Region without a plan, then ignoring thousands of findings.
  • Treating a sample or expected finding as noise forever instead of writing a clear suppression rule.
  • Forgetting that each service has a free trial (often 30 days) and then a usage-based monthly charge.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1Which service reports that an instance is calling a known cryptocurrency mining domain?

Question 2

2Most Security Hub CSPM controls show no results. What should you check first?

Question 3

3Forty Inspector findings share the same base container image. What is the best fix?

Question 4

4Which finding should be handled as an incident rather than a backlog item?

0/4 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Match each problem to a service: unpatched OpenSSL in a container image; passport scans in a bucket; login to RDS from an unusual source; security group open to the world on port 22.

  2. Exercise 2medium

    Write a suppression rule policy for a GuardDuty finding that is expected in your lab (for example port probes on a honeypot instance tagged role=honeypot). Explain why it is safe.

  3. Exercise 3hard

    Design an automated response: when GuardDuty reports instance credential exfiltration for the worker role, contain it within minutes and notify on-call.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Do I need all four services?
Not on day one. GuardDuty and Security Hub CSPM give the widest coverage for the effort; add Inspector when you run instances, containers or functions, and Macie when S3 holds personal or regulated data.
Are these services free?
Each has a free trial, often 30 days, then charges based on usage such as events analysed, resources scanned or data inspected. Check the usage page in each console before the trial ends.
Will GuardDuty slow down my workload?
No for the foundational sources: it reads copies of logs independently. Runtime Monitoring uses an agent, which has a small footprint on the host.

Go deeper

ShareXLinkedInWhatsApp