Code Monkey home page Code Monkey logo

retomos's Introduction

RETOMOS

RETOMOS (Recognition of Tor Malware and Onion Services) is a small program for analsying and classifying Tor using malware samples based on API calls etc to find .onion services. It consists of two scripts: retomos_featue_extractor.py that extracts features from Cuckoo reports and retomos_malware_classifier.py that classifies Cuckoo reports as either Tor dependant or not.

Usage:
    retomos.py -i <input_file>
    retomos.py -d <training_database> ./db/training.db
    retomos.py -i <input_file.json> -m <classification_model>
    retomos.py -t target/class label <0, or 1, or 2>
    retomos.py -f -i <input_file.json> -t <0, or 1, or 2>
    retomos.py -u -d <training_database>

Examples:
    retomos.py -d malware_behaviour_log.db
    retomos.py -d malware_behaviour_log.db -m svm
    retomos.py -h | --help
    retomos.py -f -i <input_file(s)> -d <database> -t 1
    retomos.py --urls --feed --target 2 --model "ALL"

Options:
    -i --input          Input file(s) to analyse (Cuckoo report in .json format)
    -m --model <classification_model>      The type of classification model to use
        SVM, LR, NB, RF, DT or ALL (default: ALL) [default: ALL]
    -d --database       Training database to use for the classification. Mandatory argument.
    -f --feed           Feed the database with new malware analysis reports (.json format). Requires --input and --database
    -t --target         Target (class) label for input file to feed to training set database. 1 for Tor related, 0 for non-Tor related, and 2 (default) for unknown.
    -u --urls           Extract .onion URLs from Tor classified malware sample reports

Nota bene

This code is not beautiful. Neither is it fine-tuned nor very efficient, but it is a proof-of-concept.

Licence

RETOMOS is open-sourced software licensed under the MIT license.

retomos's People

Contributors

jesperatstockholmuniversity avatar

Stargazers

 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.