Git Product home page Git Product logo

misp_feedgen's Introduction

MISP Feed Generator

Codacy Badge CodeFactor

This project aims to be a MISP multi-tool for generating feeds from MISP

Usage

usage: generate.py [-h] [--debug] [-a | -f FEEDS] config

positional arguments:
config The configuration file to run

optional arguments:
-h, --help show this help message and exit
--debug Debug output
-a, --all Process all feeds
-f FEEDS, --feeds FEEDS  Comma list of case sensitive feeds

Existing Modules

Output Formats

Modifiers

Post-Hooks

Dotty Notation

Some paramaters (where documented) use dotty notation. This makes deeply nested fields accesable in as a text variable.

You can find out more in the dotty notation wiki page.

Docker Image

A docker image is provided for use.

The docker image includes

  • cron
  • ssh
  • rsync
  • /entrypoint_cron.sh which launches crond

You can load cron.d tab files by volumemounting them into /etc/cron.d/feedgen

See the example docker-compoase.yml file

misp_feedgen's People

Contributors

codacy-badger avatar coolacid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tehowe

misp_feedgen's Issues

Post-Run Hook

A post run hook should be called for each output, thus allowing for example, an rsync to happen once the run has completed.

Modules should define options

Each module should define their options, if they are required and the expected type. Then, on the init function, they should validate their configs before breaking because something isn't set.

Modification Pipeline

Define a feed
Feed defines tag filers
Feed defines distribution filter
Feed then passes to a modification chain (if defined)
-- This chain runs each modification rule in order defined in the feed

Modified feed passed to multiple outputs.

Format: CSV

With dotty-dict we can let users specific what fields they want to output in a CSV. This means, we can create a new CSV output with a default set of fields, but let users actually define the fields much like screen output.

0 event runs should still pass to modifiers, outputs

If a feed has 0 events, we should still be passing the run to the modifiers/outputs.

Example Reason: Event expires, and now, feed has zero entries, event should have the ability to remove the events from the files, otherwise they will still show up.

MISP Format:

Load the original file, and check to see if it is different - only write the file if it's different so that caches and update times don't change

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.