Giter Club home page Giter Club logo

sqlserver.bruteforcepack's Introduction

SqlServer.BruteForcePack

If you are running Microsoft SQL Server you probably aware of brute-force attacks. Almost every SQL server connected to the Internet is under constant attack. Once a hacker has access to a SA (DBA) account, or even a normal user account, it can get full access to the file system on a server, or even to the files on the network to which it is connected.

This pack of scripts made with SQL Server Stored Procedures and PowerShell Scripts, helps identify and block these attacks on your SQL Server.

Installation

Its really simple to install de pack, just follow these steps:

  1. Clone or Download the Repository
  2. Execute all SQL Server SCRIPTS in the Scripts directory.
  3. Configure the Connection String for your server in the ** *Configs.psd1 * ** file.
  4. Try out!

Configuration

** Configs.ps1 ** holds all pack configuration and tweaks:

** ConnString ** = SQL Server Connection String

** MaxFailedLogins ** = Number of Failed Logins that will be considered as attack

** Whitelist ** - IPs in this array will be ignored

Functions and Utilities

.\IdentifyBruteForceIPs.ps1 Identifies the IPs that are performing attacks at the last hour.

.\CompareBruteForceIPs.ps1 On first run the script will only collect the list of IPs that are performing attacks on the server. In the next runs the previous collection will be compared and the script will compare to find out if any ip had a higher or lower attack rate in the last hour.

.\BlockBruteForceIPs.ps1 MUST run on SQL Server Machine as it will create rules on port 1433 to automatically block access to IPs that are identified as malicious. This script can be scheduled and run multiple times , but running at short intervals can cause high resource consumption on the SQL Server server.

.\ListBlockedIPs MUST run on SQL Server Machine as it will list all created rules to block ips.

.\SearchBlockedIPs.ps1 Search for a IP in the BLOCKED Firewall Rules

sqlserver.bruteforcepack's People

Contributors

minternauta avatar

Stargazers

 avatar

Watchers

 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.