CLOUD CONCEPT

Attack Path Analysis

Attack Path Analysis examines how an attacker could move, or actually moved, through connected identities, permissions, workloads, and data to reach a target.

Cloud Concepts Hub →

What is Attack Path Analysis

Individual vulnerabilities and alerts rarely explain an entire compromise; attack path analysis connects them into a sequence of access and actions. Engineers use it proactively to break exploitable routes and during incident response to reconstruct events, identify enabling conditions, and determine the scope of compromise.

Attack path analysis treats an environment as connected resources and relationships rather than isolated security findings. Resources include identities, virtual machines, applications, secrets, and data stores. Relationships describe capabilities such as reaching a network endpoint, assuming a role, retrieving a credential, or modifying a workload. A path connects an entry point to an objective, such as stealing sensitive records or obtaining administrative access.

The distinction between a possible path and an observed path is essential. Configuration analysis can show that a compromised workload might access a secret and use it to reach a database. That does not prove an attacker performed those actions. Incident investigation must corroborate each significant step using audit events, authentication records, network metadata, application logs, or forensic artifacts. Record confirmed facts separately from hypotheses and document gaps in visibility.

In the cloud, paths often cross identity and management interfaces rather than following network connections alone. An attacker holding a stolen API credential might assume a cross-account role and read object storage without accessing a virtual machine. Effective access depends on the applicable identity policies, resource policies, trust policies, organization controls, session restrictions, and explicit denies. Network reachability by itself does not establish authorization, and a permissive policy by itself does not establish successful exploitation.

For example, an alert might identify unusual activity by a workload role. Investigators can trace the role session to its originating instance, examine preceding application activity, and correlate subsequent role assumptions and storage access. On AWS, CloudTrail events can help reconstruct API activity, while Amazon Detective can help explore relationships and behavior around involved entities. Object-level access may require CloudTrail data events to have been configured; missing events must not be interpreted as proof that access never occurred.

For root cause analysis, work backward from the detected action to the initial access mechanism and enabling control failures, then forward to identify affected resources and persistence. A vulnerable application might explain credential exposure, an overly permissive role might explain further access, and inadequate monitoring might explain delayed detection. The first alert is not necessarily the first malicious action, and the identity recorded in an event is not necessarily the human responsible.

Containment should interrupt verified or high-risk paths while preserving evidence where feasible. Actions might include isolating a workload, restricting role trust, rotating exposed secrets, and invalidating affected sessions where supported. Disabling a long-term access key does not necessarily invalidate temporary credentials already issued from it. Preserve logs and relevant workload evidence, record response changes, and validate that remediation blocks the route without unnecessarily disrupting production.

The main trade-offs are analysis cost, telemetry coverage, and confidence. Detailed logging and relationship modeling improve investigations but increase storage, processing, and operational effort. Configuration changes can make a historical path differ from the current environment, while shared credentials and incomplete logs can obscure attribution. Prioritize paths by feasible access, asset sensitivity, and observed behavior rather than by vulnerability severity alone, and treat attack path analysis as an input to root cause analysis rather than a substitute for it.

Key aspects of Attack Path Analysis

Attack path analysis combines relationship modeling, event correlation, and evidence validation to identify, reconstruct, and interrupt routes to sensitive resources.

Connected access modeling

Map relationships among identities, permissions, workloads, networks, secrets, and data. Evaluate complete routes to sensitive objectives rather than treating each finding independently.

Possible versus observed paths

Separate configuration-based exposure from evidence of actual attacker activity. Mark each step as confirmed, inferred, or unverified so that response decisions reflect the strength of the evidence.

Temporal and identity correlation

Correlate timestamps, role sessions, source addresses, resource identifiers, and authentication records across evidence sources. Account for temporary credentials and configuration changes when reconstructing the sequence.

Root cause and scope investigation

Trace backward to initial access and enabling control failures, then forward to affected resources and persistence. Distinguish the triggering alert from the underlying cause and from subsequent impact.

Targeted path interruption

Choose containment and remediation actions that remove critical access relationships, such as excessive permissions or exposed credentials. Preserve evidence where feasible and verify that alternate routes do not remain.

Coverage and confidence management

Identify missing logs, unsupported relationships, and uncertain assumptions explicitly. A path that is absent from a model or investigation is not necessarily impossible or unused.

Cloud services for Attack Path Analysis

GuardDuty findings and Security Hub aggregation can establish an investigation starting point. Amazon Detective helps explore involved entities and behavioral relationships, while CloudTrail supplies API activity records needed to validate individual steps. AWS Config adds historical configuration context to explain which access relationships existed during the incident. Together, these services support a defensible timeline and identification of enabling control failures, but they do not guarantee a complete reconstruction. Recording scope, data-event configuration, retention, supported resource coverage, and application-level evidence determine which conclusions investigators can substantiate.

Amazon Detective image Amazon Detective

Helps investigate security findings by presenting relationships and historical behavior involving identities, IP addresses, and workloads. Investigators use these views to explore possible sequences and contributing causes, while validating conclusions against supporting evidence.

Open Amazon Detective →
AWS CloudTrail image AWS CloudTrail

Provides records of supported API activity for reconstructing actions, role assumptions, and resource access. Relevant data events must be configured for visibility into operations such as object-level access; event availability and retention determine how far an investigation can trace a path.

Open AWS CloudTrail →
Amazon GuardDuty image Amazon GuardDuty

Produces threat findings that can provide starting points for investigating compromised credentials, suspicious workloads, or unusual access. Findings identify activity requiring investigation but do not, by themselves, prove an entire attack sequence or its root cause.

Open Amazon GuardDuty →
AWS Config image AWS Config

Records configuration history and relationships for supported resources within its configured recording scope. Investigators can use that history to assess whether an access-enabling configuration existed at the time of an incident rather than relying only on the current state.

Open AWS Config →
AWS Security Hub image AWS Security Hub

Aggregates security findings from supported AWS services and integrated products, helping investigators correlate issues involving the same resources. It provides investigation context, but aggregated findings still require validation against activity records and configuration evidence.

Open AWS Security Hub →