November 26, 2026
Ransomware Attack Simulation
Today I have performed a Ransomware Attack in a controlled Virtual Lab showing how updating your Operating system and keeping timely backup…
By Niket Aggarwal
2 min read
Today I have performed a Ransomware Attack in a controlled Virtual Lab showing how updating your Operating system and keeping timely backup can save you
About Simulation
Attacker Machines:- Kali-Linux (10.0.2.1) Victim Machine:- Windows7 (10.0.2.9) Tools used:- nmap, Metasploit Malware:- WannaCry.exe (a small one from a github Repo)
What is Ransomware?
Ransomware is a type of malicious software (malware) that blocks access to a victim's data or computer systems until a ransom is paid, typically demanded in untraceable cryptocurrency
How To perform
RECONNAISSANCE
- First Connect Both Machine to same network so that they are accessible
- Do a proper network scan using nmap over the range of Attacker Ip → nmap -Pn -sV -sC 10.0.2.1/24 -p- → Pn (Donot Ping the Ip as sometie ICMP packets are block so we can get host is sleep), sV(tells version), sC(runs default script using NSE), -p-(Check all ports)
- From here got an IP on which so many port are open so perfomer another scan using nmap to know about that New
SCANNING AND ENUMERATION
- Here Got Info about System Now try to find any vulnerability for it
- Here got a vulnerabilty Remote Code Execution
Remote Code Execution
RCEs a cybersecurity vulnerability that lets an attacker run arbitrary code or commands on another system over a network without physical access. It is one of the most severe flaws because it can lead to full system or server compromise
GAINING ACCESS
- Using msfconsole for use this vulneability
msfconsole
msfconsole is the primary command-line interface (CLI) for the Metsploit Framework, a Ruby-based penetration testing platform maintained by Rapid7. It gives security testers centralized access to Metasploit's scanning, exploitation, payload, and post-exploitation modules
- Use the vulnerabilty (ms17–010)
- Search for Pre Avialable exploit
- use that and entered the necessary requirements gained from reconnaissance
- Gain the Reverse Shell
MALWARE EXECUTION
- Downloading files and upload WannaCry.exe and excutig it
Final View of Victim Machine
All files are encrypted and asking for Ransome to decrypt the files
Conclusion
This ransomware attack simulation demonstrates how attackers can exploit security vulnerabilities in an outdated operating system to gain unauthorized access and compromise a victim's machine.
Through this hands-on practical, I gained a better understanding of the different stages of a ransomware attack, including reconnaissance, vulnerability scanning, exploitation, gaining unauthorized access and malware execution. It also highlighted the importance of keeping operating systems updated, applying security patches, using reliable antivirus solutions, maintaining regular offline backups and monitoring network activity
Note: This experiment was conducted strictly in an isolated virtual lab for educational and cybersecurity learning purposes