5 ms·
I wonder if that RSA happens to be very weak too, as evidenced here: http://blog.cassidiancybersecurity.com/post/2014/02/Bitcrypt-broken http://blog.cassidiancy
by userbinator 12y ago
I wonder if that RSA happens to be very weak too, as evidenced here:
http://blog.cassidiancybersecurity.com/post/2014/02/Bitcrypt-broken http://blog.cassidiancybersecurity.com/post/2014/02/Bitcrypt...
In some ways a lot of the crypto used by ransomware might just be "for show" - to mung files only enough to cause people to pay, as that's the ultimate goal.
- jacquesm 12y agoIt's an optimization: if they do it really fast then they can scare you harder because you lose more files. After all, to a regular end-user bad crypto is indistinguishable from good crypto (and to plenty of programmers too).
- pilif 12y agoIn general, I would agree, but wouldn't you be using the slow public key crypto only once to encrypt a symmetric key you've previously generated to destroy the files? I would assume that symmetric encryption still is more than fast enough to be scary, especially with current CPUs and native AES support. I would think this is more laziness/incompetence of the developer than an optimisation (even more so as in the OP's article, the file were properly(-ish - I would have used AES over RC4) encrypted, but the symmetric key was attached to the file).
- ryan-c 12y agoI don't see a listing of the RSA encryption function, but encrypting 1024 bytes with RSA requires an 8192 bit RSA key, which would take a while to generate. Normally, one generates a random symmetric key, encrypts that with RSA and uses that key to encrypt the file. If the malware was doing that, why not just do it on the whole file? It wouldn't be any slower. They may have hard-coded an 8192 bit RSA public key, or they may have some stupid weak RSA key generation scheme.