Cloud Forensics: How to Investigate Security Incidents in AWS, Azure and Google Cloud

Learn how cloud forensics helps investigate security incidents in AWS, Azure and Google Cloud through evidence collection, log analysis, threat hunting, and incident response.

Cloud Forensics: How to Investigate Security Incidents in AWS, Azure and Google Cloud

Cloud Forensics: How to Investigate Security Incidents in AWS, Azure and Google Cloud

Cloud computing has transformed how organizations store data, deploy applications, manage identities, and operate critical business services. Platforms such as Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP) provide flexible infrastructure, but they also introduce security challenges when attackers gain unauthorized access to cloud environments.

A recent investigation published by Wiz on October 20, 2026, highlighted how threat actors used phishing to compromise Google Cloud credentials, manipulate billing permissions, and exploit victims' cloud billing accounts to fund unauthorized large-scale AI usage. Some victims reportedly experienced unexpected charges reaching tens to hundreds of thousands of dollars within 24 to 48 hours. The investigation demonstrated how compromised identities and changes to cloud permissions can create significant financial and security consequences.

Source: From Phishing to LLMjacking: Threat Actors Targeting Cloud Billing Accounts for LLM Usage — Wiz

This incident highlights why cloud forensics is essential for modern cybersecurity. Investigating a cloud security incident requires more than identifying suspicious activity. Security teams must collect reliable evidence, analyze authentication records, reconstruct attacker actions, identify affected resources, and determine the extent of the compromise.

Unlike traditional systems, cloud environments distribute evidence across multiple services, accounts, regions, and administrative layers. Effective cloud forensics investigation therefore requires an understanding of cloud architecture, identity management, audit logging, evidence preservation, and incident response.

As organizations increasingly depend on AWS, Azure, and Google Cloud, the ability to investigate cloud security incidents has become an important part of protecting business operations and sensitive information.

Why Cloud Forensics Has Become a Growing Concern

Cloud environments contain valuable business data, applications, authentication systems, storage resources, and financial accounts. Attackers who compromise cloud identities may use these resources for data theft, unauthorized computing, privilege escalation, or financial abuse.

In the Wiz investigation, attackers reportedly used phishing pages disguised as legitimate Google Cloud login pages to capture user credentials and multi-factor authentication (MFA) codes. After gaining access, they manipulated Identity and Access Management (IAM) permissions, created service accounts and API credentials, modified organizational policy controls, and linked attacker-controlled projects to victims' billing accounts.

The incident illustrates how an attack that begins with a single compromised user can develop into a broader cloud security incident.

Some of the major risks that make cloud forensics increasingly important include:

  • Compromised cloud credentials and unauthorized account access.
  • Privilege escalation through excessive permissions or malicious IAM changes.
  • Unauthorized creation of service accounts, API keys, and cloud resources.
  • Data exposure through misconfigured storage and access policies.
  • Abuse of cloud computing resources and unexpected billing activity.
  • Attempts to disable security controls or reduce monitoring visibility.
  • Difficulty identifying attacker activity across multiple cloud services.

Cloud forensics helps security teams investigate these activities by examining available digital evidence and reconstructing the sequence of events that led to a security incident.

What Is Cloud Forensics?

Cloud forensics is the process of identifying, collecting, preserving, examining, and analyzing digital evidence from cloud-based environments to investigate security incidents and determine what happened.

A cloud forensics investigation may involve authentication logs, cloud audit trails, API activity, virtual machine records, storage access logs, network telemetry, identity permissions, and billing records. The purpose is to establish a reliable timeline of suspicious activity, identify the accounts and resources involved, determine the attacker's actions, assess the impact, and support remediation.

For example, if an attacker obtains access to a cloud administrator's account, investigators may examine authentication events to identify unusual logins, audit logs to discover permission changes, and billing records to detect unexpected usage.

By correlating these sources, investigators can develop a clearer picture of the attack and identify the security controls that need improvement. Cloud forensics is closely connected to digital forensics and incident response, but it requires additional attention to distributed infrastructure, cloud identities, and the shared responsibility model.

CyberSapiens EdTech offers the Cloud Forensics: Evidence Collection & Analysis course for learners who want to develop skills in cloud-based digital evidence collection and security investigations. The package introduces key concepts related to evidence collection, log analysis, and investigating cloud security incidents, helping learners build a foundation in cloud forensics and incident response.

