Skip to content
zyphcorePublic

About

An educational simulation πŸ§ͺ demonstrating how file-encryption malware behaves πŸ”’, designed to run only inside an isolated lab πŸ›‘οΈ on non-sensitive sample files πŸ“. Intended for awareness and defensive learning πŸ‘€; do not run on production or personal systems ⚠️. Includes clear safety instructions πŸ“–.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

Educational Ransomware Simulation β€” Safe Lab README

⚠️ 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.

Purpose

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.

Key principles

  • 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.

What this simulation demonstrates (high-level)

  • 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 .locked marker 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.

Required environment

  • 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.

Safe test data (create these to use in the lab)

  • 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
  • Do not use any real personal or production files.

Safe simulation behavior (non-actionable)

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.txt containing 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.

How to run a safe simulation (process-level, non-actionable)

  1. Take a VM snapshot labeled pre-simulation.
  2. Ensure the VM is offline from any production network (air-gapped if required).
  3. Place only the prepared dummy files in the test folder.
  4. Execute the simulation under supervision.
  5. Observe and collect logs with monitoring tools (ProcMon, Sysmon, Windows Event Viewer).
  6. When done, restore the VM snapshot to return to the initial state.

What to observe and record

  • 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.

Analysis & learning objectives

  • 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.

Recovery

  • 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.

Safety checklist (must be completed before any run)

  • 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.

Responsible disclosure & teaching note

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.

Further reading & defensive tools

(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 you are an instructor

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.

About

An educational simulation πŸ§ͺ demonstrating how file-encryption malware behaves πŸ”’, designed to run only inside an isolated lab πŸ›‘οΈ on non-sensitive sample files πŸ“. Intended for awareness and defensive learning πŸ‘€; do not run on production or personal systems ⚠️. Includes clear safety instructions πŸ“–.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages