Installing Protocol Analyzers

Security Onion Prerequisites

Update security onion

Install GCC-6

Install cmake by a PPA (Upgrade to 3.2)

Install Package libpcap0.8-dev package

This should cover any errors you may encounter

Install and Configure ZKG Command-Line Utilitiy

Install zkg Using the latest stable release on PyPI:

Or using the latest git development version:

If not using something like virtualenv to manage Python environments, the default user script directory is ~/.local/bin and you may have to modify your PATH to search there for zkg.

After installing via pip, additional configuration is required. First, make sure that the zeek-config script that gets installed with zeek is in your PATH. Then, as the user you want to run zkg with, do:

This automatically generates a config file with the following suggested settings that should work for most Zeek deployments:

  • script_dir: set to the location of Zeek's site scripts directory (e.g. <zeek_install_prefix>/share/zeek/site)

  • plugin_dir: set to the location of Zeek's default plugin directory (e.g. <zeek_install_prefix>/lib/zeek/plugins)

  • zeek_dist: set to the location of Zeek's source code. If you didn't build/install Zeek from source code, this field will not be set, but it's only needed if you plan on installing packages that have uncompiled Zeek plugins.

If your Zeek installation is owned by "root" and you intend to run zkg as a different user, then you should grant "write" access to the directories specified by script_dir and plugin_dir. E.g. you could do something like:

The final step is to edit your site/local.zeek. If you want to have Zeek automatically load the scripts from all installed packages that are also marked as "loaded" add:

Install Third-Party Plugin for ZEEK using the ZKG Utility

Start by cloning the git repo of the package you want to install

Use the zkg tool to install the plugin.

This script will loop through the listed repos and install install the plugins with zkg

Manual Install

Start by cloning the git repo of the package you want to install

Then follow the steps below

Last updated

Was this helpful?