Commit Graph

865 Commits (763fb4a583ba8d7315872e8cbb7276ec3e95364c)

Author SHA1 Message Date
Gerardo Iglesias Galvan 5eb819b0f4 Add signature line no. to error message when parsing fails 15 years ago
Gerardo Iglesias Galvan fae92f8d7b Fix bug#30. Fix logging call from prev patch 15 years ago
Gerardo Iglesias Galvan 988dc5520b Improve output when loading rules 15 years ago
Victor Julien 56556eb550 Set payload no inspect flag for packets with encapsulated packets as these are inspected separately 15 years ago
Victor Julien 9ececacda3 Fix packet timestamp handling for encapsulated packets. 15 years ago
Jason Ish 4c83652ad3 initialize vars 15 years ago
Victor Julien c1283a6628 Fix app layer proto detection code not being thread safe. 15 years ago
Gurvinder Singh fde948f488 bug 41 patch 15 years ago
Victor Julien fcabd1b2ba Fix typo. 15 years ago
Jason Ish cf95fa7c74 configurable outputs for nfq and pcap file. 15 years ago
Jason Ish a05436af8c Configurable alert outputs for PF_RING modes. 15 years ago
Jason Ish 844c444af1 Use the configuration file to setup alert logging (and http logging).
Only setup for the live pcap modes at the moment.
15 years ago
Victor Julien 13e10ccd86 Enable bytes per sec and mbit per sec for nfq as well 15 years ago
Anoop Saldanha e45b626b24 refactoring, tests for address engine ipv4 15 years ago
Jason Ish 1aabe6f7c1 in the unit tests make sure memory allocated from the pool was returned. 15 years ago
Jason Ish 6547725b39 consolidate more common code between ipv4 and ipv6. 15 years ago
Jason Ish 176c6e5668 use a common insert method for ipv4 and ipv6 15 years ago
Jason Ish ccbf8bcae5 Use the V6 insert and re-assembly logic for IPv4 as well. Its a little simpler to track and update. 15 years ago
root 9b74a2765e 64 bit portability 15 years ago
Victor Julien d7958f7983 fix wrong keyword name 15 years ago
Victor Julien 9ee6d6906f Add some safety checks. 15 years ago
Anoop Saldanha 06a640e794 fix for bug #47 15 years ago
Anoop Saldanha a83f7abcc1 logging module bug 6 fix 15 years ago
Victor Julien 6b36e23e45 Fix not decreasing the flow use_cnt reference counter in some cases from the app layer detection code. This caused some streams to never fully time out and thus clutter up the flow table and session pool. 15 years ago
Victor Julien c3269dbcb4 Fix compiler warning in http method code 15 years ago
Brian Rectanus c22d42693a Added http_method rule keyword. 15 years ago
Gurvinder Singh 6814ea1a0f some more stream fixes 15 years ago
Victor Julien 94ae001dec Fixup month displaying for the stats log. 15 years ago
Victor Julien 5e8413aeea Don't scan more of a stream for proto detection than necessary. 15 years ago
Gurvinder Singh a66c6752d5 stream os_policy support 15 years ago
Anoop Saldanha eea0e2a807 Radix Tree fixes/updates 15 years ago
Victor Julien 8f7cff1d53 Fix compilation with -Wextra 15 years ago
Victor Julien b7bac14040 Fixup code to compile with -Wall -Werror -Wextra -Wno-unused-parameter compiler options. 15 years ago
Gurvinder Singh 4e1dc0bd83 bug 41 patch 15 years ago
Gurvinder Singh 567bbf604b stream reassembling fixes 15 years ago
Jason Ish 6520d42b4c Allow nested sequences. 15 years ago
Jason Ish d86282af9c pretty up ConfDump output for when there is no valid prefix 15 years ago
Jason Ish 668b86cba4 Fix issue 36. Give each unit test a fresh configuration context - helps tests pass when a config file is passed in, which can
mess up the "expected" output, as this is testing loading
values into the configuration system.
15 years ago
Jason Ish 749647a69d use const 15 years ago
root 5113636744 bind and bind_ack tracking 15 years ago
Victor Julien 1f09a88c93 Improve default-log-dir error checking and reporting. 15 years ago
Anoop Saldanha 750600ab17 check for the existance of default logging directory 15 years ago
Anoop Saldanha 8189f4d88e Change error log messags to debug ones in the log modules 15 years ago
Victor Julien f5ef0cc3b8 Exit if no classification.config has been found. 15 years ago
Victor Julien 9e5f7459c2 Actually use classification msg 15 years ago
Victor Julien 2b66667a76 Make sure we can't overflow our packet alert storage 15 years ago
Jason Ish 527d735500 Suppress these debug lines. 15 years ago
Victor Julien 9b422c443e Fix up initialization and hopefully make the SEQ macro's fix up an 64bit issue we're seeing... 15 years ago
Victor Julien 18aa59b391 Fix compilation and a small memory error. 15 years ago
Anoop Saldanha f684989f98 dce_iface, dce_opnum, dce_stub_data keyword support 15 years ago
Victor Julien d284f0d333 Set default classification file location in the config file. 15 years ago
Victor Julien ecab1fae36 Remove contents of VRT classification.config. 15 years ago
Anoop Saldanha 011b74df63 Modify the classification config tests to use the buffer than a temp file and also fix an invalid free 15 years ago
Anoop Saldanha bc4df59414 Support for Classtype keyword and Classification Config file 15 years ago
Victor Julien f0be69dcd0 Fixup smb/smb2/dcerpc wrt loops, debug printing, style. 15 years ago
Victor Julien 4c2782e971 Improve depth and offset setup error reporting 15 years ago
Victor Julien f6f0ad94ce silence a debug statement in the msg handling 15 years ago
Victor Julien d5c732f1f9 Add tag keyword stub 15 years ago
Victor Julien b2adf31595 online abort() in stream reassembly if were in debug mode 15 years ago
Victor Julien ef6ab4efa0 Add pcre negate support. 15 years ago
William Metcalf 1d553c940b failing unit test showing negated pcre treated as nonnegated match 15 years ago
Victor Julien 040e62f3ec Fixup noisy debug statement 15 years ago
Victor Julien 7b2610ba1f Fix extra spaces confusing content and uricontent. 15 years ago
Gurvinder Singh a19fbf22e2 bug 29 patch 15 years ago
Victor Julien ae94b102cb Improve distance/within/nocase handling, sig parsing error reporting. 15 years ago
Victor Julien 4862488dac add version output, -V option 15 years ago
Victor Julien 6beee776ca Move rand seed code into util-random 15 years ago
Pablo Rincon 6224c30548 Adding preseending to rands 15 years ago
Jason Ish b2ee780788 "last" policy for ipv6 15 years ago
Jason Ish ecc50b8b2f add first policy for ipv6 frag re-assembly 15 years ago
Jason Ish d9380a8cb5 solaris policy for ipv6 15 years ago
Jason Ish ce20c33634 multiline rule support. 15 years ago
Will Metcalf 23aa6cf642 more fixes for exit on sig init failure 15 years ago
Will Metcalf f2b1e66a6a fixes for init failure stuff 15 years ago
Victor Julien 778228d1c5 Flags keyword fix. Fatal init fix. 15 years ago
Victor Julien 35e884f303 Make sure offset modifies depth. 15 years ago
William Metcalf c63b1e0f67 failing unit test depth doesn't take into account offset 15 years ago
Will Metcalf cc3c1779cd more project name updates 15 years ago
Victor Julien 9bbe43c019 Fixup calculation of the minimum scan pattern lenght in some cases. 15 years ago
Victor Julien aa736b01d6 Fix thresholding coding changing unlocked and supposed to be static memory areas. 15 years ago
Victor Julien c969294fef Make sure icmp rules also apply to icmpv6 15 years ago
Gurvinder Singh 8cfdf6c666 bug 18 patch update 15 years ago
Gurvinder Singh b92886a79a bug#18 and some minor changes 15 years ago
Gurvinder Singh 542a43437e bug19 patch 15 years ago
Pablo Rincon 0e83759ed4 Small fix 15 years ago
Victor Julien 1d12de9500 DetectContentChunkMatchTest11 is no longer expected to fail. 15 years ago
Victor Julien 18441c2be7 Fix broken pattern len compilation causing certain patterns to no match when they should. 15 years ago
Victor Julien 0ab9adabd4 Test PortTestMatchDoubleNegation is no longer expected to fail. 15 years ago
Victor Julien 0a699857d6 Fix negation for addresses as well. 15 years ago
Victor Julien 50c07f9901 Fix wrong negation of ports. 15 years ago
Victor Julien 10cc9d5b6a Add icmp flow handling. 15 years ago
Victor Julien 71ed2d38f5 Fix scan patterns sometimes not being added to the scan ctx. Should fix bug #9. 15 years ago
William Metcalf c40e81d42b failing unittest rules with same content match fail 15 years ago
Victor Julien a8116f65c8 Fix packet flags field not being cleared properly when the packet is being reused. Add some debug statements and cleanup some. 15 years ago
Victor Julien e2376948dd Clean up smb/dcerpc code 15 years ago
root 48cdc8e0fd DCERPC BIND work 15 years ago
Jason Ish 9d55a41e49 Windows and Linux policies for IPV6 frag reassembly. 15 years ago
Victor Julien 4824868766 Application layer detection improvements
- improve locking of application layer handling, making sure that the flow cannot be freed/cleared when the detection engine is still working with it.
- add a check to the app layer detection to make sure that a match function will only inspect an app layer state if it's of the right type.
15 years ago
Victor Julien 310a182217 Fix signatures not being initialized properly 15 years ago
Victor Julien 6fe5509617 Fix compiler warning when using HTP rev 68. 15 years ago
Victor Julien 79b15bd1cc fix typo 15 years ago
Victor Julien 53041eeb67 Small cleanups. 15 years ago
Victor Julien 8cc792a3c7 Fix potential deadlock in http cookie match. 15 years ago
Pablo Rincon f729d6f7b3 Changing some more printfs with logging api 15 years ago
Pablo Rincon f2f9b83280 Adding FTP app layer parser and ftpbounce detection at L7 15 years ago
Victor Julien d35dd1c4ea Improve http cookie htp state checking before using it. 15 years ago
Pablo Rincon 6f76ed6804 Match content fail when two contents are specified in the same rule and the last of them has length = 1 15 years ago
Anoop Saldanha f8edb74439 double port/address negation is parsed incorrectly 15 years ago
Victor Julien 6ab64706b0 Improve threshold hash table handling. 15 years ago
Gurvinder Singh 8c8b8596c8 fixed bug 18 15 years ago
Gurvinder Singh 8287ebe12c bug 21 fixing patch 15 years ago
Anoop Saldanha 4d430060d2 fix for unclear error messages bug 15 15 years ago
Anoop Saldanha 47ad1e5b2e detect-engine-address.[ch] refactoring 15 years ago
Anoop Saldanha 2c0345f55e Fix for Unified Alert Test Bug #14 15 years ago
Gerardo Iglesias Galvan 7e87f373b9 Add icmp_id keyword support 15 years ago
Victor Julien 01976a0b74 Support for sigs with both pkt and applayer detect
Sets a flowbit with the sig id if the packet matches match. Checks
on that if the app layer matches match. Currently misuses the
flowbits api for this in a way that needs fixing.
15 years ago
Victor Julien 493715c0d2 Implement alert sid storage in the flow so we can check previous alerts in the flow. 15 years ago
Victor Julien 9fd46e9425 Support for sigs with both pkt and applayer detect
Sets a flowbit with the sig id if the packet matches match. Checks
on that if the app layer matches match. Currently misuses the
flowbits api for this in a way that needs fixing.
15 years ago
Gurvinder Singh 0419ad7c9a fixed 23 bug 15 years ago
Victor Julien 4f843ff8e9 Improve matching of packet and app layer sigs. 15 years ago
Pablo Rincon 992aaa3d79 Small fix on SigMatchSignaturesAppLayer() and SigMatchSignatures() 15 years ago
Pablo Rincon 459a823a09 Reutilize the filename buffer and avoid malloc's 15 years ago
Pablo Rincon 5f59def86a Force reset size_current to 0 after rotate 15 years ago
Jason Ish fdb1c9c4f2 cleanup warnings. 15 years ago
Jason Ish 6cc0771d6f - Fix memory leak error when freeing node.
- Cleanup ConfDump output a little.
15 years ago
Victor Julien 4c79e6d5b6 compile fixes 15 years ago
Jason Ish 28cad3429c An example of how logging could be configured from the log file. 15 years ago
Jason Ish 90c46ee2c9 Add the ability to lookup a child ConfNode, or just the value of a child ConfNode. 15 years ago
Jason Ish 59ec05645f Index sequence items - allows us to store sequences of mappings in the configuration database. 15 years ago
Gurvinder Singh 0a85fd6787 htp error fixed 15 years ago
Gurvinder Singh d8433c7255 fixed-pool-error-and-tcp-state-transition 15 years ago
Victor Julien 53e3e6dee8 Fix compilation after suricata rename. 15 years ago
Pablo Rincon 7473f716bd Improving error report on runmodes and daemon compatibility 15 years ago
Gerardo Iglesias Galvan 5471baf8f4 Change case values to their corresponding enum values 15 years ago
Gerardo Iglesias Galvan e917065e26 Add support for daemon, checking for valid combination of modes 15 years ago
Victor Julien 8490208ba1 Fix bug fix 15 years ago
Victor Julien fa5dbaeb1d Fix segv when testing for sid 2002181 15 years ago
Breno Silva 69eb869cc9 Threshold Rule 15 years ago
Victor Julien ecf86f9c23 Rename to Suricata. 15 years ago
Gurvinder Singh 71a77bf8d6 removeh http_cookie flag 15 years ago
Gurvinder Singh 85f054cac2 changed to DetectHttpCookieData 15 years ago
Gurvinder Singh a0f184866c http_cookie keywork support 15 years ago
Victor Julien 18fe3818dc Remove need_lock from app layer parsers. 15 years ago
William Metcalf 7e2408d273 FreeBSD correct arch specific gettid defs 15 years ago
Gurvinder Singh 7ce586bc77 updated htp error info 15 years ago
Victor Julien ba7e8012af Add some debugging and simplify locking for app layer slightly. 15 years ago
Gurvinder Singh fc2f7f29fa app layer htp error handling and fixes for memory leaks and segv 15 years ago
Victor Julien aa653157bf Convert stats printing in nfq to logging api. 15 years ago
Victor Julien e5301effe6 Make nfq module use logging api. 15 years ago
Pablo Rincon a67bd2457b Loading rules from config support 15 years ago
Victor Julien 3233888c65 Disable noisy debugging statements 15 years ago
Kirby Kuehl 73bdc8a5c3 fix unittests 15 years ago
Kirby Kuehl c20bc68367 readandx and writeandx parsing for smb 15 years ago
Kirby Kuehl 57331ea2a2 add smb2 proto and smb, smb2, dcerpc unit tests 15 years ago
Jason Ish 0d92f0018b First cut at IPv6 re-assembly. Only BSD policy for now, packets don't actually get passed to it yet though. 15 years ago
Pablo Rincon c816af822e Adding support to load rule files from config 15 years ago
Gerardo Iglesias Galvan 7642e53f06 Fix warnings from previous patch. Add info to usage output. 15 years ago
Gerardo Iglesias Galvan b254719ffc Add fatal failures on unittest and siginit failure (using Conf API) 15 years ago
Pablo Rincon 658eac2825 Adding max pattern length for bidirectional operator. Please, use DetectEngineAppendSig() at the unittests. Look at the bidirectional operator unittests for a usage reference. 15 years ago
Pablo Rincon 1ad6d75dfe Added rpc keyword support at packet level 15 years ago
Victor Julien d388444ac3 Use updated mutex calls. 15 years ago
Gurvinder Singh ad3e463974 updated error info ouput 15 years ago
Anoop Saldanha cd0de89bd4 Fix for handling negated content "\!CONTENT" 15 years ago
William Metcalf 16d2bf6b8e unit test showing flags:0 alerting when it shouldn't 15 years ago
Breno Silva 0acf472392 Flags Issue 15 years ago
William Metcalf ec1cb9c0db more invalid netmask fixes and unittest 15 years ago
Victor Julien d5c11f7abd Make engine initialization a bit more quiet. 15 years ago
Victor Julien eaaf0bd61c Use correct mutex call in flow-vars code. 15 years ago
Pablo Rincon 43a1ae9a4b Changing some printf to SCLogDebug at flow vars 15 years ago
Pablo Rincon c6c7742464 Added support at Flowints for keywords isset and notset 15 years ago
Pablo Rincon a8d7b71490 First version of flowints 15 years ago
Gurvinder Singh 1b39e602d0 fixed port info 15 years ago
Gerardo Iglesias 991d421394 Changed printf's to logging API functions 15 years ago
Pablo Rincon e26833be3f Changing mutex/spinlocks/conditions naming types 15 years ago
Victor Julien 406ee2ce70 Use new threading calls in htp code. 15 years ago
Pablo Rincon 769022f4be Adding support for Mac OS X, FreeBSD, centrailizing mutex/spins/conditions in a macro API, and some unittests 15 years ago
Victor Julien 4cae27522d Fix http module warnings. 15 years ago
Gurvinder Singh 2d6cf71d37 added htp unit test 15 years ago
Gurvinder Singh 07f7ba55b8 initial support for HTP module init 15 years ago
Victor Julien 6e9b582be6 Fixup rebase typo. 15 years ago
Gurvinder Singh c1e485cc44 app layer error handling 15 years ago
root 43fb771268 smb2 work 15 years ago
root 0f5f82efee smb2 work 15 years ago
root 74667e697a better smb parsing 15 years ago
Victor Julien 2213ff933f Compile fix. 15 years ago
Brian Rectanus 44083b6505 Fixed warning in detect-content. 15 years ago
Gurvinder Singh 91407e0938 fixed DetectByteTest bug 16 years ago
Pablo Rincon 6206ffb530 Adding bidirectional operator support and unittests 16 years ago
Breno Silva c552ccbd93 PCRE O Modifier 16 years ago
Victor Julien 574bcea09d initial version of better error checking/handling in the app layer code 16 years ago
Victor Julien 09dd7889a1 TLS: small updates to the tls parser
- small updates to the TLS parser after merging Gurvinders TLS work with my work.
16 years ago
Victor Julien 2cfa284999 Fix app layer detect to actually work. 16 years ago
Victor Julien a1d33e2d0b Compilation fixes after merge. 16 years ago
Victor Julien 7cda445c49 Add unitttest. 16 years ago
Victor Julien f1f7df0766 First iteration of doing app layer detection. 16 years ago
Victor Julien f31d8e0444 TLS no inspect: fixes and cleanups
- use byte extraction functions for getting the msg length
 - cleanup the parsing routines for multiple msgs
 - add unittests for multimsg payloads
16 years ago
Gurvinder Singh a16e7b7455 tls no reassembly support 16 years ago
Victor Julien 54b9663cd1 TCP streams: support falling back to 3WHS when we were led to believe we were in 4WHS mode. Add unittests. 16 years ago
Victor Julien 2af6ed0c8c Support newly reported 4WHS TCP setup. 16 years ago
William Metcalf af13665684 failing unit test where fast_pattern rule and non-fast_pattern rule inspect same payload 16 years ago