GithubHelp home page GithubHelp logo

joncojonathan / pslogonfailures Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 23 KB

A PowerShell script to help mitigate brute force attacks against remote desktop servers.

License: GNU General Public License v3.0

PowerShell 100.00%
hacktoberfest brute-force-attacks rdp

pslogonfailures's Introduction

PSLogonFailures

PSLogonFailures is a PowerShell script to help mitigate brute force attacks against remote desktop servers, both those published to the public Internet and those on your internal network. This script was developed in collaboration with my long-time friend zandeez.

Working in IT, predominantly with Microsoft Windows systems, I noticed a lot brute force attempts trying to login to servers over remote desktop via remote desktop protocol (RDP). RDP is great for managing Windows servers and workstations but also opens the system up to attack and potential abuse. On Linux we have tools like Fail2Ban to help protect against brute force attacks but I couldn't find something free at the time I initially released this script. After I started implementing this script at customer sites the number of failed logon attempts (typically overnight) would drop to less than 10% of the pre-implementation value.

Requirements

Please see the requirements page on this project's wiki.

Installation and how to

Please see the GitHub wiki for this project for more information.

Security

Publishing (making available) part of your network to the public Internet is always a risk, and this script is not a replacement for a well configured environment.

  • If you don't need to publish your system to the public Internet, don't
  • When publishing your system, restrict it to as small a part of the Internet as possible, for example just one remote IP address or a small selection
  • Only publish the service you intend to access remotely (for example RDP on port TCP 3389)

The whitelist

In order to prevent yourself from being locked out, PSLogonFailures allows you to specify a whitelist of individual IPs that it will never block. You are strongly encouraged to populate this list with at least one IP address.

Why not just use product X?

Since I and Andee wrote PSLogonFailures I've seen a number of similar solutions become available, so this is a natural question. I'd suggest PSLogonFailures has the following benefits:

  • You can review the code, so you know what it's doing
  • It's free
  • You can modify PSLogonFailures to meet your needs (pull requests and contributions welcomed)

Warranty

Per the license, please be aware this script comes with no warranty of any kind and the authors cannot be held liable for any problems resulting from its use. The script has been tested on a number of systems, but every system is different. Please ensure you know what the script will do before you run this script!

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.