Git Product home page Git Product logo

misp-wireshark's Introduction

misp-wireshark

misp-wireshark is a Lua plugin intended to help analysts extract data from Wireshark and convert it into the MISP Core format

Usage

Wireshark

  1. Go to Tools located in Wireshark's top bar and click on MISP: Export to MISP format
  2. Enter the export options to configure the behavior of the exporter
    • Plugin options
    • Main filter: Fill this field to filter the exported data. Essentially, it will just be a copy/paste from the global filter in the interface. (This cannot be done automatically because of this)
    • Include HTTP payload: Should the payloads sent via HTTP be included as a file in the output
    • Export path: The location where the exported file should be saved when clicking on Save to file
    • Tags: Optional tags can be attached to some MISP attributes.
  3. Copy or save in a file the data to be imported in MISP
    • Plugin output
  4. Import in MISP
    • MISP result

Tshark

Command-line options are the same parameters as in the user interface:

  • filters: The filter expression to be applied
  • include_payload: Should potentials payload be also exported. Accept y or n
  • export_path: The folder under which the json should be saved. If not supplied, default to stdout
  • tags: Optional tags to be attached to some MISP attributes

Example

tshark \
    -r ~/Downloads/capture.cap \
    -X lua_script:/home/john/.local/lib/wireshark/plugins/misp-wireshark/misp-wireshark.lua \
    -X lua_script1:filters="ip.addr == 127.0.0.1" \
    -X lua_script1:include_payload=n \
    -X lua_script1:tags="tlp1,tlp2" \
    frame.number == 0

Note: As we did not supply an export path, the result is printed on stdout. However, to avoid mixing both the plugin output and tshark output, we provide a filter to tshark that will filter out every packets. However, this filter is not used by the plugin. Only the filter provided via -X lua_script1:filters is used.

Based on the example above, frame.number == 0 is only used to prevent the output of tshark while ip.addr == 127.0.0.1 is actually used by the plugin

Installation

On linux, clone the repository in wireshark's plugin location folder

mkdir -p ~/.local/lib/wireshark/plugins
cd ~/.local/lib/wireshark/plugins
git clone https://github.com/MISP/misp-wireshark 
cd misp-wireshark/
git submodule update --init --recursive

Updates

git pull
git submodule update

Notes about community-id

โš ๏ธ In order for this plugin to use community-id, wireshark must be at version 3.3.1 or higher.

By default, community-id is disabled. To enable it, you have to perform these steps:

  1. On the top bar go to Analyze/Enabled Protocols...
  2. Search for CommunityID in the list
  3. Check the checkbox

Exports supported in MISP object format

misp-wireshark's People

Contributors

adulau avatar gallypette avatar mokaddem avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

misp-wireshark's Issues

Lua error during loading

Lua: Error during loading:
.../lib/wireshark/plugins/misp-wireshark/misp-wireshark.lua:42: bad argument #1 to 'new' (Field_new: a field with this name must exist)
stack traceback:
[C]: in function 'new'
.../lib/wireshark/plugins/misp-wireshark/misp-wireshark.lua:42: in main chunk

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.