Git Product home page Git Product logo

rip_cli's Introduction

RIP CLI (rioc) CircleCI

A simple Rust cli program that uses the RIP IOC to match indicators of compromise (IOC) found in text data.

Motivation

Text content often contains indicators of compromise. Sources include Twitter, web pages and pdf reports. Often IOC extraction is done in slower languages, using Rust to provide this functionality enables large volumes of text to be processed quickly and with low overhead.

Usage

rioc -h
CLI for rip IOC 0.1
Parser for IOC from input text

USAGE:
    rioc [FLAGS] [OPTIONS]

FLAGS:
    -h, --help          Prints help information
        --serde_json    Output using serde_json JSON format
    -V, --version       Prints version information

OPTIONS:
    -i, --input_file <INPUT_FILE>      Read input from file
    -o, --output_file <OUTPUT_FILE>    Write output to file

Examples

echo "this has a baddomain.com" |   rioc # Read from stdin and write to sdout

echo "this has a baddomain.com" |   rioc -o /tmp/iocs.txt # Read from stdin and write to a file

rioc -o /tmp/iocs.txt -i /tmp/inputtext # Read from stdin and write to a file

JSON Output

The default JSON output (rather than with the --serde_json flag) is shown below.

{
            "network": {
                "url" :    [],
                "domain" : [], 
                "email" :  [],
                "ipv4" :   [],
                "ipv6" :   [],
                "hexurl" : [],
            },
            "hash":{
                "md5" :     [], 
                "sha1" :    [],
                "sha256" :  [],
                "sha512" :  [],
                "ssdeep" :  [],
            },
            "file" : {
                "doc" :   [],
                "exe" :   [],
                "flash" : [],
                "img" :   [],
                "mac" :   [],
                "web" :   [],
                "zip" :   [],
            },
            "vulns": {
                "cve" : []
            }
        }

Installation

While this library is in initial state of development installation is done using cargo.

git checkout https://github.com/oliverdaff/rip_cli
cargo test 
cargo install --path .

License

MIT © Oliver Daff

rip_cli's People

Contributors

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