Onam
Attack Path

Which of our findings could actually get us breached? Attack paths vs. misconfigurations

By Anup Yadav, Founder & CEO•June 24, 2026•Updated November 27, 2026•11 min read

Would rather we looked for you? We run a free one-time audit scan of one cloud account and go through the results with you. No charge, no commitment.

Free audit scan

Which of our hundreds of findings could actually get us breached? The ones that chain. An attacker rarely needs one Critical finding; they need three or four ordinary ones in a row that lead from the internet to your data. Map the chains, then fix the one link that breaks the most of them. Below: a five-step AWS path, the read-only check that finds its weakest link, and how to pick the break point.

Updated 27 November 2026: corrected the worked example (it now starts on an EC2 instance, which is what has an instance metadata service), added a copy-paste check, and brought the Onam section in line with current product facts.

A busy cloud estate carries hundreds of open posture findings at any given time. Security teams triage by severity, work through the Critical queue, and ship patches. Three months later, the finding count is roughly the same. The board asks why the environment is still at risk.

Severity scores do not tell you which findings lead to breaches. They tell you how bad one misconfiguration is on its own. Attackers rarely exploit misconfigurations one at a time. They chain them.

The finding that causes a breach is rarely the most severe finding on your list. It is the one that connects to five other findings in a path that reaches your most critical assets.

What an attack path is

An attack path is a sequence of exploitation steps that an attacker could take to move from an initial foothold to a target resource. Each step in the path exploits a specific misconfiguration or vulnerability. No single step needs unusual skill. Each one follows from the one before.

A typical AWS attack path might look like this:

  1. A web application on an internet-facing EC2 instance has an SSRF vulnerability. An attacker sends a crafted request that makes the server fetch a URL of the attacker's choosing.
  2. The SSRF reaches the EC2 Instance Metadata Service, which still accepts IMDSv1 requests, and retrieves temporary credentials for the instance role.
  3. The instance role has iam:PassRole permission on a deployment role used by the CI/CD pipeline, plus permission to create Lambda functions.
  4. Using iam:PassRole, the attacker creates a new Lambda function and assigns the deployment role, giving them pipeline-level permissions.
  5. The deployment role has s3:GetObject on the S3 bucket where customer PII exports are staged for the data warehouse ETL pipeline.

At step one, the attacker is an anonymous internet user. At step five, they are reading customer PII. None of the individual misconfigurations (IMDSv1 allowed, an overly permissive instance role, an unscoped PassRole) is rated Critical on its own. Together, they form a breach.

