β οΈ Safety-first: This repository contains materials for a harmless educational simulation only. It does not contain working ransomware or encryption routines. The goal is defensive learning: to study indicators, logging, and response procedures in a controlled environment.
This project demonstrates, at a conceptual level, how a ransomware-like workflow behaves so that students and defenders can learn detection and recovery workflows. It is explicitly designed not to cause harm and must only be used in an isolated lab on non-sensitive sample files.
- No destructive code: this repository does not include any real encryption, extortion, or destructive payloads.
- Isolated environment only: testing MUST be done in a disposable virtual machine (VM) with no network access to production systems.
- Snapshots & backups: always take a VM snapshot before testing and restore from snapshot afterward.
- Consent & legality: obtain explicit permission from the lab owner/teacher. Do not run on machines you don't own or administer.
- File access patterns that resemble malicious activity (file enumeration, rapid file reads/writes, rename patterns).
- Creation of βransom noteβ files containing static example text (no extortion content).
- Changes to filenames and metadata on dummy files to simulate the visual effects of encryption (for example, appending a
.lockedmarker rather than encrypting contents). - Logging and monitoring techniques to detect and analyze suspicious activity.
- Recovery workflow: restoring snapshots and comparing file system state before/after.
- Host machine capable of running VMs (VirtualBox, VMware, or similar).
- One or more sandbox VMs (Windows recommended for .bat educational parity), freshly installed.
- VM tools installed and snapshots enabled.
- Optional: tools for monitoring and analysis β Process Monitor (ProcMon), Sysmon, Windows Event Viewer, Wireshark, and a file system comparison tool.
-
Create a directory
C:\lab-samples\inside the VM. -
Populate it with non-sensitive dummy files:
- text files (
sample1.txt,sample2.txt) - images (
img1.jpg,img2.jpg) created with placeholder images - binary placeholders (
dummy1.bin,dummy2.bin) β zero-filled files are fine
- text files (
-
Do not use any real personal or production files.
The simulation is intended to show behavior without changing file contents. A safe simulation can be implemented by someone in your class/teacher lab that only:
- enumerates
C:\lab-samples\and records filenames to a log, - creates a copy of each filename with a marker suffix (for example
sample1.txt.locked), leaving the original file intact, or creates empty marker files to represent βencryptedβ versions, - writes a static example ransom-note text file
README_LOCKED.txtcontaining a placeholder message explaining this is a simulation and listing steps to recover.
Important: The README above intentionally avoids giving the specific batch commands or code to carry out these actions. If your instructor needs a runnable simulation, they should produce and vet the script in a controlled classroom context.
- Take a VM snapshot labeled
pre-simulation. - Ensure the VM is offline from any production network (air-gapped if required).
- Place only the prepared dummy files in the test folder.
- Execute the simulation under supervision.
- Observe and collect logs with monitoring tools (ProcMon, Sysmon, Windows Event Viewer).
- When done, restore the VM snapshot to return to the initial state.
- File system activity: enumeration, file opens, file renames, file creation.
- Process activity: which process performed file operations, spawn/parent relationships.
- Network activity (if any): connections to external hosts (if the simulation includes safe, local-only network tests).
- Event logs: Windows Event Viewer and Sysmon logs.
- Timestamps and order of operations for later timeline reconstruction.
- Identify indicators of suspicious activity (rapid file modification patterns, unusual process names).
- Develop detection rules: e.g., Endpoint Detection and Response (EDR) signatures or SIEM alerts for the observed indicators.
- Practice incident response: isolate VM, collect forensic artifacts, create a remediation plan, restore snapshot.
- Understand recovery limitations and the importance of off-site backups and immutable snapshots.
- Do not attempt manual file recovery on the VM; use the snapshot to revert to
pre-simulation. - Document the restore time and validate that all dummy files are present and unmodified after restore.
- VM snapshot created.
- VM is isolated from production networks.
- Test files are dummy, non-sensitive.
- All participants have given consent.
- Instructor or authorized admin supervising.
- Logging tools deployed and recording.
If students uncover real vulnerabilities or produce tools that could be misused, follow your institutionβs or organizationβs disclosure policy. Never publish working malware or instructions that facilitate harm.
(Non-actionable references β add links if your class resources allow)
- Endpoint monitoring & detection best practices
- Forensic analysis workflows
- How to configure Sysmon for file-creation/process monitoring
- Incident response runbooks
If this repo is for a class, I can help draft a vetted instructor-only sample script that performs only harmless operations (creating marker files, generating example logs) and includes a teacher checklist and classroom assignment sheet. The instructor should review and execute that script, not students on their home machines.