Git Product home page Git Product logo

cuckoo-yargen's Introduction

cuckoo-yargen

Addon that utilize yarGen to auto-generate yara rule from given sample

About:

this is a quick and dirty poc to use yarGen with Cuckoo to auto-generate yara rules from given sample. currently this generates a rule for the submited sample, without opcodes, i didnt make it work with the dropped files.

Installation:

  1. git clone https://github.com/Neo23x0/yarGen.git

  2. cat conf-extra/auxiliary.conf >> conf/auxiliary.conf

or manually add to your aux... the following lines:

[yaragen] enabled = yes

(this probably shouldnt be aux module, but it works)

  1. copy yaragen.py to cuckoo/modules/auxiliary

  2. change the paths in yaragen.py to your enviroment (/data/cuckoo/... )

  3. add the following line to /web/web/urls.py (i'm quite sure this doesnt work as it should)

url(r"^yara/(?P<task_id>\w+)/(?P([a-fA-F\d]{32}))/$", "analysis.views.filereport"),

  1. add the following to /web/templates/analysis/reports/index.html (in a perfect scenario the if statement should contain "config.yaragen" but i didnt do it)

    {% if config.jsondump %} Yara Rules <a class="btn btn-primary btn-small" href="{% url "analysis.views.filereport" analysis.info.id "yara" %}">Download {% endif %}

  2. add the following line under the function "def filereport(request, task_id, category):" in the file /web/analysis/views.py

     "yara": "report.yara",
    

=====================

now after you submit a sample it will run yarGen simultaniusly with the cuckoo analysis. the end result is is a report.yara file under the reports folder in the storage location. the file can be downloaded from the reports tab in the web intreface if you followed steps 5-7

cuckoo-yargen's People

Contributors

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