Skip to content

aphalon/ApsDefence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApsDefence

Block those nefarious RDP access attempts

Explore the docs »

Table of Contents
  1. About The Project
  2. Getting Started
  3. License
  4. Contact

About The Project

This project was built to defend against third parties attempting to logon (and presumably compromise) an Windows Remote Desktop system that is exposed to the Internet.

In principle it is a Windows Service monitors the Windows Security EventLog looking for failed logon attempts and blocks those that have an unexpected pattern... by default based on particular usernames (*ADMIN* is a favourite) or whether a particular IP has initiated a filed logon multiple times within a time period. Once a pattern is detected it blocks all traffic from that IP address for a set period of time.

The project is C# and was originally built with Visual Studio 2019. It is targetted against Microsoft.NET Framework v4.7.2.

Solution contents

    • ApsDefence - Class library with the defence code
    • ApsDefenceHarness - Console application for debugging of the ApsDefence library (Note - debugging must be done with Visual Studio running as ADMIN)
    • ApsDefenceService - Windows Service to run the ApsDefence library

(back to top)

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

Required Microsoft.NET v4.7.2 - download from the Microsoft site

Installation

  1. Download the latest release from this project
  2. Extract the files to a folder of your choosing... C:\ApsDefenceService perhaps
  3. Start a Command Prompt as Administrator - navigate to the installation folder and execute InstallService.bat
  4. Execute services.msc and validate the Installation of the ApsDefenceService... then START the service.

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Project Link: https://github.com/aphalon/ApsDefence

(back to top)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published