Giter Club home page Giter Club logo

yara_scanner's Introduction

I was looking for a tool that would scan multiple hosts at the same time using YARA. Every tool that I could find was either utilizing WMIC or over the network communication with a server listening to a specific port.

This script allows you to scan multiple remote nodes using PsExec and native OS commands. CrowdResponse is used instead of simple YARA due to its reporting capabilities and the ability to scale as it has many features that can be turned on on-demand (just make sure that you edit the script).

It goes without saying that you have to have rights and be able to run PsExec on remote hosts for this to work. The script will be copying the necessary file, run the command and checking every X minutes (5 minutes by default) to see if the command has finished running. When the command finishes, it copies the files XML files under the folder "results" inside the CrowdResponse directory (read steps below). As a final task, it runs CRConvert.exe to convert the XML files to HTML.

 

GitHub Logo

GitHub Logo

 

Installation

You will need to follow the below instructions to avoid any errors:

  1. Download CrowdResponse (https://www.crowdstrike.com/wp-content/community-tools/CrowdResponse.zip).
  2. Extract CrowdResponse under "C:\" or anywhere else you like (Just make sure that you modify the variable at the start of the script).
  3. Create a folder named results under the CrowdResponse directory from step 2.
  4. Copy the PsExec.exe to be in the same directory as the yara_scanner.py.

 

Arguments

  • -f, --file, [*] Specify the file that contains the target hosts/IPs.
  • -m, --pull,  [*] Specify the pulling frequency(in minutes. Default = 5 mins).
  • -d, --directory, [*] Specify the directory to scan on the remote host(full path).
  • -y, --yara_files, [*] Specify the directory of the YARA rules (on local host) to use against the remote machines(full path).

yara_scanner's People

Contributors

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