Giter Site home page Giter Site logo

mtnmunuklu / analyze-tags Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 80 KB

Analyzes tags of Sigma, Yara and CSIEM rules

License: MIT License

Dockerfile 0.58% Go 54.94% YARA 9.22% HTML 35.27%
analyzer docker golang sigma-rules tags yara-rules charts csiem excel

analyze-tags's Introduction

Analyze-Tags

Go Doc Go Report

Analyze-Tags is a tool designed for analyzing security rules and generating charts and Excel files based on the provided rules. It supports various types of security rules such as Sigma, YARA, and Csiem rules.

Table of Contents

Installation

To use Analyze-Tags, you can choose between two installation options:

Normal Installation

Analyze-Tags provides precompiled ZIP files for different platforms. Download the appropriate ZIP file for your platform from the following links:

Once downloaded, extract the ZIP file to a directory of your choice. Among the extracted files, you will find the analyze-tags executable.

Ensure that the directory containing the Analyze-Tags executable is added to your system's PATH environment variable, enabling you to run Analyze-Tags from any location in the command line.

Note: Analyze-Tags requires Go to be installed on your system. Download and install Go from the official website: https://golang.org/dl/

Docker Installation

Alternatively, you can use Docker to run Analyze-Tags in a containerized environment. Docker provides a convenient and consistent way to set up and use Analyze-Tags without worrying about dependencies or system configurations.

To install and set up Analyze-Tags using Docker, make sure Docker is installed on your system. If not, download and install Docker from the official website: https://www.docker.com/get-started

Once Docker is installed, follow these steps:

  1. Clone the Repository: If not done already, clone the Analyze-Tags repository to your local machine:

    git clone https://github.com/mtnmunuklu/analyze-tags.git
  2. Navigate to Docker Directory: Go to the docker directory inside the cloned repository:

    cd tools/docker
  3. Build Docker Image and Start Container: Use the setup script to build the Docker image named analyze-tags:

    go run setup_docker_analyze_tags.go -rules <rulesDirectory> -config <configFile> -output <outputDirectory>

    This script handles building the Docker image and starting the container for you.

That's it! You have successfully installed Analyze-Tags on your system. Proceed to the Usage to learn how to use Analyze-Tags.

If you prefer to build Analyze-Tags from source, refer to the Build Instructions for detailed steps on building and installing it on your platform.

Usage

Command-line Flags

Analyze-Tags provides several command-line flags for configuring its behavior:

  • -filepath: Specifies the name or path of the file or directory to read.
  • -filecontent: Specifies the base64-encoded content of the file or directory to read.
  • -output: Specifies the output directory for writing files.
  • -chart: Specifies whether to generate charts.
  • -chartType: Specifies one or more chart types to generate (comma-separated).
  • -excel: Generates Excel files.
  • -sigma, -yara, -csiem: Specifies the type of rules to use.

For more details on available flags, you can use the -help flag:

analyze-tags -help

Examples

Here are a few examples of using Analyze-Tags:

  • To generate synthetic logs from a Sigma/Yara/Csiem rule file and a configuration file:

    analyze-tags -filepath /path/to/sigma/rule.yml -config /path/to/config.yml -chart -chartType "bar,line"

    or

    docker exec analyze-tags ./analyze-tags -filepath /path/to/sigma/rule.yml -config /path/to/config.yml -chart -chartType "bar,line"
  • To generate synthetic logs from Sigma/Yara/Csiem rule content and configuration content:

    analyze-tags -filecontent base64_encoded_rule_content -configcontent base64_encoded_config_content -chart -chartType "bar,line"

    or

    docker exec analyze-tags ./analyze-tags -filecontent base64_encoded_rule_content -configcontent base64_encoded_config_content -chart -chartType "bar,line"

Contributing

Contributions to Analyze-Tags are welcome and encouraged! Please read the contribution guidelines before making any contributions to the project.

License

Analyze-Tags is licensed under the MIT License. See LICENSE for the full text of the license.

analyze-tags's People

Contributors

dependabot[bot] avatar mtnmunuklu 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.