Skip to content

A tiny demo intercepting 'WriteFile' on Windows to queue or discard changes. Not production-ready, purely educational.

License

Notifications You must be signed in to change notification settings

VirtualSpaceGit/Mem-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

SafeWrite Hook POC ⚙️

MIT License

Overview

The SafeWrite Hook demonstrates how to intercept file writes on a Windows system. Instead of writing directly to disk, changes are stored in memory until you decide whether to commit them or not. This approach allows you to test updates, modifications, or temporary data without risking permanent changes. It’s a sandbox-like mechanism that helps protect your files and system integrity. Thus, a VirtualSpace Proof Of Concept. 🤝

Key Highlights

  • Intercept & Queue: Captures all file-write operations before they reach the disk using minhook.
  • Controlled Commits: Lets you choose to apply (commit) or discard queued data in your sandbox.
  • Optional Encryption: Keeps queued data safe in memory/sandbox. Using standard XOR for POC purposes.
  • Partial or Full Writes: Commit only parts of your changes or everything at once, essential for debugging.

Simple Flow

  1. Run the Tool – It hooks into the Windows WriteFile function at runtime.
  2. Make Changes – As you or another program attempts to write data, it gets stored (and encrypted) in memory.
  3. Choose an Action – Commit some or all changes, or discard them altogether.
  4. See Results – Check the target file on disk to view the final outcome.

Who Benefits?

  • Developers who need a safe testing environment.
  • Security Enthusiasts looking at data interception techniques.
  • Anyone interested in controlling how data is written to disk.

IMPORTANT ALERT

⚠️ This is strictly a Proof of Concept. It does not represent a production-ready tool and should not be relied on for actual security or data protection. Use it solely for demonstration and educational purposes.

License

This project is released under the MIT License. Feel free to fork, modify, and share!


About

A tiny demo intercepting 'WriteFile' on Windows to queue or discard changes. Not production-ready, purely educational.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published