chgrp suricata /etc/suricata
chmod 770 /etc/suricata
chmod o+r /etc/suricata/*
mkdir -p /var/lib/suricata
chown suricata.suricata /var/lib/suricata
chmod 2770 /var/lib/suricata
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import SimpleHTTPServer | |
import SocketServer | |
import logging | |
PORT = 8000 | |
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-06/schema#", | |
"title": "eve", | |
"type": "object", | |
"properties": { | |
"timestamp": { "$ref": "#/definitions/timestamp" }, | |
"metadata": { "$ref": "#/definitions/metadata" } | |
}, | |
"definitions": { | |
"timestamp": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%YAML 1.1 | |
--- | |
# Suricata configuration file. In addition to the comments describing all | |
# options in this file, full documentation can be found at: | |
# https://suricata.readthedocs.io/en/latest/configuration/suricata-yaml.html | |
## | |
## Step 1: inform Suricata about your network | |
## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"timestamp":"2004-12-05T13:16:24.317453-0600","flow_id":1437877179832333,"pcap_cnt":1,"event_type":"dhcp","src_ip":"0.0.0.0","src_port":68,"dest_ip":"255.255.255.255","dest_port":67,"proto":"UDP","dhcp":{"type":"request","id":15645,"client_mac":"00:0b:82:01:fc:42","assigned_ip":"0.0.0.0","client_ip":"0.0.0.0","dhcp_type":"discover","client_id":"00:0b:82:01:fc:42","requested_ip":"0.0.0.0","params":["subnet_mask","router","dns_server","ntp_server"]}} | |
{"timestamp":"2004-12-05T13:16:24.317748-0600","flow_id":876149144607028,"pcap_cnt":2,"event_type":"dhcp","src_ip":"192.168.0.1","src_port":67,"dest_ip":"192.168.0.10","dest_port":68,"proto":"UDP","dhcp":{"type":"reply","id":15645,"client_mac":"00:0b:82:01:fc:42","assigned_ip":"192.168.0.10","client_ip":"0.0.0.0","relay_ip":"0.0.0.0","next_server_ip":"192.168.0.1","dhcp_type":"offer","subnet_mask":"255.255.255.0","renewal_time":1800,"rebinding_time":3150,"lease_time":3600}} | |
{"timestamp":"2004-12-05T13:16:24.387484-0600","flow_id":1437877179832333,"pcap_cnt":3,"eve |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"timestamp":"2004-12-05T13:16:24.387798-0600","flow_id":2065979639650612,"pcap_cnt":4,"event_type":"dhcp","src_ip":"192.168.0.1","src_port":67,"dest_ip":"192.168.0.10","dest_port":68,"proto":"UDP","dhcp":{"type":"reply","id":15646,"client_mac":"00:0b:82:01:fc:42","assigned_ip":"192.168.0.10","dhcp_type":"ack","renewal_time":1800}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"timestamp": "2004-12-05T13:16:24.317453-0600", | |
"flow_id": 710739216619533, | |
"pcap_cnt": 1, | |
"event_type": "dhcp", | |
"src_ip": "0.0.0.0", | |
"src_port": 68, | |
"dest_ip": "255.255.255.255", | |
"dest_port": 67, | |
"proto": "UDP", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"timestamp": "2004-12-05T13:16:24.317453-0600", | |
"flow_id": 710739216619533, | |
"pcap_cnt": 1, | |
"event_type": "dhcp", | |
"src_ip": "0.0.0.0", | |
"src_port": 68, | |
"dest_ip": "255.255.255.255", | |
"dest_port": 67, | |
"proto": "UDP", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"timestamp": "2017-04-21T22:07:33.165957-0600", | |
"flow_id": 562399510104133, | |
"pcap_cnt": 1, | |
"event_type": "dhcp", | |
"src_ip": "0.0.0.0", | |
"src_port": 68, | |
"dest_ip": "255.255.255.255", | |
"dest_port": 67, | |
"proto": "UDP", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu-common-packages: &ubuntu-common-packages | |
- libpcre3 | |
- libpcre3-dbg | |
- libpcre3-dev | |
- build-essential | |
- autoconf | |
- automake | |
- libtool | |
- libpcap-dev | |
- libnet1-dev |