Business-critical data today rarely lives only in a company’s own data centre. Email, file storage, ERP systems and entire production environments run with cloud providers – often spread across several platforms and regions. If a security incident occurs there, an uncomfortable question quickly arises: how can you reconstruct what happened when there is no server you can take off the network and whose hard drive you can image? This is exactly where cloud forensics comes in.
What cloud forensics is about
Cloud forensics applies the methods of classic IT forensics to virtualised and rented infrastructure. The goal is to find traces of an incident, secure them unaltered, analyse them and prepare them in such a way that they stand up internally, before supervisory authorities or in court. The special challenge: the data is distributed, systems appear and disappear within minutes, and part of the infrastructure is always in the hands of the provider.
How much a company can secure itself depends largely on the service model used:
- Infrastructure as a Service (IaaS): The customer manages virtual machines, storage volumes and network configuration. Snapshots, memory images and system logs can be collected relatively comprehensively here.
- Platform as a Service (PaaS): The provider operates the operating system and runtime environment. Mainly application and platform logs as well as configuration data are available.
- Software as a Service (SaaS): The customer only sees the application. Forensic findings come almost exclusively from audit logs, admin consoles and export functions whose scope and retention period are determined by the provider.
These differences should already be taken into account when selecting cloud services and planning incident response – not only once an incident has occurred.
What changes compared with classic IT forensics
In a classic investigation, the physical storage medium is at the centre: it is seized, copied bit for bit and analysed in the lab. In the cloud this route is usually blocked. Instead, investigators work with whatever the provider’s interfaces and management consoles make available. This results in several fundamental differences:
- Access: Evidence is collected logically via APIs and consoles, not via physical hardware.
- Volatility: Auto-scaling instances, containers and functions often exist only briefly – and their traces disappear with them.
- Shared responsibility: Some of the relevant data is held exclusively by the provider and can only be accessed through the provider’s processes.
- Distribution: Data can be spread across several regions, accounts and services.
There is also an often underestimated detail: in cloud services, content and its metadata – such as timestamps, access rights or ownership information – are frequently stored in different places. Anyone who wants to reconstruct the course of an incident has to bring both back together.
Typical reasons for an investigation
- compromised user or administrator accounts, for example after phishing or password theft,
- data leaking from misconfigured storage areas or databases,
- ransomware attacks that also affect cloud workloads or synchronised file storage,
- misuse of computing resources, for example for cryptomining,
- suspected misconduct by insiders, as well as reviews in the context of compliance or legal proceedings.
The benefit for companies
A prepared forensic capability in the cloud pays off in several ways. It makes it possible to secure evidence reliably even under severe time pressure, to determine the extent of an incident robustly and to meet reporting obligations – for example under Art. 33 GDPR or NIS2 – on the basis of facts rather than assumptions. Recurring attack patterns can also be identified across several platforms.
A practical advantage: the cloud itself provides the tools. Analysis environments can be provisioned on the same platform when needed and removed again afterwards, without having to keep dedicated forensic hardware.
Challenges in securing evidence
Law and regulation. If data is located in several countries, different legal systems collide. Data protection requirements, restrictions on transfers to third countries and local requirements for involving authorities can contradict each other. Before any data is secured, it should therefore be clear where the data is located and which rules apply there.
Technical limits. Without access to the hardware, investigators depend on snapshots, logs and programming interfaces. In multi-tenant environments, unambiguously attributing traces to a specific customer is not always trivial, and encrypted systems remain closed without the right keys.
Volatile and scattered data. Short-lived workloads take their traces with them when they are terminated. Logs exist in different services and formats and have to be correlated in time. At the same time, statutory reporting deadlines are running – companies may have to report before the analysis is complete.
A four-phase approach
To ensure that results are traceable and repeatable, a clearly defined approach is recommended:
1. Detect and contain. Suspicious resources are identified – ideally automatically – and isolated from the rest of the network without deleting or restarting them. Every step is logged from this phase onwards.
2. Secure. The relevant data is collected using the platform’s own tools, including:
- snapshots of storage volumes and, where possible, memory images,
- audit and activity logs of the management plane (e.g. AWS CloudTrail, Azure Activity Log, Google Cloud Audit Logs),
- network flow logs and logs from firewalls and load balancers,
- sign-in and authorisation data from identity management.
The secured data should be transferred to a separate, write-protected forensics account that attackers have no access to.
3. Analyse. The focus is on identity and authorisation activities that reveal unauthorised access, network connections that trace the attacker’s path, and the contents of storage volumes and memory. Work is carried out exclusively on forensic copies – the originals remain untouched.
4. Document. A complete chain of custody records who accessed which data, when and for what purpose. Hash values prove that the secured data has not been altered since it was collected. A clearly structured report makes the results usable for management, authorities and courts.
Conclusion
The more companies rely on cloud services, the more important it becomes to be able to investigate incidents there forensically as well. Distributed data, limited visibility into the infrastructure and complex legal frameworks require different methods from classic storage media analysis. Those who define logging, responsibilities and evidence-securing processes at an early stage can act quickly and with legal certainty when it matters. VektorSchild helps companies build forensic readiness in their cloud environments and investigate security incidents in a methodical way.
