Giter Club home page Giter Club logo

windows-kernel-file-protector's Introduction

windows-kernel-file-protector

TL;DR

Protect a file from being deleted or corrupted using windows kernel file system mini-filter driver.

Tested on Windows 10 1909 x64.

How it works

Using file system mini-filter driver we intercept every PreCreateFile operation, PreWriteFile operation and PreSetFileInformation.

Delete protector:

If create file was called to one of our protected files with FILE_DELETE_ON_CLOSE the driver will fail it with STATUS_ACCESS_DENIED.

If set file information was called to one of our protected files with FileDispositionInformation and DeleteFile is true the driver will fail it with STATUS_ACCESS_DENIED.

Rename protector:

If set file information was called to one of our protected files with FileRenameInformation the driver will fail it with STATUS_ACCESS_DENIED.

Write protector:

If write file was called to one of our protected files the driver will fail it with STATUS_ACCESS_DENIED.

Usage

Open cmd as Administrator:

rundll32 syssetup.dll,SetupInfObjectInstallAction DefaultInstall 128 {path to the driver inf file}

sc start FileProtector

Now any file that you want to be unchangeable and protected (like backups) add to its name "_protected".

For example: I got file backup.txt which contains an important backup. In order to protect it, I will change its name to backup_protected.txt and now, the file is protected by our driver.

DONE!!!

windows-kernel-file-protector's People

Contributors

rhydon1337 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.