How Cloud Forensics Investigation Works

An effective cloud forensics investigation follows a structured process. The exact procedures depend on the incident, the cloud provider, the available logs, and the organization's legal and operational requirements.

1. Identify and Scope the Security Incident

The first step is to establish what triggered the investigation and which cloud resources may be affected.

Security teams should review available alerts, suspicious login notifications, unexpected resource creation, unusual API requests, data access anomalies, and sudden increases in cloud spending.

In a cloud billing abuse incident, investigators may begin with an unexpected increase in AI API usage or a notification about a suspicious administrator login.

The initial investigation should identify the potentially compromised accounts, affected projects or subscriptions, relevant time period, and services that may contain evidence.

2. Preserve Relevant Cloud Evidence

Evidence preservation is a critical part of cloud forensics. Security teams should identify and preserve relevant audit logs, authentication records, configuration history, storage access records, and other available evidence before it expires or becomes unavailable.

Where possible, investigators should export evidence to a protected location with restricted access and maintain records of when, how, and by whom it was collected.

Evidence collection must follow applicable organizational policies, legal requirements, and cloud-provider permissions. Investigators should also avoid making unnecessary changes to affected systems before documenting their current state.

3. Analyze Authentication and Identity Activity

Identity-related evidence can help investigators determine how an attacker entered the environment and what permissions were used.

Important questions include:

Was the login performed from an unusual IP address, device, or location?

  • Did the account experience suspicious MFA activity?
  • Were new users, service accounts, or API keys created?
  • Did an existing account receive additional privileges?
  • Were legitimate administrators demoted or removed?
  • Were external identities added to sensitive projects or billing accounts?

In the Wiz investigation, reviewing Google Workspace user login events and Google Cloud audit logs was important for identifying suspicious authentication activity and subsequent administrative changes.

4. Reconstruct the Attack Timeline

Investigators correlate evidence from different sources to determine the sequence of events.

A timeline might include the initial phishing attempt, the first suspicious login, changes to identity permissions, creation of API credentials, unauthorized resource usage, and the discovery of the incident.

Timestamps, account identifiers, source IP addresses, API methods, resource names, and administrative actions help establish relationships between events.

A reliable timeline allows security teams to distinguish the initial compromise from later attacker activity and determine how far the incident progressed.

5. Determine the Impact and Scope

After reconstructing the attack, investigators assess the affected data, services, identities, and business operations.

They should determine whether the attacker accessed sensitive information, modified security settings, created persistent access, deployed unauthorized resources, or caused financial damage.

For cloud billing abuse, the investigation should examine abnormal consumption, affected APIs, unauthorized billing relationships, newly created credentials, and changes to billing administrators.

The findings should be documented clearly to support remediation, management reporting, compliance requirements, and future security improvements.

Investigating Cloud Security Incidents Across AWS, Azure and Google Cloud

Although the investigation process follows similar principles across providers, the evidence sources and service names differ.

Cloud Forensics in AWS

Amazon Web Services provides several logging and monitoring services that can support forensic investigations.

Important evidence sources include:

AWS CloudTrail: Records supported account and API activity, helping investigators identify actions such as changes to IAM policies, creation of resources, and modifications to security settings.

  • Amazon CloudWatch: Provides access to configured logs, metrics, and monitoring data that may reveal suspicious application or infrastructure activity.
  • Amazon VPC Flow Logs: Records network traffic metadata for supported network interfaces, helping investigators analyze communication patterns.
  • Amazon S3 access logging and AWS CloudTrail data events: Can provide evidence of supported object-level access activity when the relevant logging is configured.
  • Amazon GuardDuty: Helps identify potential threats through findings that investigators can correlate with other evidence.
  • AWS Config: Can provide resource configuration history and change records where recording was enabled.

For example, if an attacker compromises an AWS administrator account, investigators can examine CloudTrail records for suspicious sign-ins and API activity, review IAM policy changes, identify newly created access keys, and investigate unexpected resource deployment.

The investigation should also examine whether relevant logging was enabled before the incident and whether attackers attempted to alter or remove available evidence.

Cloud Forensics in Microsoft Azure

