The Colonial Pipeline breach (May 2021)
One leaked password for a forgotten account opened the door to the DarkSide gang. Investigate the logs and see how it all happened step by step.
One leaked password for a forgotten account opened the door to the DarkSide gang. Investigate the logs and see how it all happened step by step.
The evidence is recreated with fictional names and addresses, following the pattern of the real incident. Imagine an Iraqi oil company with the same setup: a VPN for staff, and an old account nobody uses but nobody closed.
0 of 16 · 0 of 265 points
Linux terminal
Try this room's commands on real Linux running in your browser, with the files you need.
Task 1: Introduction
Scenario: The evidence is recreated with fictional names and addresses, following the pattern of the real incident. Imagine an Iraqi oil company with the same setup: a VPN for staff, and an old account nobody uses but nobody closed.
What you'll learn in this room
- Understand how an old VPN account without MFA stopped the largest fuel pipeline in the US
- Spot a suspicious sign-in in VPN logs
- Build the timeline: access, data theft, ransomware and the operational decision
Each task has an explanation and questions you answer by typing. At the end there is a hands-on lab where you hunt for flags, then the quiz.
1.1Let's start
Task 2: What happened in the world
What happened in the world
- On 7 May 2021 Colonial Pipeline found ransomware on its systems. The company runs a fuel pipeline about 5,500 miles long that carries roughly 45% of the fuel of the US East Coast.
- The attackers were the DarkSide gang, working as "ransomware as a service" (RaaS). Before encrypting they stole about 100 GB of data.
- The company stopped the whole pipeline as a precaution, causing shortages and queues for petrol, and restarted it on 12 May.
- It paid a ransom of 75 bitcoin (about $4.4 million), and the US Department of Justice recovered 63.7 bitcoin of it on 7 June 2021.
cd incidents/colonial
cat edr.log
cat decisions.txt
2.1In edr.log, what is the name of the ransomware family?
52.2In decisions.txt, was the pipeline's control (OT) network encrypted? (yes or no)
5Task 3: The door that opened
The door that opened
- According to the CEO's testimony to Congress in June 2021, the attackers got in through an old VPN account that was no longer used but still enabled.
- The account's password was in a list of leaked passwords, and the account had no MFA.
- Mandiant, which investigated the incident, said the first access was on 29 April 2021, more than a week before the encryption.
- The lesson: forgotten accounts are dangerous, because nobody watches them and nothing protects them.
cat accounts.csv
grep legacy.vpn vpn.log
grep 'mfa=none' vpn.log
3.1In accounts.csv, which enabled account has no MFA?
103.2In vpn.log, what is the date this account was last used normally before the attack? (YYYY-MM-DD)
103.3From which IP did the attacker sign in with this account?
103.4The same IP tried another account but was refused because it had MFA. What is that account's name?
10Task 4: How to investigate an incident like it
How to investigate an incident like it
- VPN logs: look for an account unused for months that suddenly comes back, especially at night, from a new IP and without MFA.
- Data theft: look for large amounts leaving a file server to an outside address before the encryption. Ransomware gangs steal before they encrypt so they can extort twice.
- The ransomware: EDR alerts, commands like
vssadmin delete shadowsthat wipe the machine's backup copies, and thousands of renamed files. - Network separation: at Colonial the ransomware hit the IT network, and the pipeline was stopped as a precaution even though the control (OT) network was not encrypted.
cat firewall.log
grep 10.1.4.20 firewall.log | awk -F'mb_out=' '{s+=$2} END {print s}'
grep vssadmin edr.log
4.1In firewall.log, from which internal server (IP) did the stolen data leave?
54.2How many GB left it in total? (1 GB = 1024 MB)
104.3How many days passed between the attacker's first sign-in and the first ransomware alert?
10Task 5: Lab: The forgotten account
The forgotten account
Finish the timeline: where was the first machine encrypted, and what measure would have stopped everything from the start? Then look at the leak check report.
grep detection edr.log | head -1
cat leak-check.txt
5.1In edr.log, what is the name of the first host with a ransomware alert?
105.2Which protection (in English, 3 letters) would have made the sign-in fail if it was turned on for the account?
105.3Find the flag in the leak check report.
20Task 6: Quiz
Quiz
Answer the questions to complete the room. Go back to the tasks if you need to.
6.1What could have stopped the first access at Colonial Pipeline?
506.2Why do ransomware gangs steal data before encrypting it?
506.3Why did Colonial stop the pipeline even though the control network was not encrypted?
50