To access material, start machines and answer questions login.
Many companies migrate their on-premises resources to the cloud to gain benefits such as cost savings, greater stability, and improved security. However, not all recognize the new risks that come with this transition, often leaving their assets even less protected than before. This beginner-friendly room outlines the risks and common pitfalls companies face when migrating to the cloud, and helps you understand how to protect them as a analyst.
Learning Objectives
- Learn the main cloud models: IaaS, PaaS, and
- Explore security risks coming from the cloud providers
- Understand the core concepts of security in the cloud
- Identify the challenges of monitoring clouds as a
Prerequisites
- Know how the web and web applications work
- Preferably, complete the Level 1 path
Continue to the next task!
What Is Cloud
The cloud is a paradigm in which computing resources are hosted and managed by third-party providers and delivered on demand via the Internet. Users can access, configure, and pay for these services as needed, without owning or maintaining the underlying hardware. , Google Drive, and even TryHackMe are all "clouds" of some sort. There are three main cloud service models you should know about: IaaS, PaaS, and . Let's explore them one by one!
IaaS
Managing a server room or data center can be challenging: You are fully responsible for its physical security, hardware stability, software updates, network routing, and many other tasks. Every IT company needs some computing power to run its business, but not every company has the expertise or resources to maintain and properly secure its own servers.
That's the problem Infrastructure as a Service (IaaS) tries to solve. IaaS is a cloud service model where computing infrastructure is provided online on demand. For example, with an IaaS provider like Amazon , Google Cloud, or Microsoft Azure, you can launch any lab machine in the cloud just by clicking a button in a web , without worrying about power outages and hardware failures.
PaaS
For some companies, IaaS is not enough. For example, software developers don't want to bother with launching lab machines - all they want is to write the source code, click a button, and see their application up and running, without caring much how and where it actually runs. Such requests are covered with Platform as a Service (PaaS) - a cloud service model for simple development and hosting web applications.
Interestingly, TryHackMe also offers PaaS features, as you can create your own private or public rooms and then host them in the cloud, without knowing how it works internally. In turn, TryHackMe uses IaaS (Amazon ) to host its infrastructure, including in-room lab machines. Other PaaS offerings include Vercel, Heroku, and Google App Engine.
Software as a Service () allows users and companies to launch complex applications in the cloud without installing any software on their computers. Slack, Zoom, Gmail, Dropbox, and Google Docs are among the thousands of offerings. Unlike the previous models, is always a final product that can be used by a non-technical audience. Let's see a comparison table below for a simpler understanding:
| Not Alternative | |
|---|---|
| Google Docs (Web application, saves docs in the cloud) |
Microsoft Word (Desktop program, controllable updates, saves docs locally) |
| Dropbox (Web application, saves files in the cloud) |
Synology NAS (Hardware device, can work offline, saves files locally) |
| MS Intune (Cloud MDM, where endpoints connect to the Microsoft servers in the cloud) |
ME Endpoint Central (On-premises MDM, where endpoints connect to the local Endpoint Central server you control) |
It's fun to think about how you can combine the models. For example, if you develop a cat image generator, make it a public web service, and host it in , you'll get on IaaS (or CataaS (opens in new tab)). What you should remember is that the "as a service (opens in new tab)" approach always implies some form of abstraction, where a maintenance burden is taken from you and delegated to a cloud service provider.
Which cloud model allows you to migrate a big on-premises network to the cloud?
Which cloud model do Elastic Cloud and CrowdStrike Falcon fit into?
Note: You may need to perform external research to answer this question.
Security of the Cloud
Cloud computing is a complex topic, but it is built on top of the same core technologies as traditional on-premises. For instance, often shares insights into its internal architecture (video 1 (opens in new tab), video 2 (opens in new tab)), where familiar concepts like /IP and play a key role. There is even a saying that "the cloud is just someone else's computer". This is why you must know that clouds are not invulnerable and, just like your computer, are at risk of attacks. Security of the cloud provider's internal infrastructure is often called Security of the cloud:
Risk of Cloud Vulnerabilities
Biggest clouds are built with security in mind, and it's extremely rare to see them getting breached. However, it's still possible, and when they occur, attackers often target the provider's largest customers. Treat this as a form of supply chain risk - don't blindly trust the cloud provider, but apply the same defensive principles: segment the network, analyze login activity, and monitor endpoint behavior.
For less popular cloud services, the chance of compromise is much higher. There were many cases where a breach of a local IaaS provider resulted in the deployment of malware on all hosted VMs, or where a breach of led to the exposure of sensitive data. This is why you should carefully choose your cloud vendor and decide what to entrust them with.
Risk of Poor Cloud Visibility
The risks associated with cloud breaches are amplified by the fact that, as an end user, you have no visibility into the cloud provider's internal environment. For example, between August 8 and August 18, 2025, adversaries used stolen Salesloft () OAuth tokens to exfiltrate data (opens in new tab) from certain customers' tenants. As an end user, you can't detect it, as the malicious activity occurred entirely within infrastructure - essentially, "someone else's computer".
No matter how mature your is, using cloud services means entrusting your data to third-party vendors, who will never provide their internal security logs upon request. This is especially critical to maintain control over usage. Other departments may unknowingly upload sensitive data to untrusted applications, creating shadow IT risks that can later lead to unexpected breaches.
Incidents of the Cloud
| Cloud Provider | Security Incident Incident | Potential Impact |
|---|---|---|
| Okta () |
In 2023, the threat actors had gained access (opens in new tab) to the Okta support case management system, containing the customers' HAR files with Okta session tokens. | The attackers stealthily log in to the Okta tenants of the impacted customers. |
| BeyondTrust () |
In 2024, the threat actors had compromised (opens in new tab) some of its Remote Support instances that were used to provide remote access services to 17 customers. | The attackers gain stealthy Remote Support access to the impacted BeyondTrust customers. |
| Google Cloud (IaaS) |
In 2025, a minor vulnerability (opens in new tab) in GCP Cloud Run allowed unauthorized access to the victims' images. | The attacker accesses restricted images or injects malicious code there. |
Is the cloud provider responsible for securing and monitoring its own infrastructure (Yea/Nay)?
But should you trust the cloud provider without watching for supply chain threats? (Yea/Nay)
Security in the Cloud
The previous task was about the security of the cloud - something that the cloud provider takes care of. However, it's still your responsibility to protect resources in the cloud: VMs you host in IaaS, applications you build with PaaS, or credentials to your accounts. Everything you have in the cloud requires the same level of monitoring and hardening as on-premises systems. Check out the Shared Responsibility Model (opens in new tab) for more details.
Cloud Migration Pitfalls
There is a misconception that migrating an old, unpatched lab machine to the cloud somehow makes it new and secure, or that moving files to Google Drive guarantees protection from ransomware. Neither is true. While cloud environments can reduce exposure to certain traditional attack vectors, they also introduce new, cloud-specific threats that are often overlooked by IT teams.
Another issue is that people tend to apply their on-premises security practices to cloud environments. For instance, it is acceptable to use 12-character passwords without in an isolated Active Directory network, but it is critically dangerous in public clouds accessible from anywhere. Cloud security requires a unique approach, which you will learn about in the following rooms.
Logging in Clouds
Since you can't install the agent in the cloud and collect logs from there the same way as from on-premises, you have to rely on the cloud provider's solution. Some vendors provide comprehensive logging services, such as , which you will learn in the next room. However, in the majority of cases, cloud logging is limited, especially in , where:
- Paid Logs: Logging to may require an additional payment or license
- Poor Format: Log fields may be incomplete, unstructured, or not documented
- Lack of Integration: In some cases, solutions don't support logging to at all
Incidents in the Cloud
| Victim | Security Incident | Caused Impact |
|---|---|---|
| Capital One Bank | A misconfiguration in the bank's resources allowed the attackers (opens in new tab) to access all data within the bank's cloud storage. | Adversaries stole 1 million Social Insurance Numbers and 140 thousand Social Security numbers of the bank's credit card customers. |
| Various Companies | Hundreds of customers are breached every year due to simple mistakes, such as weak passwords, leaked keys, or stolen cookies. | Adversaries leverage access to mine valuable information like passwords, contracts, or network maps ( Examples (opens in new tab)). |
Does moving an unpatched server to the cloud make it secure again? (Yea/Nay)
What is the first major obstacle to integrating most cloud products with a SIEM?
What to Protect and Monitor
The effort required to build monitoring in the cloud differs depending on the cloud service model. For example, is the simplest, as all you have to do is ingest the logs in via the provider's and monitor for risky actions, such as when a confidential Google Drive document is made public (opens in new tab), an internal GitHub repository is downloaded (opens in new tab), or when someone logs in (opens in new tab) to Notion from a suspicious IP and exports all corporate pages. On the other hand, covering IaaS is a more challenging task, as you need to cover both:
- Workloads: Monitor lab machines or containers, same as in on-premises
- Cloud Services: Monitor database queries, storage access, and many more
- Control Plane: Monitor logins and actions within the cloud admin console
Data Sources for Monitoring
On-premises endpoint monitoring typically relies on , , and forensic tools. But in the cloud, the tools change drastically. EDRs are often unsupported due to containerized workloads and auto-scaling; integration with the provider's logging APIs may be difficult; and forensic investigation is constrained by a lack of accessible memory or disk artifacts. The image below illustrates the differences in cloud and on-premises logging:
Common Cloud Security Tools
Many specialized solutions begin to pop up to cover what traditional tools can't cover in the clouds. Cloud Access Security Brokers (CASB) enforce security policies, Cloud Workload Protection Platforms (CWPP) protect against malware, Cloud Security Posture Management (CSPM) alert on misconfigurations, and so on. While we encourage you to read about them more, you can still set up monitoring just with and have a decent coverage:
| Recommended Action | Description |
|---|---|
| 1. List your clouds | Identify all cloud platforms where your organization stores or processes critical data |
| 2. Know the risks | Prepare a plan for a potential cloud vendor's breach, even if the likelihood is low |
| 3. Enable cloud logs | Turn on vendor-provided cloud audit logs in all identified clouds, including |
| 4. Enable workload logs | For IaaS, don't forget that your VMs require the same logging as in on-premises |
| 5. Collect the logs | Forward the logs to your , as they aren't kept in the cloud for a long time |
| 6. Monitor for anomalies | Build detection rules by alerting on suspicious logins and administrative actions |
What term describes cloud compute resources like VMs or containers?
Which of the mentioned cloud security tools do Falco and Tetragon fit into?
Note: You may need to perform external research to answer this question.
Cloud Security Challenge
In this task, you will explore the differences between cloud service models and repeat the Shared Responsibility Model - what you manage versus what the vendor manages. Visit the static site below, complete the exercises, and get the flags!
| Access | Granted |
| URL | Static Site (opens in new tab) |
What is the flag you get after completing the first exercise?
What is the flag you get after completing the second exercise?
In this room, you explored the differences between IaaS, PaaS, and cloud service models, uncovered often-overlooked risks, and examined common pitfalls organizations face when migrating to the cloud. You also learned that protecting clouds is not easy, and that there are many challenges in log collection and coverage to ensure proper security monitoring. In the upcoming rooms, you will dive deeper into the technical details using (IaaS) and Entra ID () as examples. Hope you enjoyed the room!
Complete the room!
Ready to learn Cyber Security?
TryHackMe provides free online cyber security training to secure jobs & upskill through a fun, interactive learning environment.
Already have an account? Log in