Skip to main content
A steel testing machine the length of a hall, its screw columns and loading head running on rails

AWS penetration testing: Tested untilit gives.

AWS penetration testing by people, not just scanners: IAM privilege escalation, S3 policies, instance metadata, containers, and the web and API layer, under AWS policy. A standard scope takes three weeks, retest included.

Scope My AWS Pen Test

What the engagement commits to

  • 4 hoursto tell you about a confirmed critical finding
  • 2 weeksof testing for one stack in one account
  • 1 weekfor the report and retest
  • $0for the retest once you have fixed it

Scope your test

Switch on what you want attacked. The scope shows the checks, the length and how often you need to repeat it.

Environment
DDoS or stress testing
Test scope11 checks

3 weeks

2 weeks of testing, 1 week to report and retest

At least once a year, as evidence for CC4.1.

  1. Privilege escalation pathsIAM and trust
  2. Bucket policy and ACL evaluationS3 and storage
  3. SSRF chained to IMDSApplication and API

No AWS approval needed: customer resources on permitted services can be tested as is.

Scope my AWS pen test
A Bureau of Standards tester setting a dinner plate under a pendulum impact tester, a stack of plates beside it

Scanners list CVEs. Testers follow the chain.

A scanner sees an SSRF bug and an IMDSv1 instance as two medium findings. A tester sees one path from your web form to your data, and proves it.

OWASP Testing Guide v4
Web application coverage.
OWASP API Security Top 10
REST and GraphQL testing.
PTES
The overall structure of the engagement.
NIST SP 800-115
Technical testing method.
MITRE ATT&CK Cloud Matrix
AWS attacker tradecraft.

3 weeksfrom scoping call to report, retest after

Most clients run the full test on staging and a narrower check on production. Destructive tests stay off production; disruptive ones wait for a maintenance window.

  1. Week 0ScopingAccounts, apps and APIs in scope, test type, kill-switch contact.
  2. Weeks 1–2TestingRecon, IAM escalation, web, API, containers, serverless, network.
  3. Week 3ReportingCVSS plus reachability, AWS-specific fixes, attack narrative.
  4. After fixesRetestEach finding re-verified, a clean report for the auditor.
Any boxblack, gray or white, chosen at scoping
Kill switcha hotline open for the whole test
Out of bandcritical findings never wait for the report

Seven findings that keep coming back

Each one is a configuration or a trust decision, not a CVE, which is why scanners rarely chain them.

  1. Lambda execution roles with iam:* or s3:*
  2. IMDSv1 still enabled on legacy instances
  3. Bucket policies that let any AWS account read
  4. AssumeRole trust with no sts:ExternalId
  5. Task role credentials reachable from a container
  6. JWTs accepted without an audience check
  7. Pipeline roles with admin, open to any PR

What AWS lets us test

Your resources
Tested without asking AWS first, on the permitted services.
DDoS and flooding
Needs advance approval through the AWS form. We handle it.
AWS itself
Data centers, hypervisors and AWS services as a service are never tested.

The test your auditor asked for

Every finding is mapped to the control it affects, so the same report serves the audit and the sprint.

FrameworkRequirementWhat you hand over
PCI DSS 4.0Req 11.4.1–11.4.6Annual external and internal test, CDE segmentation testing
SOC 2 Type IICC4.1, CC7.1Annual independent testing evidence
ISO 27001:2022A.5.30, A.8.34Periodic technical compliance verification
HIPAA§164.308(a)(8)Documented technical evaluation
NIST CSF 2.0DE.CM-08Penetration test report and findings

A report engineers can act on

A laboratory photometer bench with lamps, screens and rows of bulbs waiting to be tested
Executive summary
One or two pages for leadership.
Technical findings
CVSS, reachability and business impact, with proof-of-concept steps.
AWS-specific fixes
The exact IAM policy, bucket policy or code change.
Compliance mapping and evidence
Findings tied to controls, raw artifacts for the auditor.

Related security work

The full AWS pen testing guide

What is AWS Penetration Testing?

AWS penetration testing is an authorized, simulated attack against your AWS environment that goes beyond automated scanning to find architectural flaws, IAM privilege-escalation paths, and business-logic gaps. Per the AWS customer support policy, customers may pen-test eight permitted services without prior approval, including EC2, RDS, CloudFront, Aurora, API Gateway, Lambda, Lightsail, and Elastic Beanstalk environments.

What an AWS Penetration Test Actually Tests

Most “AWS pen tests” are web app pen tests with the application happening to run on AWS. That’s necessary but not sufficient. A real AWS pen test attacks the cloud control plane and data plane in ways scanners cannot:

IAM and Trust

  • Privilege escalation paths — can an entry-level IAM principal escalate to admin via service trust chains (Lambda → CloudFormation → IAM)?
  • Trust policy abuse — overly broad AssumeRole trust policies allowing principals from unintended accounts
  • Permission boundary bypass — boundary configurations that create false security
  • Inline policy creep — privilege accumulation that automated drift tools miss

