Wednesday, June 29, 2022
  • Events
  • Interviews
  • Jobs
  • Opinion
  • Whitepapers
  • Glossary
  • Community Forum
  • Web Hosting Directory
  • Login
  • Register
Cloud7 News
  • Cloud Computing
  • Web Hosting
  • Data Center
  • Linux
  • Cybersecurity
  • More
    • Network/Internet
    • Windows
    • Software
    • Hardware
    • Blockchain
    • Policy/Legislation
    • How-Tos
    • Troubleshooting
No Result
View All Result
Cloud7 News
  • Cloud Computing
  • Web Hosting
  • Data Center
  • Linux
  • Cybersecurity
  • More
    • Network/Internet
    • Windows
    • Software
    • Hardware
    • Blockchain
    • Policy/Legislation
    • How-Tos
    • Troubleshooting
No Result
View All Result
Cloud7 News
No Result
View All Result

Home > Cloud Computing > A wrong configuration of Google Cloud allows complete VM takeover

A wrong configuration of Google Cloud allows complete VM takeover

Google Cloud Platform has a dangerous function that allows attackers to gain full control of target virtual machines.

Rusen Gobel by Rusen Gobel
May 6, 2022
in Cloud Computing
3 min read
0 0
0
A wrong configuration of Google Cloud allows complete VM takeover
0
SHARES
48
VIEWS
Share on FacebookShare on TwitterShare on EmailFollow on Google News

The cloud incident response company Mitiga has published a whitepaper regarding a security flaw by design; allowing attackers to read and write data, effectively gaining full control over the targeted virtual machine instances. The company describes the security issue as “dangerous functionality”.

Not a usual TCP/IP port

According to Mitiga, the getSerialPortOutput API, which lets users retrieve output from serial ports for debugging systems, is not configured as TCP/IP ports in Linux systems; they are stored as files in /dev/ttySX (X means between 0 and 3). Google Cloud Platform exposes many APIs and getSerialPortOutput is one of them, for debugging systems.

The cloud incident response experts of Mitiga have seen the opportunity and tried creating a virtual machine in Google Cloud Platform that is completely firewalled for all inbound and outbound traffic, and continuously writing data to the serial ports. After that, the experts managed to read the data from the serial port. This particular traffic has been reflected as GOOGLE_INTERNAL in Google Cloud Platform’s network monitoring interface. But when the API calls are checked, the abuse of the getSerialPortOutput API can be seen.

While the getSerialPortOutput API alone creates a security risk, accompanying it with setMetadata API makes it even worse; allowing a potential attacker to write data to the system. Those two combined allow both reading and writing data on the VM instance which can effectively end up to a complete takeover by leveraging. And, a Google Cloud Platform credential is the only requirement for achieving it. Mitiga has envisioned two potential attack scenarios.

Attack scenario #1

  • An attacker gains access to GCP credentials with appropriate API permissions for both setMetadata and getSerialPortOutput on one or more VMs
  • Using traditional network-based methods of lateral movement, the attacker installs malware on the system that communicates using the GCP API
  • The attacker sends commands to the victim machine by inserting them into custom metadata using a predetermined key
  • The victim system continually reads the key looking for commands; when one is found, the command is executed, and the output is sent to a predetermined serial port
  • The adversary continually reads from the serial port and waits to receive the output of the command

Attack scenario #2

  • An attacker gains access to GCP credentials with appropriate API permissions for setMetadata, getSerialPortOutput, and reset (that is, compute.instances.reset permissions) on one or more VMs
  • The adversary inserts the API-abusing malware into the victim’s system user data
  • The adversary “resets” the system, forcing a reboot. Upon reboot, the system will run user data as the administrative user
  • The attacker sends commands to the victim machine by inserting them into custom metadata using a predetermined key
  • The victim system continually reads the key looking for commands; when one is found, the command is executed, and the output is sent to a predetermined serial port
  • The adversary continually reads from the serial port and waits to receive the output of the command

Mitiga also advises the Google Cloud Platform users to take the following actions for better security:

  • Don’t use built-in roles. Instead, assign specific permissions as needed to users in adherence with the principle of least privilege.
  • Evaluate whether dangerous functionalities such as setMetadata (and similar APIs such as setCommonInstanceMetadata) are necessary. If not, ensure that cloud credentials are configured to lack such permissions.
  • Ensure systems only allow remote access via approved remote administration methods, such as SSH or RDP.
  • Where possible, run applications or services using low-privileged users. Where possible, harden systems such that service accounts cannot write to serial ports.
  • If you do not use the compute.instances.getSerialPortOutput feature, consider adding an IAM deny policy for Compute users for that permission.

