Commit graph

17337 commits

Author SHA1 Message Date
Seth Hall
8c71e68c05 Fixed a bug where notices and the conn log.
- Notices that weren't logged were still tagging
  the conn log which was confusing.  Only logged
  notices are now tagged in the conn log.
2011-06-09 12:50:00 -04:00
Seth Hall
31b63295a1 Fixed a bug with SSH analysis.
- SSH connections that appear successful weren't stopped
  from being analyzed for success after the detection.
2011-06-09 12:45:59 -04:00
Seth Hall
31cc124578 Small updates to DPD scripts. 2011-06-09 12:29:26 -04:00
Seth Hall
2a01f1686e New policy directory: policy/tuning
- The all.bro script loads tuning/defaults which is
  commonly applied tuning.
- Other less common tuning can be placed in the tuning/
  directory directly.
2011-06-09 12:28:32 -04:00
Seth Hall
7285bf890e Merge branch 'topic/policy-scripts-new' of ssh://git.bro-ids.org/bro into topic/policy-scripts-new 2011-06-09 12:22:50 -04:00
Seth Hall
0be9f7aa3e Moved and renamed the pcap.bro script to be the packet-filter framework. 2011-06-09 12:22:33 -04:00
Seth Hall
d3d9fedd2c Reshuffling notice declarations to make them exported.
- Notices were not available outside of their namespaces.
2011-06-09 11:59:06 -04:00
Jon Siwek
49c026fc1e Comment tweak: autodoc can't be inside function bodies 2011-06-09 09:46:54 -05:00
Seth Hall
590e6d0360 Fixing some runtime errors in the software framework. 2011-06-08 00:55:42 -04:00
Seth Hall
5058fcc791 Reoganized the Weird file to make values available globally. 2011-06-08 00:42:27 -04:00
Seth Hall
47c6afac8e Slight changes to software detection framework.
- This probably won't fix anything, but I'm checking
  for size of tables a bit more consistently now.
2011-06-08 00:18:42 -04:00
Seth Hall
0778d5e8d5 Updates to the notice framework. 2011-06-08 00:17:54 -04:00
Seth Hall
4ff47db8c1 Fixed small bug with unique_id BiF. 2011-06-08 00:16:58 -04:00
Seth Hall
27f692799f Small but crucial fix for the new unique_id function. 2011-06-07 23:47:39 -04:00
Seth Hall
57531e0769 Merge remote branch 'origin/master' into topic/policy-scripts-new
Conflicts:
	policy/bro.init
	policy/ssl.bro
2011-06-07 23:26:03 -04:00
Seth Hall
29bfc5eff1 Fixed some new bugs with file extraction. 2011-06-07 23:12:49 -04:00
Seth Hall
63efdc89ef Fixes to HTTP scripts based on comments from Jon. 2011-06-07 23:09:31 -04:00
Seth Hall
0c1dac2fce Cleaned up and normalized file extraction across protocols. 2011-06-07 23:08:37 -04:00
Seth Hall
d12dd0f82c Signature script normalization and cleanup. 2011-06-07 23:06:29 -04:00
Seth Hall
e0174f583e Changing empty fields to also use "-" for ascii logging. 2011-06-07 23:05:35 -04:00
Robin Sommer
8266709e20 A new bif unique_id(prefix) that returns a string that's unique across
Bro instaces with high probablity.

"prefix" is a string that will be prepended to the returned ID.
2011-06-07 17:57:22 -07:00
Seth Hall
8a0e14f0dc Fixed a bug with detecting webapps. 2011-06-07 17:03:32 -04:00
Seth Hall
0de6393c6f Removed an HTTP dependency that is now gone. 2011-06-07 16:38:41 -04:00
Seth Hall
02b45bc9ea Fixed major bug in IRC analysis. 2011-06-07 16:35:55 -04:00
Seth Hall
6c9ff37e61 Removed the extended http script since it wasn't used. 2011-06-07 16:35:25 -04:00
Robin Sommer
4bdb94955d Merge remote branch 'origin/topic/seth/ssl-binpac'
* origin/topic/seth/ssl-binpac:
  Fixed bug due to vectors now initially indexed on 0.
  Finished core support for new SSL analyzer.
  SSL analyzer changes with accompanying BiF.
  A table_s_of_s type to get around bifcl type limitation.
  Regenerated the Mozilla CA bundle without the untrusted server authentication certs.
  Complete rewrite to SSL analyzer.

Conflicts:
	src/AnalyzerTags.h
	src/CMakeLists.txt

Notes:

    - Haven't looked at the script-level, postponed to
      policy-scripts-new.

    - I renamed X509Extension to X509_extension for consistency.
