Project

General

Profile

Actions

Bug #992

closed

Different alerts reported when reading from pcap file with runmode=single and runmode=autofp

Added by Ken Steele about 9 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

When running suricata processing a pcap file, I see different alerts between runmode=autofp and runmode=single.
Some of the differences could be thresholds, but for sid:2221010, which have apps-layer-event, but no thresholds, I still see differences.

The attached script runs suricata on a specific pcap file with a specified runmode. To run the two cases, I do:
./test-one-file LL1999_Week1_Tue_inside.pcap single
./test-one-file LL1999_Week1_Tue_inside.pcap autofp

Comparing the results, there are different number of alerts for sid:2221010
grep 1:2221010:1 single-results/LL1999_Week1_Tue_inside.sorted | wc -l
4694
ken@lab-39:~/test-suricata$ grep 1:2221010:1 autofp-results/LL1999_Week1_Tue_inside.sorted | wc -l
4373

Test pcap file: http://www.ll.mit.edu/mission/communications/cyber/CSTcorpora/ideval/data/1999/training/week1/tuesday/inside.tcpdump.gz

git version: c1190545cfb1d06037847b94620591d2be6f3c07

$ LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/suricata --build-info
This is Suricata version 2.0dev (rev c119054)
Features: PCAP_SET_BUFF LIBPCAP_VERSION_MAJOR=1 AF_PACKET HAVE_PACKET_FANOUT LIBCAP_NG LIBNET1.1 HAVE_HTP_URI_NORMALIZE_HOOK
64-bits, Little-endian architecture
GCC version 4.6.3, C version 199901
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16
compiled with -fstack-protector
compiled with _FORTIFY_SOURCE=2
L1 cache line size (CLS)=64
compiled with LibHTP v0.5.7, linked against LibHTP v0.5.7
Suricata Configuration:
AF_PACKET support: yes
PF_RING support: no
NFQueue support: no
IPFW support: no
DAG enabled: no
Napatech enabled: no
Unix socket enabled: no

libnss support:                          no
libnspr support: no
libjansson support: no
Prelude support: no
PCRE jit: no
libluajit: no
libgeoip: no
Non-bundled htp: no
Old barnyard2 support: no
CUDA enabled: no
Suricatasc install:                      yes
Unit tests enabled:                      no
Debug output enabled: no
Debug validation enabled: no
Profiling enabled: no
Profiling locks enabled: no

Generic build parameters:
Installation prefix (--prefix): /usr/local
Configuration directory (--sysconfdir): /usr/local/etc/suricata/
Log directory (--localstatedir) : /usr/local/var/log/suricata/

Host:                                    x86_64-unknown-linux-gnu
GCC binary: gcc
GCC Protect enabled: no
GCC march native enabled: yes
GCC Profile enabled: no

CPU (12 cores 2 threads/core):
processor : 23
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU X5660 @ 2.80GHz
stepping : 2
microcode : 0xc
cpu MHz : 2793.017


Files

test-one-file (657 Bytes) test-one-file Ken Steele, 10/07/2013 12:22 PM
compare-results (171 Bytes) compare-results Script to compare *.sorted in two directories (eg ./compare single-results autofp-results) Ken Steele, 10/17/2013 10:27 AM
autofp-6732-10298.sorted (269 KB) autofp-6732-10298.sorted Sorted alerts without time-stamps from reading LLS-6732-10298.pcap with runmode=autofp Ken Steele, 10/17/2013 10:27 AM
LLS-208.209.46.47.pcap (520 KB) LLS-208.209.46.47.pcap Subset of DDOS pcap for two specific IP addresses. This Fails Ken Steele, 10/17/2013 10:27 AM
LLS-6732.pcap (120 KB) LLS-6732.pcap Further subset with only one flow to port 6732. This PASSES Ken Steele, 10/17/2013 10:27 AM
LLS-6732-10298.pcap (126 KB) LLS-6732-10298.pcap subset with two flows for ports 6732 and 10298. This FAILS Ken Steele, 10/17/2013 10:27 AM
LLS-10298.pcap (5.54 KB) LLS-10298.pcap Subset with only one flow for port 10298. This PASSES Ken Steele, 10/17/2013 10:27 AM
LLS-not-10298.pcap (514 KB) LLS-not-10298.pcap Remove the flow to port 10298. This one PASSES Ken Steele, 10/17/2013 10:27 AM
single-6732-10298.sorted (271 KB) single-6732-10298.sorted Sorted alerts without time-stamps from reading LLS-6732-10298.pcap with runmode=single Ken Steele, 10/17/2013 10:27 AM
suricata.yaml (43.3 KB) suricata.yaml Conf file that disables detect keywords: tag, threshold, detect_filter and app-layer-event Ken Steele, 10/17/2013 10:27 AM
LLS_DDOS_2.0.2-inside.pcap.xz (17 MB) LLS_DDOS_2.0.2-inside.pcap.xz Original pcap file from Lincoln Labs DDOS published traces Ken Steele, 10/17/2013 10:27 AM
Actions

Also available in: Atom PDF