Reading a cloud app
An attacker who lands in a cloud app rarely stops there. The app’s code runs as a cloud identity, so a bug in the app becomes access to whatever that identity can reach. The patterns assume an enterprise setup: several accounts, internal tools such as a self-managed GitLab, and a network shared with your data center. Before you scope an incident, answer three questions about the app involved.
What are the ways in?
Start with the front door: the CDN, WAF and API layer. Then list the doors that skip it: direct URLs to the compute, pipelines and runners that deploy it, and network paths from other workloads. Attackers look for the door without the guard.
What does each hop run as?
Every hop that calls a cloud API has an identity: an execution role, a managed identity, a service account. That identity is the blast radius of a compromised hop.
Who can change it?
Deploying new code or settings is the quietest persistence there is. Find who holds deploy rights on the control plane, including pipelines.
The identity changes at the API layer
An end user’s identity is checked at the front of the app. Past that point, cloud IAM sees only the workload. Data-layer logs name the function’s identity, never the customer, so tying a data read back to a user takes the app’s own logs.
Pattern catalog
Where this comes from
Service behaviour, log sources and their defaults were checked against each provider’s own documentation. Attack steps are composite scenarios built from documented techniques, not reports of specific incidents.
- AWS: AWS Documentation, including the CloudTrail, IAM, Bedrock and service user guides
- Azure: Microsoft Learn: Azure and Microsoft Entra documentation
- Google Cloud: Google Cloud documentation, including Cloud Audit Logs and Workspace admin help
- GitLab: GitLab Docs for self-managed instances, runners and ID tokens
- Techniques: MITRE ATT&CK and, for AI systems, MITRE ATLAS
Glossary
Terms used across this guide, in plain language. Throughout the guide, a term with a dotted underline opens its definition when you tap it.