Code Monkey home page Code Monkey logo

docker-yara-x's Introduction

Docker containers for YARA

Dockerfile which allows to install YARA-X in a Linux Debian docker container with Rust already installed.

By default, YARA-X v0.3.0 will be installed.

You may add YARA rules in the rules directory. These will be copied into the /root/rules directory of the container.

Building a container

The following command will build a container for YARA-X (main branch):

docker build -t yara-x:v0.3.0 .

The container can then be run using the following command:

docker run -v <path-to-samples>:/tmp/samples -it --rm yara-x:v0.3.0

Building a container for a specific version of YARA-X

A specific version of YARA-X can also be specified. For example, the following command allows to build a container for YARA-X v0.2.1:

docker build --build-arg yarax_version=v0.2.1 -t yara-x-v0.2.1:v0.2.1 .

Then, the container can be run using the following command:

docker run -v <path-to-samples>:/tmp/samples -it --rm yara-x-v0.2.1:v0.2.1

How to use YARA-X?

In the container, run yr from the command line to perform a scan. For example:

# yr scan rules/dummy.yar /tmp/samples/

Running yr help provides you with the help menu of yara-x-cli:

# yr help
A command-line interface for YARA-X.


Victor M. Alvarez <[email protected]>

Usage:
    yr [COMMAND]

Commands:
  scan        Scan a file or directory
  compile     Compile rules to binary form
  dump        Show the data produced by YARA modules for a file
  completion  Output shell completion code for the specified shell
  help        Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Please refer to the YARA-X repository for more information.

docker-yara-x's People

Contributors

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