Skip to content

Instantly share code, notes, and snippets.

View jasonish's full-sized avatar

Jason Ish jasonish

View GitHub Profile
@jasonish
jasonish / eve.json
Created August 23, 2016 15:50
Example packet records.
{
"timestamp": "2016-07-28T11:07:26.425683-0600",
"flow_id": 1684414306,
"pcap_cnt": 4,
"event_type": "alert",
"src_ip": "10.16.1.11",
"src_port": 34662,
"dest_ip": "10.16.1.1",
"dest_port": 5555,
"proto": "TCP",
@jasonish
jasonish / ideal-packet.json
Last active August 23, 2016 16:41
what I'd like packet records to look like
{
"timestamp": "2016-07-28T11:07:26.425970-0600",
"flow_id": 1684414306,
"pcap_cnt": 5,
"event_type": "packet",
"src_ip": "10.16.1.1",
"src_port": 5555,
"dest_ip": "10.16.1.11",
"dest_port": 34662,
"proto": "TCP",
@jasonish
jasonish / probable-packet.json
Last active August 23, 2016 16:52
packet record that is cmpatible with current packet usage
{
"timestamp": "2016-07-28T11:07:26.425970-0600",
"flow_id": 1684414306,
"pcap_cnt": 5,
"event_type": "packet",
"src_ip": "10.16.1.1",
"src_port": 5555,
"dest_ip": "10.16.1.11",
"dest_port": 34662,
"proto": "TCP",
{
"timestamp": "2016-07-28T11:07:26.425683-0600",
"flow_id": 1684414306,
"pcap_cnt": 4,
"event_type": "alert",
"src_ip": "10.16.1.11",
"src_port": 34662,
"dest_ip": "10.16.1.1",
"dest_port": 5555,
"proto": "TCP",
static int FlowBitsTestSig01(void)
{
Signature *s = NULL;
DetectEngineCtx *de_ctx = NULL;
de_ctx = DetectEngineCtxInit();
FAIL_IF_NULL(de_ctx);
de_ctx->flags |= DE_QUIET;
@jasonish
jasonish / eve.json
Created September 28, 2016 13:00 — forked from anonymous/-
split dns json
{
"timestamp": "2016-05-24T17:27:01.960780-0600",
"flow_id": 15684738590988,
"pcap_cnt": 1,
"event_type": "dns",
"src_ip": "10.16.1.11",
"src_port": 53679,
"dest_ip": "10.16.1.1",
"dest_port": 53,
"proto": "UDP",
@jasonish
jasonish / eve.json
Created September 28, 2016 13:01 — forked from anonymous/-
unified json dns
{
"timestamp": "2016-05-24T17:27:02.333141-0600",
"flow_id": 15684738590988,
"pcap_cnt": 2,
"event_type": "dns",
"src_ip": "10.16.1.11",
"src_port": 53679,
"dest_ip": "10.16.1.1",
"dest_port": 53,
"proto": "UDP",
{
"timestamp": "2016-10-14T09:40:21.889830-0600",
"flow_id": 1233527431861222,
"pcap_cnt": 1,
"event_type": "dns",
"src_ip": "10.16.1.11",
"src_port": 40697,
"dest_ip": "10.16.1.1",
"dest_port": 53,
"proto": "UDP",
{
"timestamp": "2016-10-14T09:40:21.889830-0600",
"flow_id": 1233527431861222,
"pcap_cnt": 1,
"event_type": "dns",
"src_ip": "10.16.1.11",
"src_port": 40697,
"dest_ip": "10.16.1.1",
"dest_port": 53,
"proto": "UDP",
{
"timestamp": "2016-10-14T09:40:21.971664-0600",
"flow_id": 1233527431861222,
"pcap_cnt": 2,
"event_type": "dns",
"src_ip": "10.16.1.11",
"src_port": 40697,
"dest_ip": "10.16.1.1",
"dest_port": 53,
"proto": "UDP",