Microsoft Azure provides identity, resource, network, and security monitoring capabilities that can help investigate cloud incidents.

Important evidence sources include:

  • Microsoft Entra ID sign-in logs: Help investigators review authentication attempts, sign-in locations, client applications, and authentication outcomes.
  • Microsoft Entra ID audit logs: Record supported changes to users, groups, applications, and directory permissions.
  • Azure Activity Log: Provides subscription-level records of management operations, including supported resource and configuration changes.
  • Azure Monitor and Log Analytics: Help investigators collect and correlate configured logs from supported services.
  • Network Watcher and NSG flow logs: Can provide network traffic evidence where the relevant capabilities and logging are configured.
  • Microsoft Defender for Cloud: Provides security recommendations and threat-related findings that can support investigations.

For example, if an Azure identity is compromised, investigators can review sign-in events, examine role assignments, identify unusual resource deployments, and correlate administrative activity with alerts from connected security services.

Depending on the incident, investigators may also need application logs, virtual machine evidence, storage access records, and Microsoft 365 audit data.

Cloud Forensics in Google Cloud

Google Cloud provides audit logging, identity monitoring, security findings, and billing records that can support investigations into unauthorized activity.

Important evidence sources include:

  • Cloud Audit Logs: Help investigators examine supported administrative actions, data access activity, and system events.
  • Google Workspace login and audit logs: Can provide identity-related evidence when the organization uses Google Workspace and the relevant logs are available.
  • Cloud Logging: Allows investigators to search and correlate configured logs from supported cloud services.
  • Cloud Monitoring: Provides metrics, alerts, and operational visibility that can help identify abnormal resource behavior.
  • Security Command Center: Provides security findings that can help identify risks and suspicious cloud activity, depending on the services and configuration in use.
  • Cloud Billing reports and exports: Help investigators identify unusual spending patterns and unexpected resource consumption.

The Wiz investigation demonstrates how these evidence sources can support the investigation of compromised credentials, unauthorized IAM changes, suspicious service account creation, external project linking, and unexpected AI API costs.

Investigators should examine organization policies, billing account permissions, external identities, service account credentials, and API enablement events when investigating similar incidents.

Logging availability varies by service, configuration, permissions, retention settings, and subscription or product capabilities. Investigators should verify which records exist instead of assuming every activity was captured.

Cloud Forensics Tools Investigators Should Know

Cloud forensics tools help security teams collect, search, correlate, and analyze digital evidence. The right combination depends on the cloud provider, the nature of the incident, and the organization's existing security infrastructure.

Commonly used tools and capabilities include:

  • AWS CloudTrail and CloudWatch for investigating AWS API activity, configured logs, and monitoring events.
  • Microsoft Entra ID logs, Azure Monitor, and Log Analytics for analyzing Azure identity and infrastructure activity.
  • Google Cloud Audit Logs and Cloud Logging for investigating Google Cloud administrative and service events.
  • Microsoft Defender for Cloud, Amazon GuardDuty, and Google Cloud Security Command Center for reviewing security findings and threat indicators.
  • SIEM platforms such as Microsoft Sentinel and Splunk for correlating logs and identifying suspicious patterns across connected data sources.
  • Cloud configuration and forensic analysis utilities for examining resource states, access permissions, snapshots, and collected artifacts.

Tools are only one part of a successful investigation. Security teams must understand what each data source records, whether logging was enabled, how long evidence is retained, and whether timestamps and identifiers can be reliably correlated.

A tool cannot recover every missing record or automatically establish the full context of an attack. Investigators must validate findings and document their conclusions.

Major Cloud Forensics Challenges

Cloud environments introduce several challenges that can make investigations more complex than traditional endpoint or on-premises investigations.

1. Distributed Evidence Sources

Cloud evidence is spread across accounts, projects, subscriptions, regions, services, and identity platforms. Investigators may need to collect and correlate information from multiple locations to understand a single incident.

2. Limited or Missing Logs

Some logs may not have been enabled, may have expired, or may not capture the specific activity under investigation. Data access logs, network flow records, and application logs may require separate configuration.

Missing evidence can prevent investigators from determining exactly what an attacker accessed or changed.

3. Short Retention Periods and Evidence Volatility

