Giter VIP home page Giter VIP logo

avaddondecryptor's Introduction

AvaddonDecryptor

This is an open-sourced tool to decrypt systems infected with Avaddon ransomware. In order to do so, the computer should not have been powered off after the infection.

Instructions

  1. Download the Sysinternals Suite to the infected system. Executable files are not encrypted by Avaddon. In particular, you will need two tools from the Suite: Process Explorer and ProcDump.

  2. Open Process Explorer as administrator and locate the Avaddon process. Suspend (do not kill it!) the process and note the PID of the process.

  3. Open a cmd as administrator and dump the memory of the process. To do so, you can run 'procdump.exe -ma <PID>', where <PID> is the PID of the ransomware process we saw in the second step.

  4. In addition to the memory dump, you will need an encrypted file and the original version of such encrypted file. If you do not have any, you may drop a copy of a dummy text file to the infected system prior to suspending the process (or drop the file, resume the process, wait until the file is encrypted and suspend the process again). I usually leave the memory dump, the encrypted file and its original version in the 'dump_and_original_file' folder.

  5. Open a cmd as administrator (important, since the process will need administrator rights to decrypt some folders) and run the decryptor as follows:

    python3 main.py -f <encrypted_file> -o <original_file> -d <memory_dump> --folder <folder_to_decrypt>

Note that decryption of the given folder is done recursively. So, to decrypt the whole system, the <folder_to_decrypt> value should be 'C:\'

Strings decryption

./utils/decrypt_strings.py contains a Python script to decrypt and label obfuscated strings of Avaddon in Binary Ninja. Note that it was developed for the first versions of Avaddon. Later versions use different XOR keys, although the overall process remains similar.

Credits

searchbin.py is a slightly modified version of https://github.com/Sepero/SearchBin. I have only added a json class to output the results.

Citing

Details of this work can be found in the full article:

@misc{yuste2021avaddon,
      title={Avaddon ransomware: an in-depth analysis and decryption of infected systems}, 
      author={Javier Yuste and Sergio Pastrana},
      year={2021},
      eprint={2102.04796},
      archivePrefix={arXiv},
      primaryClass={cs.CR}
}

avaddondecryptor's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.