It's hilarious that it uses public-key crypto, yet lets the client know the private key. What's even the point, then?
Exactly. I would've thought the malware would ask a C&C server to generate a key pair and then only send the public key to the malware. But I guess perhaps that required too much processing power for the server. But then again this can also distributed: let a random victim generate an RSA keypair for another victim.
WannaCry in-memory key recovery for Windows XP
31–40 of 95 posts
Re: WannaCry in-memory key recovery for Windows XP
#32It's hilarious that it uses public-key crypto, yet lets the client know the private key. What's even the point, then?
I mean a technical user capable of this solution is not very likely to get hit by this in the first place. The hacker probably doesn't care if x% of people defeat the encryption.. as long as x% pay the ransom.
Re: WannaCry in-memory key recovery for Windows XP
#33It's hilarious that it uses public-key crypto, yet lets the client know the private key. What's even the point, then?
I don't know the exact details of how WannaCry encrypts the files, but ransomware generally works like this: when hitting a new machine, it generates a random key K1 and then encrypts all the user's files with AES (or some other symmetric key encryption) using K1 as the key. It then encrypts K1 itself using some public key Kpub embedded in the ransomware, then stores the encrypted K1 on disk. When the user pays the r…
- The attacker's RSA private key (UNKNOWN)
- The attacker's RSA public key (KNOWN)
- The local device's RSA private key (KNOWN, but then poorly wiped)
- This is encrypted with the attacker's RSA public key
- The local device's RSA public key (KNOWN)
- A separate AES key for each file
- These are encrypted with the local device's RSA public key
How decryption should work: Get the local device's RSA private key from the attacker (EDIT: this is not the attacker's RSA private key, it's the local one), then you can decrypt the AES key for each file.Re: WannaCry in-memory key recovery for Windows XP
#34Re: WannaCry in-memory key recovery for Windows XP
#35It's hilarious that it uses public-key crypto, yet lets the client know the private key. What's even the point, then?
I don't know the exact details of how WannaCry encrypts the files, but ransomware generally works like this: when hitting a new machine, it generates a random key K1 and then encrypts all the user's files with AES (or some other symmetric key encryption) using K1 as the key. It then encrypts K1 itself using some public key Kpub embedded in the ransomware, then stores the encrypted K1 on disk. When the user pays the r…
EDIT: CiPHPerCoder appears to have figured how the key management works.
Re: WannaCry in-memory key recovery for Windows XP
#36Earlier quoted context omitted.
I don't know the exact details of how WannaCry encrypts the files, but ransomware generally works like this: when hitting a new machine, it generates a random key K1 and then encrypts all the user's files with AES (or some other symmetric key encryption) using K1 as the key. It then encrypts K1 itself using some public key Kpub embedded in the ransomware, then stores the encrypted K1 on disk. When the user pays the r…
There are 4+N keys involved. - The attacker's RSA private key (UNKNOWN) - The attacker's RSA public key (KNOWN) - The local device's RSA private key (KNOWN, but then poorly wiped) - This is encrypted with the attacker's RSA public key - The local device's RSA public key (KNOWN) - A separate AES key for each file - These are encrypted with the local device's RSA public key How decryption should work: Get the local dev…
Re: WannaCry in-memory key recovery for Windows XP
#37Earlier quoted context omitted.
Heh. Since this only works before a reboot and Windows 10, by design, destructively reboots with no recourse, I could imagine this ironic farce: a) security holes lead to a ransom, b) security holes let you reverse the ransom, but c) forced reboots kill any hope you have of recovering with this kind of hack.
But Windows 10 was for the same reason largely not affected: it was patched and rebooted.
Re: WannaCry in-memory key recovery for Windows XP
#38Earlier quoted context omitted.
There are 4+N keys involved. - The attacker's RSA private key (UNKNOWN) - The attacker's RSA public key (KNOWN) - The local device's RSA private key (KNOWN, but then poorly wiped) - This is encrypted with the attacker's RSA public key - The local device's RSA public key (KNOWN) - A separate AES key for each file - These are encrypted with the local device's RSA public key How decryption should work: Get the local dev…
If someone were to pay up and receive the attacker's private key, what's to stop them from distributing it to others?
Re: WannaCry in-memory key recovery for Windows XP
#39Earlier quoted context omitted.
But Windows 10 was for the same reason largely not affected: it was patched and rebooted.
And Windows XP was not targeted at all by WannaCry.
[0]: https://blogs.technet.microsoft.com/msrc/2017/05/12/customer...
Re: WannaCry in-memory key recovery for Windows XP
#40Earlier quoted context omitted.
There are 4+N keys involved. - The attacker's RSA private key (UNKNOWN) - The attacker's RSA public key (KNOWN) - The local device's RSA private key (KNOWN, but then poorly wiped) - This is encrypted with the attacker's RSA public key - The local device's RSA public key (KNOWN) - A separate AES key for each file - These are encrypted with the local device's RSA public key How decryption should work: Get the local dev…
If someone were to pay up and receive the attacker's private key, what's to stop them from distributing it to others?