Some evidence is available only for a limited period. Temporary resources may disappear, configurations may change, and logs may expire according to retention policies.

Organizations should configure appropriate retention and secure export mechanisms before incidents occur.

4. Shared Responsibility and Limited Infrastructure Access

Cloud providers manage parts of the underlying infrastructure, while customers remain responsible for many aspects of identity, data, application, and configuration security.

Investigators may not have direct access to the provider's underlying physical infrastructure. They must work with the evidence and investigation mechanisms available to customers and, when necessary, the provider's incident response processes.

5. Cross-Account and Cross-Tenant Activity

Attackers may use external identities, link resources across accounts, or exploit relationships between projects and billing accounts.

The Wiz incident illustrates how unauthorized external projects can be associated with a victim's billing account, complicating the investigation because some activity occurs outside the victim's direct project visibility.

6. Maintaining Evidence Integrity

Investigators must preserve original evidence, record collection details, restrict access, and use integrity checks where appropriate. They should also document any actions performed during containment or recovery that could modify evidence.

7. Multi-Cloud Complexity

Organizations operating AWS, Azure, and Google Cloud may use different logging formats, identity systems, security tools, and access models.

A consistent investigation process is essential to correlate evidence across platforms without overlooking provider-specific details.

Cloud Incident Response: What Organizations Should Do After a Breach

Cloud incident response involves detecting, containing, investigating, and recovering from security incidents. Forensic evidence should guide these actions, while urgent containment measures should not be delayed when an active threat poses significant risk.

Organizations should establish a coordinated process covering the following steps.

Detect and Validate the Incident

Review security alerts, suspicious login activity, unexpected API calls, abnormal resource creation, and unusual billing patterns. Confirm the scope of the suspected incident using available evidence.

Contain the Threat

Depending on the situation, containment may include revoking compromised sessions, disabling or rotating exposed credentials, restricting suspicious identities, removing unauthorized permissions, and isolating affected workloads.

Actions should be carefully planned to avoid unnecessary disruption and preserve relevant evidence wherever possible.

Preserve and Investigate Evidence

Secure relevant logs, identity records, configuration history, billing data, and other artifacts. Establish a timeline and identify the accounts, resources, and services involved.

Remove Unauthorized Access

Identify persistence mechanisms such as malicious service accounts, API keys, external IAM members, altered policies, or unauthorized resources. Remove them only after appropriate documentation and evidence collection.

Recover and Monitor

Restore legitimate access, validate security configurations, review affected services, and monitor for renewed suspicious activity.

Review and Improve

Document the root cause, business impact, response actions, and lessons learned. Improve access controls, logging, alerting, and incident response procedures based on the investigation findings.

Cloud incident response is most effective when organizations prepare in advance rather than waiting until a compromise occurs.

10 Cloud Forensics Best Practices Organizations Should Follow

1. Enable Comprehensive Cloud Logging

Enable the appropriate audit, identity, network, and data access logs for critical resources. Review provider-specific logging requirements to ensure that important events are captured.

2. Protect Logs from Unauthorized Modification

Store important logs in appropriately secured locations, restrict administrative access, and use centralized collection where suitable. Maintain retention periods that support investigations and compliance requirements.

3. Strengthen Identity and Access Management

Apply least-privilege permissions, enforce MFA or stronger authentication methods where supported, review privileged roles, and remove unnecessary access. Monitor changes to service accounts, API keys, and external identities.

4. Monitor Suspicious Authentication Activity

Investigate unusual login patterns, suspicious MFA events, unfamiliar IP addresses, and unexpected changes to authentication settings. Correlate identity logs with subsequent cloud administrative activity.

5. Monitor Cloud Billing and Resource Consumption

Configure budgets, billing alerts, and usage monitoring. Investigate unexpected increases in AI API calls, compute resources, storage, or other cloud services.

Financial anomalies may be an early indication of compromised credentials or unauthorized resource usage.

6. Establish a Cloud Forensics Investigation Procedure

Define how investigators identify, collect, preserve, analyze, and document evidence. Assign responsibilities and establish clear approval and escalation procedures.

7. Use Appropriate Cloud Forensics Tools

Choose tools that support the organization's cloud platforms, logging requirements, and investigation objectives. Validate tool outputs and correlate findings with independent evidence sources.

