Sub topic 4
Reading GuardDuty findings
This chapter assumes you know what GuardDuty analyzes (CloudTrail, VPC Flow Logs, and DNS logs) and can read JSON. It covers the parts of a finding, how to read its type name, how severity works, and how to pull findings with the AWS CLI.
What a finding is
A finding is a record GuardDuty creates when its detection logic sees activity that looks malicious or unauthorized. Each finding describes what happened, which resource was involved, who or what acted, and how serious it is. GuardDuty updates an existing finding when the same activity repeats, instead of creating a new finding each time.
Knowing how to read a finding quickly decides whether you ignore it, fix something, or start an investigation.
Reading the finding type
The type field is a structured string with three parts:
ThreatPurpose:ResourceTypeAffected/ThreatFamilyName.DetectionMechanism!ArtifactThe first three parts are the most useful. The mechanism and artifact are optional and appear on some types.
| Part | Meaning | Example |
|---|---|---|
| Threat purpose | The stage or goal of the attack | `Recon`, `UnauthorizedAccess`, `Backdoor`, `CryptoCurrency`, `Trojan` |
| Resource type | The kind of resource affected | `EC2`, `IAMUser`, `S3`, `Kubernetes` |
| Threat family | The specific activity | `PortProbeUnprotectedPort`, `SSHBruteForce` |
Two examples from this tutorial:
Recon:EC2/PortProbeUnprotectedPortmeans an EC2 instance has a port open to the internet and something is probing it. The purpose is reconnaissance.UnauthorizedAccess:EC2/SSHBruteForcemeans someone is trying many credentials against SSH on an instance.
Read the purpose first to learn how far the attack has progressed. Reconnaissance is a probe. A Backdoor or CryptoCurrency finding means a resource may already be compromised, so it usually needs faster action.
Severity
Each finding has a numeric severity from 1.0 to 8.9. GuardDuty groups the numbers into bands:
| Range | Band | Typical meaning |
|---|---|---|
| 7.0 to 8.9 | High | The resource is likely compromised and being used for unauthorized purposes. Act immediately. |
| 4.0 to 6.9 | Medium | Suspicious activity that differs from normal behavior. Investigate soon. |
| 1.0 to 3.9 | Low | Attempted activity that did not succeed, such as a blocked probe. |
Severity is set per finding type, and can change when the finding is updated. It measures how likely the activity is malicious and how much it matters. It does not measure how important your resource is. A medium finding on your production database can matter more than a high finding on a throwaway test instance. Add that context yourself.
The cut-off of 7 in the later EventBridge example comes from this table.
Anatomy of a finding
A finding is a JSON document. This trimmed example shows the fields you read most often:
{
"accountId": "111122223333",
"region": "us-east-1",
"id": "a2b4c6d8e0f1234567890abcdef12345",
"type": "UnauthorizedAccess:EC2/SSHBruteForce",
"severity": 2,
"title": "198.51.100.7 is performing SSH brute force attacks against i-0abc123def4567890.",
"description": "198.51.100.7 is performing SSH brute force attacks against i-0abc123def4567890.",
"createdAt": "2026-11-26T17:02:11.000Z",
"updatedAt": "2026-11-26T18:40:52.000Z",
"resource": {
"resourceType": "Instance",
"instanceDetails": {
"instanceId": "i-0abc123def4567890"
}
},
"service": {
"serviceName": "guardduty",
"count": 14,
"eventFirstSeen": "2026-11-26T17:02:11.000Z",
"eventLastSeen": "2026-11-26T18:40:52.000Z",
"archived": false,
"action": {
"actionType": "NETWORK_CONNECTION",
"networkConnectionAction": {
"connectionDirection": "INBOUND",
"remoteIpDetails": { "ipAddressV4": "198.51.100.7" }
}
}
}
}The fields fall into four groups.
- Identity.
accountId,region, andidlocate the finding. Theidis what you pass toget-findings. - What happened.
type,title,description, andseveritydescribe the activity. - What was affected. The
resourceobject names the resource type and its details. Its shape depends onresourceType. An EC2 finding hasinstanceDetails. An IAM finding hasaccessKeyDetails. An S3 finding hass3BucketDetails. - Who acted and how.
service.actiondescribes the activity, and its sub-object depends onactionType. Common values areNETWORK_CONNECTION,AWS_API_CALL,DNS_REQUEST, andPORT_PROBE. The nestedremoteIpDetailsoractordetails identify the other party, including IP address, country, and ASN.
The service object also holds the timing and frequency fields. count shows how many times GuardDuty saw the activity. eventFirstSeen and eventLastSeen bound it in time.
A reading routine
Work through a finding in the same order each time.
- Read the type to learn the purpose and the resource kind.
- Check severity and count. A low severity finding with a high count can show persistence.
- Open resource to find the exact instance, user, key, or bucket.
- Open service.action to see the direction of traffic or the API call and its caller.
- Compare
eventFirstSeenwitheventLastSeento see how long it has been going on. - Decide: ignore, suppress, remediate, or investigate further.
Direction matters most for network findings. An INBOUND connection to an instance means something outside reached in. An OUTBOUND connection to a known malicious address means your resource reached out, which is the more worrying case.
Querying findings with the CLI
Listing returns only IDs. Use get-findings to retrieve the full documents. First, get the detector ID:
DETECTOR_ID=$(aws guardduty list-detectors --query 'DetectorIds[0]' --output text)List the IDs of high severity findings:
aws guardduty list-findings --detector-id "$DETECTOR_ID" --finding-criteria '{"Criterion":{"severity":{"Gte":7}}}'Then fetch the details of the first finding, and print only the fields you read first:
FINDING_ID=$(aws guardduty list-findings --detector-id "$DETECTOR_ID" --finding-criteria '{"Criterion":{"severity":{"Gte":7}}}' --query 'FindingIds[0]' --output text)
aws guardduty get-findings --detector-id "$DETECTOR_ID" --finding-ids "$FINDING_ID" --query 'Findings[0].{Type:Type,Severity:Severity,Count:Service.Count,Resource:Resource.ResourceType}'Note that CLI output uses capitalized names such as Type and Service, while the JSON in EventBridge events uses lowercase names such as type and service. Be careful with the casing when you copy a --query expression into code that reads events.
Common mistakes
- Treating severity as business priority. Severity reflects the activity, not your asset's value. Tag or classify critical resources and prioritize on both.
- Ignoring low findings. A repeated low finding, shown by a rising
count, can precede a successful attack. - Reading only the title. The title names an IP and a resource, but the
actionandresourceobjects explain how the activity happened. - Assuming a new finding for each event. Repeats update
countandupdatedAton the same finding, so watch for updates, not only new IDs. - Archiving without a rule. Manual archiving hides a finding once. If the same noise returns, create a suppression rule, covered in a later chapter.
Exercise
A finding has type CryptoCurrency:EC2/BitcoinTool.B!DNS, severity 8, and count of 3. Which resource type is affected, what is the threat purpose, and should you treat it as urgent?
Show answer
The affected resource type is EC2, and the threat purpose is CryptoCurrency. Severity 8 is in the high band (7.0 to 8.9), so the instance is likely compromised and being used to mine cryptocurrency or query a mining pool domain. Treat it as urgent. The !DNS suffix shows that GuardDuty detected it through DNS activity. A low count does not make it less urgent, because the count only shows how many times GuardDuty saw the activity so far.
Exercise
You run aws guardduty get-findings and find connectionDirection set to OUTBOUND in a network finding. Why does that change how you read it compared with INBOUND?
Show answer
With INBOUND, an outside party connected to your resource, which often means probing or an attack attempt. With OUTBOUND, your resource started the connection to the remote address. If that address is malicious, the resource may already be compromised and communicating with an attacker, so it needs faster investigation.