AWS Builder Center
One Alert Isn’t the Attack: Correlating AWS Threats

One Alert Isn’t the Attack: Correlating AWS Threats

Learn how CloudTrail, GuardDuty, and context turn isolated AWS alerts into a multi-stage attack story a SOC analyst can investigate

A security alert rarely tells the whole story.
Imagine receiving an alert that an AWS identity called an API from an unfamiliar IP address.
Is that an attack?
Maybe.
But it could also be a developer working from a new location, a legitimate automation job, or a temporary infrastructure change.
Now imagine something else happens five minutes later.
The same identity begins running multiple  List  and  Describe  API calls across several AWS services.
Then some requests return  AccessDenied .
Shortly afterward, unusual data movement appears.
Individually, each event might look relatively weak.
Together, they begin to tell a very different story.
This is one of the most important lessons I am learning about cloud security:
A single alert is a signal. A sequence of related alerts can become an investigation.
In this article, I will look at how I would approach a possible multi-stage AWS attack from a SOC analyst perspective using services such as Amazon GuardDuty and AWS CloudTrail.

1. Start With the First Signal

Suppose the first event involves an IAM identity behaving differently from normal.
Perhaps the identity makes an AWS API request from an unfamiliar source.
That alone does not prove malicious activity.
A SOC analyst should avoid immediately jumping from:
“This is unusual.”
to:
“This is definitely compromised.”
Instead, I would start gathering context.
I would ask:
  • Which IAM identity performed the action?
  • What API call was made?
  • Where did the request originate?
  • Which AWS Region was involved?
  • Is this behavior normal for the identity?
  • What happened immediately before and after it?
The goal is not simply to decide whether one event looks suspicious.
The goal is to understand whether the event belongs to a larger sequence.

2. Look for Reconnaissance

Attackers who gain access to cloud credentials may not immediately know what those credentials can access.
They often need to explore.
That exploration can create useful telemetry.
For example, an identity might suddenly begin calling APIs such as:
ListBuckets
DescribeInstances
ListUsers
ListRoles
ListSecrets
DescribeSecurityGroups
These calls are not inherently malicious.
Administrators and applications legitimately use them.
What matters is the context.
If an application that normally performs one specific task suddenly begins enumerating several unrelated AWS services, that behavior deserves attention.
The analyst should ask:
Why is this identity suddenly trying to understand the environment?
That is where baseline behavior becomes extremely useful.
Security monitoring is not only about identifying technically dangerous API calls.
Sometimes the strongest signal is simply:
This identity has never behaved like this before.

3. AccessDenied Can Be Useful Evidence

Failed actions are easy to ignore.
If an attacker tries to perform an AWS action and receives  AccessDenied , no resource was changed.
So why care?
Because failed requests can reveal attacker intent.
Imagine a compromised identity attempts:
ListSecrets
GetSecretValue
CreateUser
AttachUserPolicy
StopLogging
Several attempts fail because the IAM identity does not have enough permission.
From a prevention perspective, least privilege has done its job.
But from an investigation perspective, those failed calls are extremely interesting.
They tell us what someone was trying to do.
This is why I would not investigate only successful API activity.
I would also look for clusters of denied requests, especially when they appear alongside other unusual behavior.
A sudden burst of  AccessDenied  events across multiple AWS services could suggest that someone is probing the boundaries of a compromised identity.

4. Use AWS CloudTrail to Build the Timeline

Once the activity appears suspicious, I would begin constructing a timeline with AWS CloudTrail.
CloudTrail records AWS API activity and provides important investigation details such as:
  • The API action
  • Timestamp
  • AWS Region
  • Identity involved
  • Source IP address
  • User agent
  • Request information
  • Resources involved
  • Success or failure information
Instead of looking at isolated events, I would arrange them chronologically.
For example:
10:02 - GetCallerIdentity
10:04 - ListBuckets
10:05 - DescribeInstances
10:06 - ListRoles
10:07 - GetSecretValue → AccessDenied
10:08 - CreateUser → AccessDenied
10:11 - Unusual data access
Now the activity is easier to interpret.
What initially looked like several unrelated API requests begins to resemble:
Credential validation → discovery → permission probing → attempted access
That is much more useful than treating every event as a separate alert.

5. Ask What Changed

The next thing I would investigate is whether the suspicious identity successfully changed anything.
This could include:
  • Creating new IAM users
  • Creating additional access keys
  • Attaching IAM policies
  • Modifying security groups
  • Launching EC2 instances
  • Changing S3 bucket policies
  • Modifying logging configurations
  • Creating persistence mechanisms
A particularly important question is:
Did the attacker create another way back into the environment?
Deleting one compromised credential is not enough if another credential was created during the incident.
For example, imagine CloudTrail shows:
CreateUser
CreateAccessKey
AttachUserPolicy
That could indicate an attempt to establish persistence.
The investigation should therefore move beyond the original compromised identity.
We need to determine what changed because of that identity.

6. Add Amazon GuardDuty to the Investigation

This is where Amazon GuardDuty becomes especially useful.
GuardDuty continuously analyzes AWS telemetry to detect suspicious and potentially malicious activity.
Instead of requiring analysts to manually recognize every unusual pattern, GuardDuty can generate findings that point toward activity worth investigating.
But I would still avoid looking at each GuardDuty finding independently.
The more useful question is:
Do several findings belong to the same attack?
AWS GuardDuty Extended Threat Detection is designed around this idea.
Rather than treating every signal separately, it can correlate related activity into attack sequence findings when the combined evidence becomes significant.
That matches how an analyst should think.
An unfamiliar source IP might be weak evidence.
Reconnaissance might be another weak signal.
Permission probing might add more evidence.
Suspicious resource access adds another layer.
When those events belong to the same identity and occur within a meaningful timeframe, confidence increases.

