Code Monkey home page Code Monkey logo

elsec_dr2an's Introduction

Please note the https://github.com/elastic/detection-rules/ now auto generates an att&ck navigator layer, so we will no longer be updating layers here for new Elastic Security releases

The link [https://ela.st/tj-mitre-an] will now redirect to that auto generated layer. However these scripts will remain here for those that want to use them for their own purposes.

Elastic Security: Detection Rules ATT&CK Navigator layer generator

Generate an ATT&CK Navigator (AN) [https://mitre-attack.github.io/attack-navigator/] dashboard layer. Also contains pre-generated layers you can just use.

Quick start!

Just click on: https://ela.st/tj-mitre-an

Getting Started

New Javascript version

This script will grab the information from any running Kibana instance.

Steps:

  • cd into this project directory
  • run: npm install to get all dependancies
  • run: node ./main.js -h

Read the printed help on creating a JSON config file; we'll assume you named this file "config".

Note: You could also use npm to install elsec_dr2an as a shell command; here we'll just run the script from the project directory.

  • run: node ./main.js ./config

Old Bash script

This script will grab the information from the detection rules github repository. Ensure you have the following shell tools installed: jq, dasel (https://github.com/TomWright/dasel/releases), git, & bash v3+.

Run the script: .\gen_an_layer.sh > output.json

Navigate to https://mitre-attack.github.io/attack-navigator/ and chose "Open Existing Layer", click on "Upload from local" and select the generated file.

For just a specific rule type run: .\gen_an_layer.sh TYPE > output.json

Installing

Copy the scripts to a target system and use as needed.

Deployment

These scripts are for demonstration purposes only, they do not follow all production deployment recommendations.

Contributing

Get in touch with me.

Versioning

No versioning of the script themselves, use as-is. They are writen in a way that they can be used with any post 7.x deployment.

Authors

Thorben Jändling <[email protected]>

License

AGPL 3

Acknowledgments

Many colleagues at Elastic.co!

elsec_dr2an's People

Contributors

thorbenj avatar dependabot[bot] avatar jamesspi avatar

Stargazers

 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.