Where application and cloud risks meet
- SSRF to instance metadata endpoints, which is why AWS introduced IMDSv2 with session tokens.
- Over-permissive IAM roles attached to compute, so one compromised container can read every bucket.
- Publicly readable or writable object storage referenced by the app.
- Secrets in environment variables, container images or public repositories.
- Kubernetes: exposed dashboards or kubelets, permissive service accounts and missing network policies.
- Serverless functions with broad roles and event inputs that reach injection sinks.
Test approach
Start with the application as a black box and look for sinks that touch infrastructure: URL fetchers, file importers, template renderers and command execution. In parallel, review cloud configuration with read-only credentials to understand blast radius. Then connect the two: if the app has SSRF, what role would it expose, and what can that role do? Testing against provider policy matters; AWS, Azure and Google Cloud each publish rules for what customers may test without prior approval.
What counts as proof
For SSRF, an out-of-band callback from the application's server is proof that it fetches attacker-controlled URLs; retrieving metadata is stronger proof but should be agreed in advance. For IAM findings, the policy document plus a harmless API call made with the derived permissions is the evidence. Avoid modifying cloud resources during a test.
Remediation
Enforce IMDSv2 or the equivalent, give each workload a least-privilege role, block public access to storage at account level, move secrets to a secrets manager, and apply egress controls so application servers cannot reach arbitrary hosts. Use policy-as-code checks in CI to stop regressions.
How Pentest-Swarm tests cloud applications
Pentest-Swarm tests the application layer for flaws that reach infrastructure and integrates established cloud tooling for configuration review. Cloud and Kubernetes misconfiguration is one of the classes it reports.
- Proves SSRF with an out-of-band callback on URL, webhook and image parameters.
- Cloud tooling integrated into the cloud-exploitation playbook: prowler, ScoutSuite, cloudsplaining, Pacu, Checkov and kube-hunter.
- Secrets exposure checks with gitleaks and trufflehog.
- Runs self-hosted inside your own cloud account, with a local model if you need no data to leave it.
Where it falls short
Pentest-Swarm is strongest on the application side. For a full cloud security posture review across many accounts, a dedicated CSPM or a cloud-specialist assessment will cover more services and policies than its integrated tools. Always check your provider's penetration-testing policy before testing, and do not test shared provider infrastructure.
Questions
Do I need permission from AWS to pentest my application?
AWS allows customers to test a list of common services without prior approval, subject to its policy. Other activities and providers have their own rules, so check the current policy first.
Why is SSRF so serious in the cloud?
Because the server can often reach the metadata service and internal endpoints, turning a URL parameter into temporary cloud credentials.
Is a cloud configuration review a pentest?
No. It reviews settings. A pentest attempts to exploit them, often starting from the application.