Skip to content

Releases: reverseame/KeyReaper

KeyReaper v1.8

16 May 02:13
e6be1c0

Choose a tag to compare

What's Changed

  • Improved CryptoAPI scanning to extarct DSSENH keys BRANCH
  • Fixed path detection on DLL injections
  • Fixed bug when checking if a process is alive
  • CRYPT_ARCHIVABLE also set when forcing an RSAENH key to export
  • Some code cleanup

KeyReaper v1.7

02 Apr 01:28

Choose a tag to compare

Changelog for v1.7

  • Improved heap detection.

Context

With bigger heaps, the memory regions that contain the keys start to split up, and may not only be contained within the default heap, or be in the same region as the process heaps.

Solution

We noticed that the keys were being generated in regions that were classified by other tools such as VMMap as heap. This made us wonder what criteria was used to classify the region as heap. Following different researches about Windows heap, we stumbled upon different resources:

Thanks to them, we noticed that, in the beginning of each heap region, either the _HEAP_SEGMENT or the _HEAP structure appeared. Thanks to its fields BaseAddress and Heap, we could determine the presence of a heap segmete on the page. Fortunately, both structures start the same, and a difference we could notice was having the Heap field different.
We acknowledge that some of the structures used are may not be the same across different versions of Windows, and it has only been tested in W10. According to Terminus Project, this heuristic won't work on WinXP.

How to use it

To enable this option, set the -x flag when the scan subcommand is issued.

KeyReaper v1.6

03 Mar 14:05
49bde7c

Choose a tag to compare

  • Added IPC for extracting CryptoAPI keys from remote processes using CryptExportKey.
  • Added AES round key scan with Interrogate

KeyReaper v1.4

05 Feb 11:53
cafdb14

Choose a tag to compare

  • Improved heap recovery
  • Added some algorithms
  • Fixes

KeyReaper v1.3

10 Jan 12:16

Choose a tag to compare

Added some fields to the HCRYPTKEY structure

KeyReaper v1.2

07 Dec 12:42

Choose a tag to compare

  • Added option for exporting keys in binary format
  • Bugfixes

KeyReaper v1.1

29 Nov 11:00
f6cb073

Choose a tag to compare

  • Added -v flag to the program
  • Fixed print specifying the location of a HCRYPTKEY stucture

KeyReaper v1

14 Nov 12:49

Choose a tag to compare