2011-06-07 10:12:25 -07:00
Robin Sommer
6e6af4c541 Merge remote branch 'origin/topic/seth/syslog-analyzer'
Note: I didn't merge anything in policy/*. Seems there was some
unrelated stuff in there, and the ticket says that the policy script
was a dummy for now anyway.

* origin/topic/seth/syslog-analyzer:
  Updates for syslog analyzer to prepare it for merging.
  Added the initial syslog analyzer and policy script.
  Adding some of the initial scripts that are going to be merged from my script repository.
2011-06-05 18:37:48 -07:00
Seth Hall
6322130c37 Updates for syslog analyzer to prepare it for merging.
- Integrated with CMake.
- Analyzer only support syslog over UDP right now.
- Fixed small bug in the analyzer to make it generate events correctly.
2011-06-03 10:28:10 -04:00
Seth Hall
b621b8eccc Merge remote branch 'origin/master' into topic/seth/syslog-analyzer
Conflicts:
	src/Analyzer.cc
	src/Makefile.am
2011-06-03 09:38:23 -04:00
Seth Hall
7d68b4c7a0 Removed some accidental debugging print statements. 2011-06-03 07:53:02 -04:00
Seth Hall
737315aa54 Clean up for the functions.bro script.
Just a little more until that file is gone.
2011-06-03 07:51:46 -04:00
Seth Hall
aa602b9cdd Fixed a bug with threshold checking for the SSH script. 2011-06-03 07:50:49 -04:00
Seth Hall
72f2472d1d Updates for the pcap.bro script.
- The install_pcap_filter BiF no longer will prevent
  a filter from being installed if a -f filter was
  provided.  This was already causing a problem where
  command line supplied filters weren't working.
  The pcap.bro script is now where the filter update
  limitation is placed making it possible for users
  to still update the filter at runtime if they really
  want to.
2011-06-03 07:50:30 -04:00
Seth Hall
8bffd350a4 Updating to use the new directory loading technique. 2011-06-03 07:47:49 -04:00
Seth Hall
fbf207deda Merge remote branch 'origin/master' into topic/policy-scripts-new 2011-06-03 07:38:28 -04:00
Robin Sommer
a236dd0d3d Fixing typo in test. 2011-06-02 22:07:36 -07:00
Robin Sommer
fac328685b @load now supports loading a directory.
With a directory "foo" somewhere in BROPATH, "@load foo" now checks if
there's a file "foo/__load__.bro". If so, it reads that file in. (If
not, Bro reports the same error as before, complaining that it can't
read a directory).
2011-06-02 21:57:24 -07:00
Seth Hall
27f006f317 Missed a comment from Robin about IRC. 2011-06-02 16:32:18 -04:00
Seth Hall
362f1a8ee1 Updated IRC script based on comments from Robin. 2011-06-02 16:30:08 -04:00
Seth Hall
f0d4447971 Re-added the $force_log attribute to the Software::Info record.
I re-added it because it's used by the detect-webapps
script to re-log software that may already be logged
if a more-root URL is found that still represents the
same software.
2011-06-02 16:20:16 -04:00
Seth Hall
08b8873e8b Updates to the notice framework based on comments from Robin.
- New extension mechanism.
  - Notices requiring realtime actions can be accomodated with
    the notice_functions set which are called synchronously
    prior to logging or any further handling.
  - Notice::notice event handlers will be called afterward
    and follow normal (old) notice handling process.  Logging
    is done by handling this event.
- Lots of new docs.
- Renaming Action enums to reduce confusion with Type enums.
- Notice tags are attached to the Conn::Info record as a set[string].
2011-06-02 16:18:23 -04:00
Seth Hall
beab408164 Updates for the software framework based on comments from Robin. 2011-06-02 10:38:24 -04:00
Robin Sommer
5c0704eec8 ASCII logger now escapes non-printable characters.
Closes #450.
2011-06-01 22:33:44 -07:00
Seth Hall
aaab2f8cbb Fixed some more script bugs and more cleanup. 2011-06-01 15:04:05 -04:00
Seth Hall
ec5fed4c68 Responding to comments from Jon. 2011-06-01 15:00:20 -04:00
Robin Sommer
09083b8992 Updating submodule(s). 2011-06-01 11:35:37 -07:00
Robin Sommer
a3b527be4b Updating submodule(s). 2011-06-01 11:30:59 -07:00
Robin Sommer
909c5daf6c Revert "Setting the snaplen to 0 to capture the full packet regardless of size."
This reverts commit fe274c3e64.
2011-06-01 11:27:53 -07:00
Seth Hall
6c8c26e106 Adding the new wrapper script for SSL analysis scripts. 2011-06-01 13:27:40 -04:00
Seth Hall
dddabcaafb Checkpoint for reorganization of SSL analysis scripts. 2011-06-01 13:27:26 -04:00