Skip to main content

IDS Utility Library

Project description

py-idstools is a collection of Python libraries for working with IDS systems (typically Snort and Suricata).

Features

  • Snort/Suricata unified2 log file reading.

  • Continuous unified2 directory spool reading with bookmarking (a’la Barnyard2).

  • Parser and mapping for classification.config.

  • Parser and mapping for gen-msg.map and sid-msg.map.

  • Useful utility programs.

Programs

  • u2json - Convert unified2 files or spool directories to JSON.

  • gensidmsgmap - Easily create a sid-msg.map file from rule files, directories or a rule tarball.

Requirements

  • Python 2.6 or 2.7; Python 3.3 works but is not as well tested.

  • Currently only tested on Linux.

Examples

Reading a Unified2 Spool Directory

The following code snippet will “tail” a unified log directory aggregating records into events:

from idstools import unified2

reader = unified2.SpoolEventReader("/var/log/snort",
    "unified2.log", tail=True)
for event in reader:
    print(event)

Documentation

Further documentation is located at http://idstools.readthedocs.org.

Changelog

0.4.1

  • Fix IPv6 address unpacking.

  • In u2json, if the protocol number can’t be converted to a string, encode the number as a string for a consistent JSON data type.

0.4.0

  • New tool, u2json to convert unified2 files to JSON.

0.3.1

  • Support the new appid unified2 event types introduced in Snort 2.9.7.0.alpha.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

idstools-0.4.3.tar.gz (38.7 kB view details)

Uploaded Source

File details

Details for the file idstools-0.4.3.tar.gz.

File metadata

  • Download URL: idstools-0.4.3.tar.gz
  • Upload date:
  • Size: 38.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for idstools-0.4.3.tar.gz
Algorithm Hash digest
SHA256 787d25627af3b16c42f1f8c688fa7e81109cc6dcbeaafb5963948cde64802596
MD5 d38f2dbcbf30c21288ac7c9defb686b7
BLAKE2b-256 293af16d8b6cdc979e925aa829bccbce7818b0c4ed95b9451ba6f8abdbfeb9f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page