S3 and Storage

  • Bucket policy and ACL evaluation — buckets that pass Block Public Access but still leak via signed URLs or cross-account principals
  • Bucket enumeration — discovering bucket names from CloudFront, public source code, or DNS
  • Object-level permissions — bucket-level deny that an object-level grant overrides

Instance Metadata Service

  • IMDSv1 detection and exploitation — instances still allowing IMDSv1 are exploitable via SSRF
  • IMDSv2 token weaknesses — improper token handling in application code
  • Container metadata exploitation — ECS Task Metadata endpoint reachable from compromised containers

Compute and Containers

  • ECS task role abuse — over-permissive task roles allowing pivot beyond the container
  • EKS RBAC weaknesses — Kubernetes ServiceAccount tokens with broader IAM mappings than required
  • Lambda execution role chains — Lambda functions with permissions to update their own code, enabling persistence
  • CodeBuild/CodePipeline exploitation — pipelines with privileged roles and writable triggers

Application Layer (with AWS Awareness)

  • SSRF chained to IMDS — a web app SSRF that reaches the instance metadata service to extract credentials
  • WAF bypass techniques — encoded payloads, oversized requests, rule logic gaps
  • API Gateway authorization bypass — Cognito JWT misuse, custom authorizer flaws
  • Bedrock prompt injection — for AI features built on AWS Bedrock, prompt injection that exfiltrates training context

Methodology

Our testing follows industry-standard methodologies:

  • OWASP Testing Guide v4 for web application coverage
  • OWASP API Security Top 10 for API testing
  • PTES (Penetration Testing Execution Standard) for overall structure
  • NIST SP 800-115 for technical methodology
  • MITRE ATT&CK Cloud Matrix for AWS-specific attacker tradecraft

Manual testing is the differentiator. Automated scanners (Burp, Nessus, ScoutSuite, Pacu in autonomous mode) run as the starting point, not the finish line. Manual exploitation finds business logic flaws, chained exploits, and architectural weaknesses no scanner is going to identify.

Engagement Process

Phase 1 — Scoping (Week 0)

  • Application and AWS environment inventory
  • In-scope and out-of-scope clarification (which accounts, which apps, which APIs)
  • Test type selection (black box / gray box / white box)
  • Production vs staging strategy
  • AWS notification requirements (DDoS simulation, etc.)
  • Emergency contact and kill-switch protocol

Phase 2 — Testing (Weeks 1–2)

  • External reconnaissance (DNS, public assets, exposed services)
  • AWS-specific reconnaissance (Pacu, ScoutSuite enumeration with appropriate credentials)
  • Web application and API testing
  • IAM and cross-service privilege escalation testing
  • Container and serverless testing
  • Network testing (VPC exposure, security group analysis)
  • Continuous critical-finding notification (4-hour SLA)

Phase 3 — Reporting (Week 3)

  • Executive summary
  • Technical findings (CVSS + reachability + business impact)
  • Compliance mapping
  • Remediation guidance (AWS-specific)
  • Attack narrative

Phase 4 — Retest (Optional, after remediation)

  • Re-verification of each finding
  • Clean retest report for audit deliverables
  • Confirmation of newly introduced controls

Compliance Alignment

FrameworkRequirementOur pen test deliverable
PCI DSS 4.0Req 11.4.1–11.4.6 (penetration testing)Annual external + internal test, segmentation testing for CDE
SOC 2 Type IICC4.1 (control testing), CC7.1 (monitoring)Annual independent testing evidence
ISO 27001:2022A.5.30 (ICT readiness), A.8.34 (technical review)Periodic technical compliance verification
HIPAA§164.308(a)(8) (periodic evaluation)Documented technical evaluation
NIST CSF 2.0DE.CM-08 (vulnerabilities tested)Penetration test report and findings

Common Findings — What We Actually Find

After hundreds of AWS pen tests, the recurring critical findings:

  1. Overprivileged Lambda execution roles — Lambda functions with iam:* or s3:* permissions far beyond what they need, exploitable if the function code can be modified or if the function processes attacker-controlled input
  2. IMDSv1 still enabled — even with IMDSv2 best practices documented, real environments often have legacy instances with IMDSv1 enabled, exploitable via SSRF
  3. S3 bucket policies allowing cross-account read — buckets with Principal: "*" that pass Block Public Access checks but still allow any authenticated AWS principal to access them
  4. Cross-account AssumeRole with weak conditions — AssumeRole trust policies with no sts:ExternalId and overly broad source account lists
  5. Container metadata exploitation — compromised application containers reaching ECS Task Metadata to extract task role credentials
  6. API authentication bypass — JWT validation flaws, missing audience checks, expired tokens accepted
  7. CloudFormation pipeline privilege escalation — pipeline roles with admin permissions, exploitable by anyone who can submit a PR

Get Started

