Chapter 10. Setting Up Backdoors and Escalating Privileges in Google Cloud
In the previous chapter, you learned how attackers could leverage malicious file uploads to compromise an event-driven file processing workflow. In this chapter, you’ll explore how the initial access gained from such attacks can be leveraged to set up backdoors, escalate privileges, and compromise other cloud resources. Building on what you learned previously, you’ll examine various techniques attackers can use to bypass restrictions and perform privilege escalation within a Google Cloud environment.
More specifically, you’ll start by setting a lower request timeout to limit the attacker’s window for running malicious commands inside a reverse shell session. After simulating how an attacker would adjust their techniques to circumvent the constraints, you’ll further reduce the request timeout setting of the vulnerable Cloud Run service to 10 seconds and reduce the permissions of the associated service account to avoid having an attacker immediately gain owner-level privileges when the vulnerable service is compromised. After implementing these changes to the serverless lab environment, you’ll simulate an attacker bypassing the new restrictions and configuring a backdoor service account to maintain persistent access. You’ll then explore multiple strategies and approaches that an attacker could use to abuse misconfigurations and escalate privileges within a Google Cloud account.
This chapter is divided into ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access