Anoop Saldanha
|
72b0fcf419
|
modify detection engine to carry out uri mpm run before build match array if alproto is http and if sgh has atleast one sig with uri mpm set
|
15 years ago |
Anoop Saldanha
|
7ec0382774
|
support fast pattern for http raw header. Also support relative modifiers for http raw header
|
15 years ago |
Anoop Saldanha
|
c61c68fd36
|
mpm and fast pattern support for http_header. Also support relative modifiers for http_header
|
15 years ago |
Anoop Saldanha
|
778ec0939c
|
make client body buffer limit configurable. Also some minor changes
|
15 years ago |
Anoop Saldanha
|
302011dbca
|
fix compilation issues with debug enabled.
|
15 years ago |
Anoop Saldanha
|
0aa5cffb12
|
fast pattern support for http_client_body keyword added. Also mpm support for http_client_body added
|
15 years ago |
Anoop Saldanha
|
bbd0c5056b
|
store the content added for mpm inside Signature. also carry out an unconditional cleanup of packet pattern matcher pmq det_ctx->pmq
|
15 years ago |
Anoop Saldanha
|
68b78664fa
|
Add unittests for checking content flags. Fix indentation in PopulateMpmAddPatternToMpm(). Also fix DETECT_CONTENT_IS_SINGLE
|
15 years ago |
Anoop Saldanha
|
b15ada8102
|
set content_packet_mpm and content_stream_mpm flag for content to prevent double check inside inspection code
|
15 years ago |
Anoop Saldanha
|
67aecc73c2
|
set content_uri_mpm flag for uri content to prevent double check inside inspection code
|
15 years ago |
Anoop Saldanha
|
6df051321f
|
fix fp when content is negated and also added to mpm
|
15 years ago |
Victor Julien
|
234656e5f6
|
Fix compilation in --enable-debug mode.
|
15 years ago |
Anoop Saldanha
|
eade60f0fd
|
make some name changes. break PopulateMpm(). Set the avoid mpm double check flags
|
15 years ago |
Anoop Saldanha
|
4883efd0f6
|
unifying content structure - uricontent now uses DetectContentData
|
15 years ago |
Anoop Saldanha
|
3c73854d2d
|
completely remove populate_mpm_flags. Some indentation changes. Also disable support to avoid double checks inside payload inspection for patterns added to mpm. Also add support to MpmFactory to reclaim a mpm_ctx
|
15 years ago |
Anoop Saldanha
|
a6899218fc
|
remove populate_mpm_flags from inside PatternMatchPreparePopulateMpm()
|
15 years ago |
Anoop Saldanha
|
6eaba8941c
|
Use new flags to indicate uricontent has a mpm set
|
15 years ago |
Anoop Saldanha
|
46b4806d8e
|
use a single populatempm() function to add the right content for mpm
|
15 years ago |
Anoop Saldanha
|
4a038511ff
|
Change the struct members uricontent and uricontent_len in DetectUricontentData to content and content_len. Make replacements everywhere else in the codebase to accomodate these changes
|
15 years ago |
Anoop Saldanha
|
e0476242c6
|
replace all Signature->umatch instances in the engine with Signature->sm_lists[DETECT_SM_LIST_UMATCH]
|
15 years ago |
Anoop Saldanha
|
e54358a9e1
|
replace all Signature->pmatch instances in the engine with Signature->sm_lists[DETECT_SM_LIST_PMATCH]
|
15 years ago |
Anoop Saldanha
|
0c5b82d891
|
provide separate ids for content, uricontent, http_(client_body_data|cookie|header|method|uri), when they share the same pattern
|
15 years ago |
Anoop Saldanha
|
e072841e93
|
hash fix in staging to differentiate nocase duplicate patterns from case-senstive ones
|
15 years ago |
Anoop Saldanha
|
29b5cb9abd
|
respect content flags in hash compare function during staging. For example, we would end up ignoring a nocase version of a duplicate content from another sig in the same sgh
|
15 years ago |
Anoop Saldanha
|
0ef684705c
|
support single mpm context distribution across sghs in staging. Also see to it that ac works fine with this setup
|
15 years ago |
Anoop Saldanha
|
658ff5753d
|
aho-corasick for the cpu. We have 2 versions of ac. The first MPM_AC uses the delta table and the secone one MPM_AC_GFBS uses the goto-failure table
|
15 years ago |
Victor Julien
|
5a7efe5f97
|
Add comment and layout update to new fast_pattern code.
|
15 years ago |
Anoop Saldanha
|
a85fa6b792
|
support for fast_pattern only and fast_pattern:offset,length. Also support the new option for engine-analysis
|
15 years ago |
Victor Julien
|
1859ed54c7
|
Add memcmp api with a plain memcmp function and a SSE3 accelerated memcmp.
|
15 years ago |
Victor Julien
|
fc248ca7a1
|
Many small performance updates.
|
15 years ago |
Victor Julien
|
87f88867f4
|
Further improve B2gc. Add B2gm. Improve memory layout.
|
15 years ago |
Victor Julien
|
9dfbab42f8
|
WIP B2gc
|
15 years ago |
Pablo Rincon
|
76af1b049b
|
Make malloc errors on initialization stage a fatal error, resulting on a exit() call
|
15 years ago |
Victor Julien
|
7acb97da9d
|
Use same mpm prepare procedure for uricontent as for normal content. More cleanups.
|
15 years ago |
Victor Julien
|
9ba11dbfbd
|
Clean up detection engine mpm initialization phase.
|
15 years ago |
Victor Julien
|
0219b767b8
|
Fix a content pattern matching bug related to signature grouping and mpm_ctx sharing. In certain conditions (signature combinations) the mpm_stream_ctx (the ctx that handles stream pattern scanning) wasn't properly setup.
|
15 years ago |
Anoop Saldanha
|
33f4beb0bc
|
batching of packets support for cuda b2g mpm. Supported for both 32 and 64 bit platforms
|
15 years ago |
Victor Julien
|
393acd77d2
|
Detection improvements: uricontent escaping now working, better negated pattern (content) handling.
|
15 years ago |
Victor Julien
|
a3ff0e7210
|
Don't scan TCP packet payload if it was added to the stream. Inspect the tcp stream with the correct packet. Should fix #184 and #185.
|
15 years ago |
Victor Julien
|
b8fec77f37
|
Fix tcp connections that are reset (RST packet) not always inspecting the reassembled stream. Update transaction id code to make sure both directions of a transaction are inspected before incrementing the inspect_id.
|
15 years ago |
Victor Julien
|
83b2c8abdb
|
Improve stateful uri detection code.
|
15 years ago |
Victor Julien
|
9dd753b5f3
|
Scan uricontent mpm on demand.
|
15 years ago |
Victor Julien
|
a24f288074
|
Moving the stream content scanning to have it's own mpm ctx.
|
15 years ago |
Victor Julien
|
9a08d6c11c
|
Fixes to stream pattern matching.
|
15 years ago |
Victor Julien
|
a0c1209a44
|
Inspect the reassembled stream together with the packet payload in the same direction.
|
15 years ago |
Gurvinder Singh
|
cda664a8c4
|
memroy leaks fixes in detection module, app layer and counters
|
15 years ago |
Gurvinder Singh
|
5fe1dc1d24
|
support for sslv2/sslv3 their unit tests and better stream no reassembly flag handling
|
15 years ago |
Gerardo Iglesias Galvan
|
9f4fae5b1a
|
Fix inconsistent use of dynamic memory allocation
|
15 years ago |
Victor Julien
|
7a427ec7f4
|
Switch to pattern id based results checking in the mpm. Move app layer proto detection towards a more signature based approach.
|
15 years ago |
Victor Julien
|
a372c1d14e
|
Fix/workaround a strange detection issue.
|
15 years ago |