7. Context Changes Severity

Not every suspicious-looking event deserves the same severity.
Imagine two identities.

Identity A

It can only read objects from one non-sensitive S3 bucket.

Identity B

It has broad access across IAM, EC2, S3, and Secrets Manager.
Both identities suddenly begin behaving unusually.
Technically, the same detection might trigger for both.
But the potential impact is completely different.
That is why I would combine threat signals with context such as:
  • IAM permissions
  • Resource sensitivity
  • Internet reachability
  • Known vulnerabilities
  • Sensitive data exposure
  • Business importance
This is also where newer AWS security capabilities become interesting.
GuardDuty Extended Threat Detection can use additional indicators such as vulnerability, reachability, misconfiguration, sensitive data, and malicious package information when building attack sequences.
That provides more context around what an attacker might actually be able to reach or exploit.
Security teams should not only ask:
“How suspicious is this activity?”
They should also ask:
“If this activity is malicious, how bad could the outcome be?”

8. Determine the Blast Radius

Once I believe a compromise may have occurred, I would determine the blast radius.
I would review what the affected identity could access and what it actually touched.
Questions might include:
  • Which S3 buckets could it access?
  • Could it retrieve secrets?
  • Could it modify IAM?
  • Could it launch new infrastructure?
  • Could it change networking controls?
  • Could it disable logging?
  • Could it access databases?
  • Did it interact with sensitive resources?
There are two different concepts here:
Potential blast radius — what the permissions allowed.
Observed blast radius — what the evidence shows actually happened.
Both matter.
An identity may technically have permission to access 20 services while the attacker only interacted with three.
The response team still needs to understand the wider potential exposure.

9. Contain the Identity

If there is sufficient evidence of credential compromise, containment becomes a priority.
Depending on the identity and environment, this could involve:
  • Disabling compromised access keys
  • Revoking active sessions where appropriate
  • Restricting permissions
  • Isolating affected workloads
  • Blocking known malicious indicators
  • Removing unauthorized persistence
  • Protecting affected resources
Containment should also avoid destroying useful evidence unnecessarily.
Security teams still need enough information to reconstruct what happened.
This is why incident response needs both speed and discipline.

10. Search for Persistence

After containing the original identity, I would specifically investigate whether the attacker attempted to maintain access.
For AWS environments, I would look for activity such as:
CreateUser
CreateAccessKey
CreateLoginProfile
AttachUserPolicy
PutUserPolicy
CreateRole
UpdateAssumeRolePolicy
I would also review unusual changes involving Lambda functions, EC2 instances, resource policies, and automation mechanisms.
The important question is:
If I disable the original credential, can the attacker still get back in?
If the answer is yes, the incident is not contained.

11. Look Beyond Identity

Cloud attacks do not necessarily remain IAM incidents.
A compromised identity can become the starting point for activity across storage, compute, networking, databases, and other AWS services.
For example, the sequence might evolve into:
Compromised credential
↓
Environment discovery
↓
Permission probing
↓
S3 access
↓
Sensitive data discovery
↓
Data transfer
Or:
Compromised credential
↓
EC2 discovery
↓
Security group modification
↓
Workload access
↓
Persistence
This is why cross-service correlation matters.
The incident may begin with IAM.
The impact may occur somewhere completely different.

12. Think in Attack Stories

This is probably the biggest lesson for me.
A SOC analyst should be able to turn technical events into a security story.
Instead of reporting:
GuardDuty generated three findings and CloudTrail showed several API calls.
I would want to explain:
A previously low-activity IAM identity began making requests from an unfamiliar source. The identity performed reconnaissance across several AWS services and generated multiple denied requests while probing permissions. It later accessed a resource outside its normal behavior. The credential was contained and the environment was reviewed for persistence and additional affected resources.
That explanation communicates:
What happened.
Why it matters.
What evidence supports it.
What we did about it.
That is far more useful than repeating alert names.

Thinking Like a SOC Analyst

If I were working this incident in a SOC, I would structure my investigation around five questions.

Who?

Which IAM user, role, workload, or session performed the activity?

What?

Which AWS API calls and resource actions occurred?

When?

What is the complete sequence of events?

Where?

Which source IPs, AWS Regions, services, and resources were involved?

Why?

Does the behavior match legitimate activity, or does the sequence indicate compromise?
Then I would add one more:

What next?

What containment, remediation, monitoring, or escalation is required?
The technical investigation matters.
But a SOC analyst also needs to turn that investigation into a decision.

Final Takeaways

Cloud attacks rarely arrive as one perfectly clear alert.
They often appear as a collection of smaller signals.
An unusual identity request.
A burst of reconnaissance.
Several denied API calls.
A configuration change.
Unexpected resource access.
Individually, those events may not tell us enough.
Together, they can reveal an attack sequence.
That is why services such as AWS CloudTrail and Amazon GuardDuty become much more powerful when analysts stop treating findings as isolated notifications and begin correlating them with identity, resource, permission, and behavioral context.
My biggest takeaway is simple:
Do not ask only whether an alert is suspicious.
Ask:
What happened before it?
What happened after it?
And do those events tell a bigger story?
That is the difference between watching alerts and actually investigating threats.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article