8. Prepare for Multi-Cloud Investigations

Maintain consistent incident classification, evidence documentation, and response procedures across AWS, Azure, and Google Cloud. Train investigators to recognize differences in provider-specific logs and identity models.

9. Test Incident Response Readiness

Conduct tabletop exercises and controlled simulations involving credential compromise, data exposure, unauthorized resource deployment, and billing abuse.

Testing helps identify missing logs, unclear responsibilities, and gaps in investigation procedures before a real incident occurs.

10. Document Findings and Preserve Evidence Integrity

Maintain a timeline, record evidence sources, document collection methods, and restrict access to investigation materials. Where appropriate, use cryptographic hashes and chain-of-custody records to support evidence integrity and accountability.

Can AI Improve Cloud Forensics Investigations?

Artificial intelligence can help security teams analyze large volumes of cloud logs, identify unusual patterns, summarize suspicious events, and prioritize potential threats.

For example, analytics and AI-assisted investigation workflows may help identify unexpected service account creation, correlate suspicious login activity with permission changes, or highlight unusual API consumption.

In the context of LLMjacking, automated monitoring can help identify sudden increases in AI API usage and correlate those increases with changes to IAM permissions or billing account relationships.

However, AI cannot replace reliable logging, evidence preservation, or expert investigation. Automated systems may produce false positives, overlook activity that is not represented in available data, or misinterpret events without sufficient context.

Security teams should validate AI-generated findings against original logs, maintain appropriate access controls, and avoid exposing sensitive investigation data to unauthorized AI services.

The most effective approach combines automated detection with human analysis, established forensic procedures, and a well-tested incident response plan.

What the LLMjacking Incident Teaches About Cloud Forensics

The Wiz investigation offers several important lessons for organizations operating cloud infrastructure.

First, phishing remains a significant entry point into cloud environments. Even organizations with advanced infrastructure can face serious risks when attackers obtain valid credentials and MFA codes.

Second, identity security and billing security are closely connected. Excessive permissions can allow attackers to manipulate access policies, create credentials, and exploit financial relationships between cloud projects.

Third, monitoring must extend beyond traditional signs of data theft. Unauthorized cloud computing, AI API abuse, unexpected resource creation, and sudden spending increases can indicate a security incident even when there is no obvious data exfiltration.

Finally, organizations need visibility across identity events, audit logs, configuration changes, and billing activity. Without these records, investigators may struggle to determine how the attack occurred and what the attacker accomplished.

Cloud forensics helps turn these separate events into a structured investigation that supports containment, recovery, and long-term security improvements.

Building Cloud Forensics Skills for Modern Cloud Security

The growing adoption of cloud platforms has increased the need for cybersecurity professionals who understand cloud infrastructure, identity security, evidence collection, log analysis, and incident response.

Professionals working in cloud security, SOC operations, digital forensics, and incident response benefit from learning how to investigate suspicious authentication events, identify unauthorized cloud changes, analyze audit records, and preserve digital evidence.

The package focuses on the importance of collecting and analyzing evidence from cloud environments, understanding relevant security records, and approaching cloud incidents through structured forensic investigation methods. These skills can help learners build a foundation for understanding how cloud security incidents are investigated and how evidence supports incident response.

Cloud forensics knowledge is particularly relevant for professionals interested in cloud security, SOC analysis, threat hunting, and digital forensic investigations involving platforms such as AWS, Azure, and Google Cloud.

CyberSapiens EdTech also provides cybersecurity learning opportunities across cloud security, offensive security, Web Application Penetration Testing, SOC operations, AI in cybersecurity, GRC, and threat intelligence.

Developing cloud forensics expertise requires continuous learning, practical investigation exercises, and an understanding of how cloud technologies and attacker techniques evolve.

Security Tips That Matter

Organizations looking to strengthen their cloud forensics capabilities should focus on building investigation readiness before an incident occurs.

Important security priorities include:

  • Enabling and protecting cloud audit logs.
  • Monitoring privileged accounts and suspicious authentication events.
  • Investigating unexpected IAM and organization policy changes.
  • Tracking unusual cloud resource and AI API consumption.
  • Preserving evidence before it expires or is modified.
  • Maintaining a tested cloud incident response plan.
  • Training security teams to investigate AWS, Azure, and Google Cloud environments.

