BREACH POST-MORTEMT1078 Valid AccountsT1133 External Remote ServicesT1555.003 Browser credentialsT1041 Exfiltration

How I would have detected the Medibank breach

TL;DRThe 2022 Medibank breach exposed data on about 9.7 million people. According to the regulator, it started with one contractor's saved browser passwords and a VPN with no MFA. The attacker then spent around seven weeks inside while EDR alerts went unhandled. This wasn't one missed alert. There were at least five points where a control or a detection could have stopped it.

Based on the public allegations in the Australian Information Commissioner's Federal Court filing and timeline. These are allegations, and this is my analysis of them, not inside knowledge.

The attack, stage by stage

Before 7 Aug 2022Credentials saved and synced
What happened

A contractor's IT service desk operator saved his Medibank usernames and passwords, including an admin account, in his personal browser profile on a work computer. They synced to his personal computer.

How I'd catch or stop it

Nothing a SOC could see. This is a control gap: block personal browser profile sign-in and password sync on managed devices, and keep admin accounts out of browsers entirely.

Prevent
Around 7 Aug 2022Infostealer takes the passwords
What happened

Malware on his personal computer stole the saved Medibank credentials.

How I'd catch or stop it

Still outside Medibank's view. Credential exposure monitoring (infostealer log feeds) could have flagged the account and forced a reset.

Prevent
12 Aug 2022Attacker tests the admin login
What happened

The attacker tested the stolen admin credentials.

How I'd catch or stop it

A privileged account signing in from an IP, country or ASN it has never used. This is the first point a SOC could have caught it.

Detect
Around 23 Aug 2022VPN login with no MFA
What happened

The attacker logged into the Global Protect VPN with just the username and password, because MFA wasn't required, and installed a malicious script.

How I'd catch or stop it

MFA on the VPN stops this outright. Without it: a service desk admin account on the VPN from a new IP and device (the first query below).

Prevent + detect
Around 24 to 25 Aug 2022EDR alerts fire, nobody acts
What happened

EDR alerts went to the IT Security Operations inbox but, the regulator alleges, were not properly triaged or escalated.

How I'd catch or stop it

The detection worked. The process failed. High-severity EDR alerts need an owner, a triage time limit and a clear escalation path, not a shared inbox.

Respond
Around 25 Aug to 13 Oct 2022Weeks inside, about 520GB taken
What happened

The attacker moved through many systems and took roughly 520GB of data. More EDR alerts went unhandled.

How I'd catch or stop it

Hosts or accounts sending far more data out than their baseline, archive tools running on servers, and jump box access to customer databases outside normal hours.

Detect
11 Oct 2022Finally triaged
What happened

A high-severity alert was triaged and a third party brought in. Days later the attacker contacted Medibank with sample data.

How I'd catch or stop it

About seven weeks after the VPN login. Every stage above was a chance to end it sooner.

Respond

The detection I'd build first

If I could deploy only one rule, it would be this one: a privileged account on the VPN from an IP address it has never used before. It targets the exact moment the attacker crossed from stolen passwords into the corporate network.

privileged_vpn_login_new_ip.kqlT1078 / T1133
let admins = _GetWatchlist('PrivilegedAccounts') | project SearchKey;
let knownIPs = CommonSecurityLog
| where TimeGenerated between (ago(30d) .. ago(1d))
| where DeviceProduct has "GlobalProtect" or Activity has "GLOBALPROTECT"
| distinct SourceUserName, SourceIP;
CommonSecurityLog
| where TimeGenerated > ago(1d)
| where DeviceProduct has "GlobalProtect" or Activity has "GLOBALPROTECT"
| where SourceUserName in~ (admins)
| join kind=leftanti knownIPs on SourceUserName, SourceIP
| project TimeGenerated, SourceUserName, SourceIP, DeviceName

And for the seven weeks that followed, a simple data volume baseline:

outbound_volume_spike.kqlT1041
// Internal hosts sending 10x their usual daily volume to the internet
CommonSecurityLog
| where TimeGenerated > ago(15d) and Activity == "TRAFFIC"
| where not(ipv4_is_private(DestinationIP))
| summarize SentGB = sum(SentBytes) / 1e9 by SourceIP, Day = startofday(TimeGenerated)
| summarize Today = sumif(SentGB, Day == startofday(now())),
            Baseline = avgif(SentGB, Day < startofday(now())) by SourceIP
| where Today > 5 and Today > Baseline * 10

Field names follow Palo Alto logs in Microsoft Sentinel's CommonSecurityLog table. Adjust them for your firewall and VPN. Both queries are on GitHub.

What I take from it

1. MFA on remote access is not optional. It would have stopped this attack at the VPN. 2. Contractors are part of your attack surface. Their personal devices touched admin credentials. 3. Alerts without an owner are just logs. The EDR did its job. The triage process didn't. 4. Admin accounts need their own rules: separate accounts, no saved passwords, and alerts on any unusual use.

References

← Back to portfolio