Coder Social home page Coder Social logo

huntress's Introduction

Huntress

PowerShell tool to enable blue teams to identify compromised systems and perform triages of important Windows artifacts. This project is similar, and some features are inspired by Kansa as well as the SANS FOR508 course.

asciicast

Requirements

  • PowerShell Version >= 5 on hosts and client. Some modules may work on PowerShell < 5, but this is untested.

Terminology

Huntress can be used to target a single host using the TargetHost parameter, or to target all computers in an OU using TargetOU.

Modules

Modules are the PowerShell scripts that Huntress executes on remote hosts. Modules must return an array of objects.

# Running the Connections module against a single host.
.\Huntress.ps1 -TargetHost ExampleComputer -Module .\modules\Connections.ps1

Current stable modules include:

  • BAM: Background Activity Monitor registry parser.
  • Connections: Current connections on host. Calculates hash of associated PID image path if available.
  • File: Recursive listing of files and hashes of those files given a top level directory. Checks signature, checks file entropy.
  • LogonEvent: 4624 events from the Security.evtx log.
  • Prefetch: Windows Prefetch for Windows 10 hosts. Currently does not support older operating systems.
  • Process: Currently running processes, checks signature and calculates hash. Gets command line.
  • RecentDocs: Recent documents accessed by users of the host.
  • Registry: Values and subkeys for a given registry key.
  • ScheduledTasks: Scheduled tasks and actions for those tasks.
  • Service: Information on currently installed services. State, path to executable (when applicable), display name.
  • StartupPrograms: Programs that start at boot.
  • WordTrustedDocs: Word documents trusted by users of the host.
  • EmoCheck: Detects Emotet using unique way some variants of Emotet generate process name. Based on JPCert's code.

Current development modules include:

  • WMIPersistence: Work in progress conversion of PyWMIPersistenceFinder (By FireEye) to PowerShell. This module is not complete.

Example Usage

# Dry run to see what hosts the module will run against in the Workstations OU.
.\Huntress.ps1 -TargetOU "CN=Workstations, DC=contoso, DC=com" -Module .\modules\Connections.ps1 -DryRun

# Collecting connections against all hosts in the Workstations OU. Verbose switch to show errors.
.\Huntress.ps1 -TargetOU "CN=Workstations, DC=contoso, DC=com" -Module .\modules\Connections.ps1 -Verbose

# Collecting prefetch data for single host. 
.\Huntress.ps1 -TargetHost ExampleComputer -Module .\modules\Prefetch.ps1

Utilities

# Stack data from a CSV file.
.\utils\DataStack.ps1 -File MYCSVFILE.csv -Target MYCOLNAME

# Set a registry key on your local computer so that Get-Credential works via commandline without GUI popup.
.\utils\CredentialCommandline.ps1

Credits

huntress's People

Contributors

zanegm 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.