Ransomware Simulator for testing Blue Team Detections and to tune their sensors.
Inspired from Scythe's article on emulating ransomware.
This project is meant for educational and research purposes only. I am not responsible for this project being used for malicious purpose.
Compiled in Visual Studio 2019. Download the solution folder and build in Visual Studio with .Net Framework installed.
- Place several dummy files such as documents and pictures in %USERPROFILE%\Reports directory.
- Ransim only encrypts files in that directory and terminates if it does not find that directory.
- If the Rclone function is enabled, the files in that directory will be zipped up and exfiltrated to Mega.
- Run Ransim as administrator.
- Disable AV.
You can choose what tasks to skip by commenting the corresponding functions calls in the source code. For example, you can comment out the DisableFirewall() call if you want Ransim to skip disabling Firewall.
- Ransim terminates if it was not ran as administrator.
- Ransim terminates if it does not find Reports directory in %USERPROFILE% (safety check).
- Runs a location check.
- Runs enabled functions such as credential dumpers, cobalt strike simulator, etc.
- Exfils data to Mega.
- Disables services.
- Starts encrypting all the files only in the Reports directory.
- Upon finishing encrypting all the files in that directory, it downloads the ransom note from pastebin.
- Opens that ransom note in notepad.
- Deletes itself.
Add support for following tools:
- Mimikatz
- LaZagne
- ADFind
- PsExec
- SharpHound
- Cobalt Strike
- PowerView
- Invoke-Kerberoast
- Seatbelt
- Net-GPPPassword
- Rclone + Mega
If you enable the exfil function, Ransim can exfiltrate the data of the Reports directory. Ransim accomplishes this by zipping all the files of the Reports directory to an archive that it subsequently transfers to Mega using RClone.
Just create a free Mega account and download the rclone standalone binary. Then using the free account, create a new remote configuration for Mega. Push that config to your fork. Then, edit the source code so as to use this new config file by Ransim.
Thanks to Carlos for the RSA encryption function.