Skip to content

A Python3 utility for parsing input into a Zeek threat intelligence feed.

License

Notifications You must be signed in to change notification settings

CriticalPathSecurity/zeek-threat-intel-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zeek Threat Intel Feed Parser

This script parses line-separated indicators from an input file and exports them to an output file in the intelligence data format. You can either run the script manually and enter the required parameters when prompted or pass it parameters if you want to automate the process.

Getting Started

These instructions will get you a copy of the project up and running.

Dependencies

Installing

Install Python3

sudo apt-get install python3

Clone the repository into /opt

cd /opt
git clone https://github.com/CriticalPathSecurity/zeek-threat-intel-parser.git

Usage

Navigate to /opt/zeek-threat-intel-parser

cd /opt/zeek-threat-intel-parser

And then run the parser using one of the following options

Manual Usage

python3 parser.py

The script will prompt you to enter the required data; indicator type, source and description, as well as the absolute paths to the input and output files.

Automated Usage

You can also pass arguments directly to the script and bypass user input which allows you to automate the parsing.

python3 parser.py type source description /opt/zeek-threat-intel-parser/input/sample.txt /opt/zeek-threat-intel-parser/output/sample.intel

Output Format

  • Intelligence data format

Example output:

#fields	indicator	indicator_type	meta.source	meta.do_notice	meta.desc
indicator	Intel::type	source	F	description
indicator	Intel::type	source	F	description
indicator	Intel::type	source	F	description
indicator	Intel::type	source	F	description
indicator	Intel::type	source	F	description

About

A Python3 utility for parsing input into a Zeek threat intelligence feed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages