Git Product home page Git Product logo

blueteambeast's Introduction

BlueTeamBeast

Scripts for Blue Teams and Incident Responce.

Disclaimer: I am GCIH (July 2019) GCIA (November 2019) and GCFE (June 2020) certified. However all information here and within this repository is given as a general guide to help fellow incident responders, it is given with NO WARRENTY and NO GUARANTEE of effectiveness. If you are concerned with any advice in here or not sure on anything I suggest doing your own further research or pay an expert to implement a solution for you.

This repository contains a series of scripts to aid in a range of blue team tasks across your network. Most scripts will be in PowerShell. The goal is to eventually also add resources that could be used elsewhere such as Splunk and Kibana dashboards.

I will start by uploading scripts to help with the preparation phase of the IR cycle. Deploying agents and baselining systems.

The scripts use WinRM (Windows Remote Management). As with many things there are multiple ways to achive your end goals, with these scripts I have used WinRM across a domain setting. This allows you to use a terminal that is not joined to the domain, for instance a dedicated IR device, to manage Windows assets joined to the domain.

-!!- At the time of writing there appeared to be issues with WinRM working from some linux deivces so I recommend using a hardened Windows VM dedicated to the task -!!-

There are lots of guides for enabling WinRM. A quick overview, there are 3 main settings required to be set in Group Policy:

  • Allow remote server management through WinRM
  • Enable WinRM service
  • Enable predefined Windows Firewall Rule

When first implimenting I used the guide here: http://www.mustbegeek.com/how-to-enable-winrm-via-group-policy/

If you are using a device not joined to the domain there is a 4th main step to follow, I suggest giving your device a fixed IP. This fixed IP must be added to the WinRM Trusted hosts GP. You must also add the IP ranges of the networks you wish to manage to your IR devices trusted hosts. The answer given here is a clear guide on how to add trusted hosts using powershell: https://stackoverflow.com/questions/21548566/how-to-add-more-than-one-machine-to-the-trusted-hosts-list-using-winrm

You must use an account with the correct priviledges for the tasks you want to carry out. WinRM will not 'drop creds' on the devices you manage in the same way a direct logon or RDP session will. I highly recommend an account(s) dedicated to this purpose. The exact permissions and nature of your accounts should be something you discuss with the appropriate members of your team or organisation.

The common methodology used in these scripts is creating sessions to target machines and then invoking commands or scripts to run in memory on the target.

Where possible I will provide scripts for multiple versions of PowerShell on endpoints, ALL scripts must be initiated from a host running at least PSv5. Example: IF your environment still has hosts using PSv2, you will need to have an IR device running PSv5 and you will probably need to use the backwards compatible scripts. This is because the PowerShell function Copy-Item failed in testing when copying anything larger than a few hundred KBs in size to a host running PSv2.

blueteambeast's People

Contributors

roshi-codes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

terrizmo akityo

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.