Ransomware for Fun and Non-Pro
t 
Youness Zougar (@L3tsXpl0it) 
zougar92@gmail.com 
October 30, 2014 
In this paper, I will be explaining how Ransomware works by giving some 
examples. This is done for Educational purposes only to understand better 
how Ransomware behaves. 
1 What is a Ransomware ? 
Brie
y, Ransomware is a type of malware created in the aim to restrict 
access to a victim's computer by encrypting
les on the hard drive. After 
that, the victim is asked to pay the attacker to get the restriction removed by 
decrypting the encrypted
les. CryptoLocker for example is a Ransomware 
that infected more than 200K systems in the world, and generated millions 
of dollars to its developer. 
2 How does it work ? 
The process is simple. Generally, when the Ransomware gets executed, it 
scans in background all the directories on the system looking for interesting
les' extensions (.docx, .xlsx...) that were hard coded in it, then it en- 
crypts them using an encryption key. Some Ransomwares block completely 
the victims to access the system by changing the Winlogon shell value from 
explorer.exe to the the path of the malware executable. At the end, the Ran- 
somware pops-up a window asking the victim a ransom to get the decryption 
key. To push the victim to pay as fast as possible, some Ransomwares cap- 
ture webcam session and use it to freak out the victim. 
Now, we have an idea how simple Ransomware works. Let's go deeper 
into its functions. 
1
3 How Ransomware is made ? 
3.1 Scenario 
Let's think of a simple Ransomware scenario. 
The victim will get the executable on his machine (torrent download, an 
infected USB stick...) and launches it. A window will pop-up displaying a 
loading bar asking the victim to wait. 
In the meantime and in background, all the interesting

Ransomware for fun and non-profit

  • 1.
    Ransomware for Funand Non-Pro
  • 2.
    t Youness Zougar(@L3tsXpl0it) zougar92@gmail.com October 30, 2014 In this paper, I will be explaining how Ransomware works by giving some examples. This is done for Educational purposes only to understand better how Ransomware behaves. 1 What is a Ransomware ? Brie y, Ransomware is a type of malware created in the aim to restrict access to a victim's computer by encrypting
  • 3.
    les on thehard drive. After that, the victim is asked to pay the attacker to get the restriction removed by decrypting the encrypted
  • 4.
    les. CryptoLocker forexample is a Ransomware that infected more than 200K systems in the world, and generated millions of dollars to its developer. 2 How does it work ? The process is simple. Generally, when the Ransomware gets executed, it scans in background all the directories on the system looking for interesting
  • 5.
    les' extensions (.docx,.xlsx...) that were hard coded in it, then it en- crypts them using an encryption key. Some Ransomwares block completely the victims to access the system by changing the Winlogon shell value from explorer.exe to the the path of the malware executable. At the end, the Ran- somware pops-up a window asking the victim a ransom to get the decryption key. To push the victim to pay as fast as possible, some Ransomwares cap- ture webcam session and use it to freak out the victim. Now, we have an idea how simple Ransomware works. Let's go deeper into its functions. 1
  • 6.
    3 How Ransomwareis made ? 3.1 Scenario Let's think of a simple Ransomware scenario. The victim will get the executable on his machine (torrent download, an infected USB stick...) and launches it. A window will pop-up displaying a loading bar asking the victim to wait. In the meantime and in background, all the interesting