GitHub公開「Wannakey」找出WannaCry的加密鍵

本帖最後由 salesman 於 2017-5-22 14:58 編輯

Introduction

This software allows to recover the prime numbers of the RSA private key that are used by Wanacry.

It does so by searching for them in the wcry.exe process. This is the process that generates the RSA private key. The main issue is that the CryptDestroyKey and CryptReleaseContext does not erase the prime numbers from memory before freeing the associated memory.

This is not really a mistake from the ransomware authors, as they properly use the Windows Crypto API. Indeed, for what I've tested, under Windows 10, CryptReleaseContext does cleanup the memory (and so this recovery technique won't work). It can work under Windows XP because, in this version, CryptReleaseContext does not do the cleanup. Moreover, MSDN states this, for this function : "After this function is called, the released CSP handle is no longer valid. This function does not destroy key containers or key pairs.". So, it seems that there are no clean and cross-platform ways under Windows to clean this memory.

If you are lucky (that is the associated memory hasn't been reallocated and erased), these prime numbers might still be in memory.

That's what this software tries to achieve.

https://github.com/aguinet/wannakey

WARNING

This software has only been tested and known to work under Windows XP, 7 x86, 2003, Vista and Windows Server 2008 (tests by @msuiche).

Please also note that you need some luck for this to work (see below), and so it might not work in every case!

本帖最後由 ronaldlee1607 於 2017-5-23 09:39 編輯

Guess this will work for those PC have not shutdown after affected by Wannacry. Data in memory all gone once no power.

TOP

個毒唔係有限時既咩?

TOP

題目應該係
有人在GITHUB公開找出WannaCry的私鑰的方法

TOP

Another security hole save your computer data

TOP

咁係唔係要中左之後唔關機先用到

TOP

咁係唔係要中左之後唔關機先用到
kwangi 發表於 2017-5-23 16:48



    yes

TOP

因為 xp 清得唔乾淨, 所以先可以推返條 key
一個漏洞救另一個漏洞

TOP

因為 xp 清得唔乾淨, 所以先可以推返條 key
一個漏洞救另一個漏洞
rabbit82047 發表於 2017-5-24 13:55


+1
我覺得似係令大家所有KEY都搵得番既重大危機多D

TOP

因為 xp 清得唔乾淨, 所以先可以推返條 key
一個漏洞救另一個漏洞
rabbit82047 發表於 2017-5-24 13:55


XP清得唔乾淨?
Win7都一樣work喎
即係唔止XP

TOP