Find the cheapest link yourself. Step 2 is usually the one-line fix. List the instances that still accept IMDSv1, then require IMDSv2 on one after checking it makes no IMDSv1 calls (AWS's MetadataNoToken CloudWatch metric tracks them):

aws ec2 describe-instances --filters Name=metadata-options.http-tokens,Values=optional --query "Reservations[].Instances[].InstanceId" --output text
aws ec2 modify-instance-metadata-options --instance-id <instance-id> --http-tokens required --http-endpoint enabled

The first command is read-only; the second changes the instance. Sources: describe-instances (the metadata-options.http-tokens filter) and Modify instance metadata options for existing instances, both accessed 27 November 2026.

The attack path view in the Onam console (demo account)
The attack path view in the Onam console (demo account)

How chained findings combine into higher risk

Some findings, in combination, produce a risk far larger than the sum of their individual severity scores.

A concrete example: suppose you have an EC2 instance that is internet-facing (a High finding) running a web application with a known CVE in its web framework (a Medium finding). Neither finding is marked Critical. But the CVE provides remote code execution, and the internet-facing exposure means the instance can be reached directly. The combination is Critical: a direct RCE entry point with no network controls in between.

Add one more element: suppose the instance profile grants ec2:DescribeInstances and ssm:SendCommand across the entire account. Now the attacker who exploited the CVE can run commands on every EC2 instance in the account. Three Medium or High findings add up to an account-wide compromise.

Crown jewel path analysis

Not all attack paths matter equally. A path that reaches a development environment with synthetic test data is not the same as a path that reaches your production payment processor or customer data lake. Crown jewel path analysis focuses on the resources you care most about and on every path that leads to them.

In Onam, these are the resources a path can end at: data stores such as S3, RDS and DynamoDB, encryption keys, admin roles and similar high-value targets. Data classification labels from data security posture raise the impact of paths that reach sensitive stores. Those labels come from names, tags and schema by default, and from sampled contents where you have deployed Onam's DSPM scanner.

The result is a list of paths ranked by likelihood and impact, so the path to the customer data lake outranks the path to a test bucket.

How Onam implements attack path analysis

Onam's attack path engine is built on one security graph. Every cloud resource is a node: instances, roles, buckets, functions, security groups, networks and load balancers. Relationships between resources are typed edges derived from posture, identity, network, data and threat-detection evidence: an identity that can assume a role, a federation from another cloud, a security group rule that lets one workload reach another, a key that encrypts a store. Because the graph spans clouds, a path can start in one cloud and end in another. Each finding on a path carries a FAIR-style loss estimate, used for ranking: it is an estimate per finding, not a price for the whole route.

How Onam Attack Path works: evidence from IAM policies, network exposure, security-group rules, data access and threat detection goes into Onam Attack Path, which builds the security graph, keeps only confirmed edges, searches from entry points and scores each path by likelihood times impact. Routes from different entry points that share a resource meet at a choke point. The outputs are attack paths, choke points, path severity, MITRE ATT&CK on every hop, a fix per hop, and a graph rebuilt on every scan.
1Evidence in
  • IAM policiesWho can assume what
  • Network exposureWhat the internet reaches
  • Security-group rulesWhat is open, what is blocked
  • Data accessWho can read the data
  • Threat detectionMovement seen in logs
2Walk the graph
Onam Attack Path

Walks only what the evidence confirms

  1. 1Build the security graph
  2. 2Keep confirmed edges
  3. 3Search from entry points
  4. 4Score likelihood × impact

Every edge: confirmed · blocked · gap

3Find the routes

Two routes, one choke point

4What you get
  • Attack pathsEntry point to crown jewel
  • Choke pointsOne fix, many paths blocked
  • Path severityLikelihood × impact
  • MITRE ATT&CKTactic on every hop
  • Fix per hopA remediation step
  • Rebuilt every scanFixed routes disappear

A route a security group or policy blocks never becomes a path.

What it does not cover yet: AI services do not appear on attack paths.

A privilege escalation chain modelled as a graph of identities and permissions
A privilege escalation chain modelled as a graph of identities and permissions

Naming each step with MITRE ATT&CK

Naming each step with its MITRE ATT&CK technique gives engineers and auditors a shared, published vocabulary. In the path above, stealing credentials from the metadata service is T1552.005 (Unsecured Credentials: Cloud Instance Metadata API), using iam:PassRole to gain the deployment role's rights is commonly mapped to T1548.005 (Temporary Elevated Cloud Access), and reading the bucket is T1530 (Data from Cloud Storage). So you can tell an engineering team: "This is a five-step path from an internet-facing instance to customer data. Here is the one change that breaks it at step two."

What to fix first on an attack path: break the chain or harden the target

When you have an identified attack path, you have two remediation strategies. You can harden the target so it is harder to reach, or you can break the chain by removing a link the attacker needs.

Breaking the chain is almost always the right answer. Hardening the target (encryption, access logging, strict IAM policies on the database itself) is valuable, but it does not eliminate the path. If the chain is intact, a sufficiently motivated attacker will find a way to the end.

Finding the optimal break point means identifying the link that:

  • Has the lowest remediation cost. A one-line IAM policy change beats a network re-architecture.
  • Blocks the most paths at once. A single overly permissive role may appear in a dozen paths.
  • Has no compensating control already in place.
The best break point is usually the resource that appears in the most paths: one fix, many paths closed.

Making the case to engineering

The practical challenge in attack path remediation is organisational more than technical. A Medium severity finding does not motivate an engineering team to drop their sprint work. An attack path that demonstrates a five-step route from the internet to production customer data does.

That is what attack path visualisations are for. Show an engineer an interactive graph where each node is a resource they recognise and each edge is a permission they can check in the AWS console, and the priority is obvious. You are showing them the exact sequence an attacker would follow instead of asking them to trust a risk score.

So attack path analysis works as a communication tool as much as a CSPM feature. It turns cloud misconfiguration into plain statements: here is how you get breached, and here is what to change.

Frequently asked questions

What is an attack path in cloud security?

A sequence of steps an attacker could take from a foothold, such as an internet-facing service, to a valuable target such as a data store, where each step uses one misconfiguration, vulnerability or permission.

What is a toxic combination?

Findings that are moderate on their own but serious together, for example an internet-facing instance, a remote code execution CVE on it, and an instance role that can run commands across the account.

Should we fix the target or break the chain?

Break the chain, at the link that is cheapest to change and blocks the most paths. Hardening the target is still worth doing, but it leaves the path in place.

Try it on your own cloud

Start free. The free plan covers up to 25 units of cloud security, with API-based scanning only: posture (CSPM), identity and permissions (CIEM), data stores found through cloud APIs (DSPM checks, no content classification) and AI-SPM. Posture scanning connects through read-only cloud roles, the free plan deploys no agent or scanner, and no card is needed. Register, and the team emails you the login.

Start free · Book a demo

See this on your own cloud, free

The free plan covers up to 25 units of cloud security with read-only cloud API scanning. It deploys no agent or scanner and needs no card. Register, and the team emails you the login.