Git Product home page Git Product logo

cdhtlr / barikade Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 117 KB

Barikade is a Windows Service to close processes running outside allowed directories followed by network connections blocking to prevent the use of legit software to bypass Windows Firewall and download malware.

Home Page: https://github.com/cdhtlr/Barikade

License: GNU General Public License v3.0

C# 100.00%
access-control allowlist applocker firewall malware packet-capture windivert windows-hardening windows-service wmi

barikade's Introduction

Barikade

Barikade (in Indonesian) or barricade (in English) is a Windows Service to close background and foreground processes running outside of permitted directories.

It's a sort of allowlist but not an app blocker. Barikade will try to close the process and prevent inbound and outbound network connections if it detects a running process that comes from outside the permitted directories.

It can prevent the use of legit software to bypass Windows Firewall and download malware by only allowing applications within AllowedPaths.ini to run and access the network.

You should not use Barikade as the main protection layer for Windows hardening. Use an antivirus, firewall, access control, applocker, etc. to configure Windows security until it is completely safe, then add Barikade if needed.

Barikade uses WinDivert to work, there may be a failure to prevent network connection. So, make sure you use it with caution.

Click this YouTube thumbnail for demo:

Video

How to use

Because Barikade is a Windows Service, to run it please open a command prompt or terminal as an administrator then run the command below:

sc create "Barikade" binpath= C:\example\path\of\Barikade.exe start= auto

Then run Barikade for the first time.

sc start Barikade

AllowedPaths.ini file will be created in the directory where Barikade.exe is located, edit it and fill it with the directory containing the programs that are allowed to run.

Example

+C:\Program Files\
+C:\Program Files (x86)\
+C:\Windows\
-D:\Portable Program\

Directories that start with a + sign are recursive, while directories that start with a - sign are non-recursive. The Barikade program directory is automatically allowed to run any program non-recursively.

Logging

Create a Log.txt file in the Barikade program directory to enable file deletion logging

Restart Barikade service or restart Windows to apply changes.

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.