Git Product home page Git Product logo

easeyara's Introduction

easeYARA

C# Desktop GUI application that either performs YARA scan locally or prepares the scan in a domain environment with a few clicks. The application utilizes a combination of the following applications to perform the scanning process and limit the CPU rate during the scan.

  1. YARA Scanner (VirusTotal/yara) Link: https://github.com/VirusTotal/yara
  2. LOKI Scanner (Neo23x0/Loki) LINK: https://github.com/Neo23x0/Loki
  3. PE-sieve process scanner (hasherezade/pe-sieve) LINK: https://github.com/hasherezade/pe-sieve
  4. process-governor (lowleveldesign/process-governor) LINK: https://github.com/lowleveldesign/process-governor

How does it work?

Welcome Screen
What would you like to do?

  1. Local scan\prepare for remote scan
  2. View statistics for previous scan results

alt Welcome Screen

How to Scan?

Would you like to scan a local system or prepare for a remote scan?

alt Scan Target

Choose your preferred scanner:

  • YARA: If you already have YARA rules and want to hunt simply for similar files/patterns, choose this option.
  • LOKI: if you don't already have YARA rules to start your CA/IR/Threat Hunting activity with, choose this option. LOKI isn't only about YARA, it is considered an IOC scanner as well. For example, aspnet_client directory in Microsoft Exchange doesn't have aspx pages, LOKI will warn you if it sees this aside from YARA rules matching.

alt Choose Scanner

Download Scanner or point to the application in your system

  • YARA will be downloaded, and unzipped.
  • LOKI: will be downloaded, unzipped, and updated. In case it's available, latest update will be pulled based on your confirmation.

Scan Options

  • Required Options (Choose one option)
    • Scan all local drives in system
    • Scan specific drive(s)
    • Scan specific/suspicious directories (you can either go with the predefined suspicious directories, or modify them to any list of directories you prefer)

Great option to scan the most "maliciously" used directories in the a complete AD domain environment every now and then :)

  • Optional
    • If you already have YARA rules in (zip) format, you can point to it.
    • If you have already chosen LOKI scanner, there is an option to scan memory using (PE-sieve).
    • In case you wish not to exceed around 50% of CPU limit at any time during the scan, pick this option. This will download, unzip and use process-governor with CPU rate limit of around 40% to accept a few percents more.

alt Local Scan Options

In case you chose Prepare remote scan, the following will be applied once clicking NEXT button

  • Scanner parent directory will be shared with the following restrictions
    • Full Control for Administrators group
    • Read and Execute only for Authenticated Users
      • This will prevent writing to this directory from non-admin users.
  • New scan results directory will be created (YARAScanResults) in the same directory as the parent directory resides with the following restrictions
    • Full Control for Administrators group
    • Write only for Authenticated Users * To have results get populated to this directory (from YARA scan target systems).

alt Remote Scan Options

Local Scan/ Prepare Remote Scan

  • In case you chose to scan the local system, the picked options will be applied during the scan.
    • Output will be provided on the application
    • Output log files containing the output will be created in the same scanner directory.

alt Scanning

alt Scan Completed

  • In case you chose prepare remote scan
    • If the picked options can be generated in a single command, it will be shown in the RichTextBox.
    • Whether the picked options generated a single or multiple commands, you can click on button "Generate batch script" which will create a BATCH script to the same scanner directory.

alt Generate Script

How to view statistics?

Would you like to have a glimpse about the scan results?

  • If you have already performed scanning in the same session the application is running, click on "view results"
  • If you only want to view results without scanning, click on "Statistics"
    • You can choose multiple files at the same time. Applying filters is simple based on columns.
    • Pick any severity level to apply it as filter on the table.

alt Statistics

alt Statistics Filter

How to sweep target systems using the generated commands/batch scripts?

  • Create GPO > Schedule task > write the generated commands directlry or point to the UNC path of the batch scripts
  • Copy the generated command and run it from any system you wish to scan.
  • Windows+R > point to the UNC path of the batch script

All of the above aproaches will return results to YARAScanResults share.

easeyara's People

Contributors

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