Skip to content
Account takeover Write-up Advanced

Uncovering Hybrid Cloud Attacks Part 3 – The Response

Attackers compromised a privileged AWS IAM user and used it to obtain local administrator passwords for EC2 instances, install reverse shells, and access sensitive RDS databases. They maintained persistence via a compromised on-premises jump server, allowing them to regain access after credential rotations.

Yotam Meitar Follow

Published on wiz.io

In the final section of this blog series on uncovering complex hybrid cloud attacks, we’ll share key elements of the response to the real-world sophisticated cloud attack outlined in Part 2. To protect the victim organization’s identity, certain details of the attack have been modified and combined with other attacks…

Yotam Meitar, on wiz.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the initial compromise occurred via phishing on an employee's home computer, which was used to access a Citrix VDI and then a jump server, from which attackers obtained AWS credentials and escalated privileges.

Impact

Attackers could access sensitive RDS databases and exfiltrate data, and the full scope of exfiltration remains unknown due to audit policy modifications.

What the attacker needed

Employee with access to jump server; employee uses home computer for Citrix; attacker can phish employee

The fix

The organisation rotated credentials, quarantined and restored EC2 instances, restored logging policies, added VPC Flow Logs and detection rules, and eradicated reverse shells; however, the attack recurred until the root cause (phishing on a home computer) was identified.

How it was found

  1. Attackers phished a dev-ops employee's home computer.
  2. The employee used the compromised home computer to access a Citrix VDI and then an on-premises jump server.
  3. Attackers installed a reverse shell on the jump server.
  4. Attackers used the jump server to obtain AWS credentials for a privileged IAM user.
  5. The IAM user performed GetPasswordData on EC2 instances to obtain local administrator passwords.
  6. Attackers installed reverse shells on EC2 instances and modified audit policies to cover their tracks.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This is a story about a real attack on a company's computer systems. The attackers stole a powerful password (credentials) that let them control cloud servers, and they also hid a secret way back in through an office computer, so even after the company changed the password, the attackers could get back in. The company had to investigate deeply, using logs and threat intelligence, to finally understand and stop the attack.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by Yotam Meitar

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.