If you’re approaching a SOC 2 audit, a PCI DSS assessment, or an enterprise procurement that asks for “evidence of penetration testing in the last 12 months” — we can help. We deliver pen tests that satisfy auditors, give engineering teams actionable guidance, and uncover the AWS-specific findings that matter.

Scope My AWS Pen Test →

Questions before a pen test

Do I need permission from AWS to penetration test my own AWS environment?

Mostly no — AWS permits customers to perform security assessments and penetration testing of their own AWS resources without prior approval, under the AWS Customer Support Policy for Penetration Testing. The exceptions: DDoS simulation testing, port flooding, protocol flooding, and network stress testing all require advance approval through the AWS Vulnerability Reporting form. We handle the approval process when applicable. Testing of AWS infrastructure itself (data centers, hypervisors, AWS services as a service) is never permitted.

How is AWS penetration testing different from a regular pen test?

Regular pen tests focus on web apps, networks, and operating systems. AWS pen tests add a cloud-specific attack surface: IAM trust relationships (overly permissive AssumeRole), S3 bucket policies (public read accidentally enabled, condition keys missing), instance metadata service (IMDSv1 still enabled, leaking credentials via SSRF), KMS key policies (cross-account access too broad), Lambda execution roles (over-privileged, allowing privilege escalation via writable code), and AWS service-to-service trust (CloudFormation, CodePipeline, EventBridge) that can be abused for lateral movement. Tools like Pacu and ScoutSuite are AWS-specific; competent testers use them alongside manual review.

How long does an AWS penetration test take?

A standard scope (one application stack, one AWS account, web + API + infrastructure) takes 2 weeks for testing plus 1 week for reporting and retest. Complex environments (multi-account, microservice architectures, EKS, multiple business logic flows) take 3–4 weeks. We scope based on environment complexity, not flat per-application pricing — a 50-microservice EKS deployment is not the same effort as a 3-Lambda serverless app.

What deliverables do I get?

A penetration test deliverable package includes: (1) Executive summary (1–2 pages) for leadership, (2) Technical findings report with each finding documented at CVSS + reachability + business impact, with full proof-of-concept reproduction steps, (3) Remediation guidance specific to AWS — exact IAM policy changes, exact bucket policy fixes, exact code patches, (4) Compliance mapping (which findings affect which SOC 2 / ISO 27001 / HIPAA / PCI controls), (5) Attack narrative documenting the pathways tested and which succeeded, (6) Retest report after remediation confirming clean status, (7) Auditor-ready evidence package with raw test artifacts.

Do you support PCI DSS, SOC 2, HIPAA penetration test requirements?

Yes. Our pen tests are explicitly designed to satisfy: PCI DSS 4.0 Requirement 11.4 (annual external + internal pen test, methodology following industry-accepted approaches), SOC 2 Type II evidence for CC7.1 (monitoring) and CC4.1 (control testing), HIPAA §164.308(a)(8) (periodic technical evaluation), and ISO 27001 A.5.30 / A.8.34 (technical compliance review and ICT readiness). Each finding is mapped to the applicable control during reporting.

What if you find a critical vulnerability mid-test?

We notify within 4 hours of confirmed critical findings, with a brief description of the issue and immediate remediation guidance — separate from the formal report. For findings that represent active risk (e.g., publicly exposed credentials, ongoing data exposure), we recommend immediate containment and continue testing only after the issue is contained. Critical findings are handled out-of-band; we do not wait until the final report to disclose them.

Can you test production environments, or only staging?

Both, with appropriate care. Production testing carries operational risk (a payload that crashes a service, an authentication test that locks out real users) and we mitigate it through: (a) limiting destructive tests to staging or sandbox, (b) coordinating disruptive tests during maintenance windows, (c) maintaining a kill-switch hotline during testing, (d) avoiding tests with broad operational blast radius (mass account enumeration, denial-of-service simulation against production). Most clients run a full test against staging and a more constrained verification test against production.

How often should I run an AWS penetration test?

PCI DSS requires annual + after significant change. SOC 2 expects at least annual testing as part of CC4.1. ISO 27001 A.8.34 requires periodic testing — most certified organizations interpret this as annual. Regulatory baselines aside, we recommend testing after every major architectural change (new account structure, new service introduced, significant feature with new attack surface), after security incident response activities, and at least annually as a standalone assessment. Continuous testing programs (red teaming) are appropriate for high-target organizations and high-value workloads.

Further reading

Also looking at AI agents for support or operations? See where production agents fit.

Ask AI:ChatGPTClaudePerplexityGemini

Find What Scanners Miss

Vulnerability scanners catch known CVEs. Penetration testers catch the architectural flaws and business logic gaps that scanners cannot. Get a scoped, AWS-aware pen test with auditor-ready reporting.

Photographs, all public domain via Wikimedia Commons: steel testing machine, Bureau of Standards, National Photo Company, Library of Congress; plate impact test, Harris & Ewing, 1939, Library of Congress; lamp testing bench, Bureau of Standards, National Photo Company, Library of Congress. Cropped; hero darkened.