See more Cloud Computing News


Tags: Google CloudMitiga
ShareTweetSendShare
Rusen Gobel

Rusen Gobel

Rusen Gobel is a news editor at Cloud7 News. With more than 10 years of experience, Rusen worked as a hardware and software news editor for technology sites such as Shiftdelete, Teknokolis, Hardware Plus, BT Haber. In addition, Rusen publishes consumer product reviews on his YouTube channel. While consumer electronics has been his main focus for years, now Rusen is more interested in WordPress and software development. He had contributed different web application projects in his professional career. Rusen had graduated from Istanbul University, department of Computer Engineering. Rusen has a very high passion for learning and writing for every kind of technology. That's why he has been working as a tech editor for more than ten years on several different technology magazines and online news portals.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

Next Post
Heroku's internal customer database is breached

Heroku's internal customer database is breached

Related News

Scale Computing and Wasabi to create an agile hybrid cloud storage solution

June 28, 2022 12:35 pm
G-Core Labs partners with Graphcore to launch an all-new global cloud AI IaaS

G-Core Labs partners with Graphcore to launch an all-new global cloud AI IaaS

June 22, 2022 5:59 pm
iXsystems introduces second major update of TrueNAS SCALE

iXsystems introduces second major update of TrueNAS SCALE

June 22, 2022 5:45 pm
Azure is the number one cloud provider, report reveals

Azure is the number one cloud provider, report reveals

June 22, 2022 4:25 pm
Get free daily newsletters from Cloud7 News Get the Cloud7 Newsletter

Check your inbox or spam folder to confirm your subscription.

By subscribing, you agree to our
Copyright Policy and Privacy Policy

Editor's Choice

Interview with Igor Seletskiy on AlmaLinux

7 best hosting control panels

How to update Linux Kernel without rebooting?

7 best Linux mail servers for 2022

7 best cPanel alternatives for 2022

7 best Linux web browsers for 2022

7 best CentOS alternatives

7 best Linux server distros for 2022

How to scan your server for Log4j (Log4Shell) vulnerability

10 Best Web Hosting Services of 2022

AlmaLinux 8.6 Stable is ready to download

Ubuntu 22.04 LTS is available for download. What is new?

Kali Linux 2022.2 is ready for download

Advertisement

Recent News

  • Many Kubernetes instances are exposed to the internet
  • Firefox 102 released with Query Parameter Stripping
  • Mitre releases 2022’s most dangerous bugs
  • Nvidia has released the 515.57 display driver
  • Memory corruption vulnerability found in OpenSSL v3.0.4

Our Latest Interview

Interview: Erez Barak, Vice President Observability of Sumo Logic
Interview

Interview: Erez Barak, Vice President Observability of Sumo Logic

by Atalay Kelestemur
November 25, 2021 3:23 am


Cloud7 News is a news source that publishes the latest news, industry news and exclusive interviews on web hosting, cloud computing, data center, cybersecurity and linux.

News Categories

  • Web Hosting
  • Cloud Computing
  • Data Center
  • Cybersecurity
  • Linux
  • Network/Internet
  • Software
  • Hardware
  • Blockchain

Our Free Modules

  • Events
  • Interviews
  • Jobs
  • Opinion
  • Whitepapers
  • Glossary
  • Community Forum
  • Web Hosting Directory

Get the Cloud7 Newsletter

Get FREE daily newsletters from Cloud7 delivering the latest news and reviews.

  • About
  • Privacy & Policy
  • Copyright Policy
  • Contact

© 2022, Cloud7 News. Latest Cloud Computing, Web Hosting, Data Center Industry and Tech News

No Result
View All Result
  • Cloud Computing
  • Web Hosting
  • Data Center
  • Linux
  • Cybersecurity
  • More
    • Network/Internet
    • Windows
    • Software
    • Hardware
    • Blockchain
    • Policy/Legislation
    • How-Tos
    • Troubleshooting
  • Events
  • Interviews
  • Jobs
  • Opinion
  • Whitepapers
  • Glossary
  • Community Forum
  • Web Hosting Directory

© 2022, Cloud7 News. Latest Cloud Computing, Web Hosting, Data Center Industry and Tech News

Welcome Back!

Sign In with Facebook
Sign In with Google
Sign In with Linked In
OR

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Sign Up with Facebook
Sign Up with Google
Sign Up with Linked In
OR

Fill the forms below to register

*By registering into our website, you agree to the Terms & Conditions and Privacy Policy.
All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.