Giter Club home page Giter Club logo

passfilter's Introduction

PassFilter

PassFilter is a dll that can be loaded into LSASS to filter passwords which are included in an offline HIBP file. This dll expects a binary version of the sha1 hash ordered txt from HIBP. You may convert the file using my convertHIBP tool. This dll is perfect for usage on domain controlles, since they should not be allowed to speak to the internet if possible at all.

Building

git clone https://github.com/fblz/convertHIBP.git

Then open PassFilter.sln in Visual Studio and build the PassFilter project in Release x64 mode.

Installation

For more or less up2date instructions see the official Microsoft documentation.

Get a binary hibp file

git clone https://github.com/fblz/convertHIBP.git
cd convertHIBP
go build
./convertHIBP -InputFile ./pwned-passwords-sha1-ordered-by-hash-v7.txt -OutputFile ./hibp-v7.bin

Copy hibp-v7.bin onto every domain controller (DC), or place it on a share that all DCs can reach. Since it's quite a big file, don't put it in SYSVOL.

Configure the hibp file

To point the dll to your local file, create the following registry key: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Passfilter Under this key then create a REG_EXPAND_SZ property with name HashFile. Set its value to the full path of your hibp-v7.bin.

Install the dll

Grab x64\Release\PassFilter.dll from next to the PassFilter.sln. Place it into %WINDIR%\System32 on every DC.

Register the dll

To register the dllnavigate to the following registry path Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa then add the dll name PassFilter to the Notification Packages attribute.

Enable filtering

To finally enable the filtering, enable the password complexity policy. Either open Local Security Policy navigate to Account Policies\Password Policy and enable Password must meet complexity requirements or inside a group policy navigate to Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Password Policy and enable Password must meet complexity requirements.

To complete the installation, restart the computer so LSASS can load the dll.

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.