Week 1
Dubbed WannaCrypt is a ransomware,
it is a worm that gets infects systems through some attack vector. Some say
that vector was a malicious PDF circulated via a phishing campaign but this is
unconfirmed. It starts with an initial beacon to some C2 server, where it would
either stop or continue. The potential for WC to stop will be discussed later.
Malware calls the C2 to send back an updated version of WC containing a bunch
of things; password protected zip containing Tor, hard-coded bitcoin addresses,
configuration files and encryption keys and a hard-coded domain. It also sent
back an exploit called EternalBlue. EternalBlue was an NSA exploit, leveraging
SMB, over port 445, Server Message Block to propagate itself across network.
SMB is a protocol that allows systems within the same network to share files.
This is how WannaCry only needed one host to infect entire networks. At the
time of the attack Microsoft had released a patch, MS17-010, for the SMBv1 in
April of 2017 that WC used to spread, so the attack was preventable. WC was not
really concerned with obfuscation, anti-debugging, or being VM aware. Now that
WannaCry is installed on a host, the process repeats. This worm was able to
spread without any user interaction.
I think it’s important to talk
about the encryption method since I have not come across this in theory.
WannaCry uses symmetric and asymmetric encryption methods since using both
individually has their caveats. WannaCry encrypts the disk using symmetric
encryption but then reencrypts that key with asymmetric encryption. Two-layer
approach and turned out to be very effective. The asymmetric private key
generated would be then sent back to the C2 server and deleted on the host so
users couldn’t decode their encryption files and determine the private key
value. Also, the steps taken were an encrypt first, ask the server questions
later. If the C2 server disappeared there is no hope at decryption because the
private key is gone. A large problem tracking the C2 is that Tor and the dark
web makes it quite difficult to find these servers.
Marcus Hutchins, discovered a
domain hardcoded in WC. When he registered the domain, WC would stop at the
first step and not encrypt because the encryption would only happen if the malware
was unable to connect to the domain. He then pointed the HTTP request to his
own DNS sinkhole which dissolved the traffic to nothing. A few days after variants
of wannacry came out that later excluded this solution.
One mitigation to avoid paying
the ransom would be to back up from a known good backup whether it’s on another
hard disk or in cloud storage.
The effected were generally large
corporations, universities, hospitals etc. all around the globe. The larger the
less of a chance they had to roll out the SMB update because of the size of the
network, generally taking more time due to cost. NHS clinics couldn’t access
their systems and turned away patients, Renault automotive giant in France had
production wacked, Deutsche Bahn, FedEx, Nissan were all hit.
Dubbed WannaCrypt is a ransomware, it is a worm that gets infects systems through some attack vector. Some say that vector was a malicious PDF circulated via a phishing campaign but this is unconfirmed. It starts with an initial beacon to some C2 server, where it would either stop or continue. The potential for WC to stop will be discussed later. Malware calls the C2 to send back an updated version of WC containing a bunch of things; password protected zip containing Tor, hard-coded bitcoin addresses, configuration files and encryption keys and a hard-coded domain. It also sent back an exploit called EternalBlue. EternalBlue was an NSA exploit, leveraging SMB, over port 445, Server Message Block to propagate itself across network. SMB is a protocol that allows systems within the same network to share files. This is how WannaCry only needed one host to infect entire networks. At the time of the attack Microsoft had released a patch, MS17-010, for the SMBv1 in April of 2017 that WC used to spread, so the attack was preventable. WC was not really concerned with obfuscation, anti-debugging, or being VM aware. Now that WannaCry is installed on a host, the process repeats. This worm was able to spread without any user interaction.
No comments:
Post a Comment