Cloud security is not limited to preventing attacks. Organizations must also be prepared to investigate incidents, understand their impact, and recover safely.

As cloud environments become more distributed and interconnected, cloud forensics will remain an important capability for identifying attacker activity, protecting business resources, and improving security resilience.

Cloud Forensics: How to Investigate Security Incidents in AWS, Azure and Google Cloud

Frequently Asked Questions

1. What is cloud forensics?

Cloud forensics is the process of collecting, preserving, examining, and analyzing digital evidence from cloud environments to investigate security incidents and determine what happened.

2. Why is cloud forensics important?

Cloud forensics helps organizations investigate compromised accounts, unauthorized access, data exposure, malicious configuration changes, and cloud resource abuse. It supports incident containment, recovery, and security improvements.

3. What is a cloud forensics investigation?

A cloud forensics investigation involves identifying a suspected incident, preserving relevant evidence, examining logs and cloud activity, reconstructing the attack timeline, assessing the impact, and documenting findings.

4. What are the main cloud forensics tools?

Commonly used tools and services include AWS CloudTrail, Amazon CloudWatch, Microsoft Entra ID logs, Azure Monitor, Google Cloud Audit Logs, Cloud Logging, and SIEM platforms such as Microsoft Sentinel and Splunk.

5. How does cloud forensics work in AWS?

AWS investigations may involve analyzing CloudTrail records, configured CloudWatch logs, VPC Flow Logs, S3 access records, IAM changes, and GuardDuty findings to investigate suspicious activity and determine the scope of a compromise.

6. How is cloud forensics performed in Azure?

Azure investigations may use Microsoft Entra ID sign-in and audit logs, Azure Activity Log, Azure Monitor, Log Analytics, network records, and security findings to reconstruct suspicious authentication and resource activity.

7. How does Google Cloud support forensic investigations?

Google Cloud investigations can use Cloud Audit Logs, Cloud Logging, available Google Workspace audit records, Security Command Center findings, and billing information to investigate unauthorized access, IAM changes, and unexpected resource consumption.

8. What are the major cloud forensics challenges?

Major cloud forensics challenges include distributed evidence, incomplete or expired logs, limited access to underlying infrastructure, cross-account activity, evidence integrity, and differences between cloud providers.

9. What is the difference between cloud forensics and cloud incident response?

Cloud forensics focuses on collecting and analyzing evidence to understand an incident. Cloud incident response includes the broader process of detecting, containing, eradicating, and recovering from the incident. Both activities work together during an investigation.

10. How can organizations prepare for cloud forensics?

Organizations should enable relevant audit logs, configure appropriate retention, secure evidence storage, monitor privileged access, establish investigation procedures, and conduct regular incident response exercises.

11. Can cloud forensics help detect LLMjacking?

Yes. Cloud forensics can help investigate potential LLMjacking by examining authentication events, IAM changes, service account and API key creation, billing relationships, and abnormal AI API consumption.

12. What skills are useful for cloud forensics professionals?

Useful skills include cloud architecture, IAM, audit log analysis, digital evidence preservation, threat hunting, security monitoring, incident response, and familiarity with AWS, Azure, and Google Cloud security services.

13. What is the Cloud Forensics: Evidence Collection & Analysis package?

The CyberSapiens EdTech package focuses on cloud forensic evidence collection and analysis, helping learners build a foundation for understanding digital evidence and investigating cloud security incidents.

14. Why should cloud logs be preserved during an investigation?

Cloud logs can provide evidence of authentication, API calls, configuration changes, and access to resources. Preserving relevant logs helps investigators reconstruct events, assess the impact, and support incident response.

15. How can organizations reduce cloud forensics challenges?

Organizations can reduce investigation challenges by enabling appropriate logging in advance, centralizing and protecting evidence, applying least-privilege access, monitoring cloud activity, and maintaining a documented incident response procedure.

Prameela Jogi
A cybersecurity professional dedicated to helping individuals develop strong, practical security skills for real-world environments. She holds industry-recognized certifications and brings hands-on expertise in AWS VAPT, SOC operations, web VAPT, incident response, and security automation, with a strong focus on applied, cloud-driven security practices.