AWS penetration testing is not web or network pentesting with a different logo. The vulnerabilities that matter are mostly about identity. As the Pwned Labs Cloud Security Engineer Roadmap puts it, in the cloud there is no perimeter to defend, so what matters is the strength of the identities, the IAM users and roles, that are allowed to call the APIs. Attacking AWS comes down to who can assume what role, which permission quietly grants another, and where a credential ends up that should never have left the box.

This is the offensive slice of a bigger picture. If you are new to cloud security, the Pwned Labs Cloud Security Engineer Roadmap lays out the ten areas to learn in order, from Linux and IAM through to logging and incident response. This article goes deeper on the attacker's view of the identity and access layer that sits at the center of it, and it agrees with that roadmap on the one thing that matters most: foundations first, then offense.

Get the fundamentals before the exploits, in order

You cannot attack what you do not understand, and the order matters. The roadmap is explicit about it: get comfortable on the Linux command line, learn one cloud provider properly before spreading yourself across all three, and internalize the core principles, the shared responsibility model, defense in depth and least privilege, before you try to break anything. Most publicly reported cloud incidents live on the customer side of that shared responsibility line, which is exactly the ground a pentester works.

For AWS specifically, the services worth knowing first are IAM, EC2, S3 and ECS, because they cover identity, compute, storage and containers, which is most of what an attacker will touch. Spend real time on how AWS identity works: IAM users, roles, policies, and the difference between an identity policy and a resource policy. Understand how sts:AssumeRole and trust policies let one principal become another, and how temporary credentials (the ones starting with ASIA) differ from long-term keys (AKIA). Most AWS privilege escalation is just these mechanics used in an order the owner did not intend, and least privilege is the control that closes most of it: the gap between the permissions a role is granted and the ones it actually uses is usually the fastest way in.

Set up your own account, turn on CloudTrail, and watch what your own actions log. Seeing the trail an action leaves is the fastest way to understand both attack and detection.

Learn to enumerate before you escalate

The first job on any AWS target is working out what the credential you hold can actually do. Learn to enumerate identity and permissions from a given set of keys, list what is reachable across S3, IAM, Lambda, EC2 and secrets stores, and read a policy to spot the dangerous grant. aws sts get-caller-identity is where every session starts. Scripting is how this scales, which is why the roadmap puts automation ahead of the attack techniques: Python with the Boto3 SDK is the standard way to interact with AWS, and Pacu is the framework most people reach for to automate enumeration and escalation paths. Tools like ScoutSuite and Prowler help with posture. Learn the manual aws CLI steps first so the tools are not magic.

Focus on the attack paths that come up for real

A few patterns show up again and again, and each maps to an area the roadmap covers from the defensive side. They are worth drilling until they are second nature:

  • Public S3 and leaked credentials (data security). Open buckets, keys committed to code or baked into a static site, and the account ID disclosure that public resources leak. When a bucket holds keys or tokens, a misconfiguration stops being a data issue and becomes initial access.
  • IAM privilege escalation (identity). iam:PassRole combined with a service that runs with a role, iam:CreatePolicyVersion, attaching a policy to yourself, and the handful of other permissions that quietly mean "admin."
  • The instance metadata service. Reaching IMDS from an SSRF or from on the box to steal an EC2 role's credentials, and why IMDSv2 matters.
  • Role chaining. Hopping from role to role across accounts through over-trusting trust policies.
  • Network and lateral movement (network security). Over-permissive security groups, exposed services, and the paths that open up once a credential is in hand.

For each one, the discipline is the same: do not stop at "the call was accepted." Follow it to the point where something you can observe changes, and capture that.

Practice against real environments

AWS pentesting is a hands-on skill, so the only way to build it is to attack real infrastructure in a safe setting. This is the build, break and fix approach the roadmap is built around. Good free starting points include flaws.cloud and flaws2.cloud for a guided tour of common mistakes, and CloudGoat for scenarios you deploy yourself. Pwned Labs has free hands-on AWS labs that run on live cloud infrastructure, which is a low-friction way to get reps in without building everything from scratch.

When you want a structured path from fundamentals to full attack chains with the defensive side alongside, the Pwned Labs Amazon Cloud Attack and Defense bootcamp (ACRTP) is built around exactly these attack paths and certifies with a hands-on exam.

A suggested order

  1. Build the foundations the roadmap sets out: Linux, one cloud provider (AWS), and the core security principles.
  2. Learn IAM, roles, trust policies and temporary credentials cold.
  3. Practice enumerating permissions from a given credential.
  4. Work S3 and credential-exposure scenarios end to end.
  5. Drill IAM privilege escalation, PassRole first.
  6. Add IMDS credential theft and role chaining.
  7. Learn what each of these leaves in CloudTrail, so you can detect as well as exploit.

The defensive and engineering half of all this, logging and monitoring with CloudTrail, GuardDuty and Security Hub, and incident response, is where the blue-team counterpart lives, and the strongest AWS pentesters understand both. The tooling will change. The underlying question, who can do what and how an attacker turns that into more, does not. Learn that and the rest follows.