Commit graph

369 commits

Author SHA1 Message Date
Jon Siwek
c14afc7079 Adding conn.bro documentation for 'conn_state' and 'history' fields. 2011-05-12 12:47:43 -05:00
Jon Siwek
650177cde0 DNS policy scripts documentation cleanup/tweaks. 2011-05-12 12:19:43 -05:00
Seth Hall
7399b79dd2 Updating DNS scripts based on comments from Jon. 2011-05-11 14:17:35 -04:00
Seth Hall
01499922ac Merge remote branch 'origin/master' into topic/policy-scripts-new 2011-05-11 10:53:56 -04:00
Robin Sommer
0815ea9188 If IPv6 default is not compiled in, the default BPF filters now
excludes IPv6 packets.
2011-05-10 18:10:32 -07:00
Robin Sommer
e6208c8950 Bringing connection state history back, which was accidentally deleted
from conn.bro.

However, this is primarily for the record, conn.bro will be replaced
with a new version soon.
2011-05-10 17:56:53 -07:00
Seth Hall
2ee78fba12 Fixed a problem with constructing received from header paths.
- If mail between the MUA and mail server is seen, no
  received from headers will be there.  This situations
  is dealt with by setting the two hosts involved in the
  mail transfer as the last two hosts in the path.
2011-05-10 15:08:37 -04:00
Seth Hall
c0ff43fd4a Improved HTTP::build_url function.
- Scripts now deal with host headers containing the port value.
- build_url function copes with missing the request now
  (only seeing the response for some reason).
2011-05-10 13:49:55 -04:00
Robin Sommer
bd9855a380 Merge of Gregor's conn-size branch.
If 'use_conn_size_analyzer' is true, the event engine tracks number of
packets and raw IP bytes per connection. If report_conn_size_analyzer
is true, these values are included as four new columns into conn.log

I changed conn.bro so that the value of report_conn_size_analyzer
follows that of use_conn_size_analyzer. For the new conn.log, we
probably want to get rid of report_conn_size_analyzer anyway.
2011-05-09 17:14:31 -07:00
Seth Hall
a1f9ba8b1b Added metrics framework to all.bro 2011-05-08 03:58:49 -04:00
Seth Hall
474139f220 Start of the metrics framework. 2011-05-08 03:57:55 -04:00
Seth Hall
28bda4b077 Loading the webmail-ident script in the smtp.bro script. 2011-05-08 03:17:27 -04:00
Seth Hall
0f583f3e00 Removed some unnessary types from the base software script. 2011-05-08 03:17:03 -04:00
Seth Hall
13189cc08a Added the initial version of the web application detection script.
- Logging is done through the software framework.
- Versions are not detected yet.
2011-05-08 03:16:35 -04:00
Seth Hall
5aa85cc47a Created the webmail identification script. 2011-05-08 03:00:05 -04:00
Seth Hall
789908d182 More script updates from Robin's feedback. 2011-05-08 02:27:19 -04:00
Seth Hall
61fa9c6857 Clean up on software detection scripts. 2011-05-04 11:03:44 -04:00
Seth Hall
fa914cafd9 Added $uid to more base scripts. 2011-05-04 11:03:16 -04:00
Seth Hall
05299e2990 Weird updated to logging framework. 2011-05-04 11:02:26 -04:00
Seth Hall
b03726b3dc Updating comment on the timestamp for conn logs. 2011-05-03 23:51:44 -04:00
Seth Hall
bbf4c0718f The global http script now loads correctly loads detect-sqli 2011-05-03 23:51:18 -04:00
Seth Hall
a97cca4e86 Chaged http/detect to http/detect-sqli.
- It was only detecting SQL injections anyway, so it seems
  to make sense.
2011-05-03 15:34:42 -04:00
Seth Hall
2ba0baafd4 Small updates to deal with comments from Robin and Jon.
- Modifications for changes to vectors too.
2011-05-03 15:16:57 -04:00
Seth Hall
ea2b0c3e73 Updates for conn script based on feedback from Robin. 2011-05-03 14:48:16 -04:00
Seth Hall
ed37d8ae36 Updates to DNS scripts from Robin's feedback. 2011-05-03 14:11:05 -04:00
Robin Sommer
4aa844aa87 Switching vectors from being 1-based to 0-based.
This is obviously a change that break backwards-compatibility. I hope
I caught all cases where vectors are used ...

I've completely removed the VECTOR_MIN constant. Turns out that was
already not working: some code pieces were nevertheless hard-coding
the 1-based indexing ...
2011-05-02 17:10:18 -07:00
Seth Hall
ebf907fa33 More small cleanup. 2011-05-02 11:41:38 -04:00
Seth Hall
12820563a1 Merge remote branch 'origin/master' into topic/policy-scripts-new 2011-04-29 21:39:23 -04:00
Robin Sommer
9ddc26328d Support for (mixed) MPLS and VLAN traffic, and a new default BPF
filter. (Seth Hall and Robin Sommer)

- Merging in the patch from #264, which provides support for mixed
  VLAN and MPLS traffic.

- Changing Bro's default filter from being built dynamically to being
  a static "ip or not ip". To get the old behaviour back (i.e., the
  dynamically built filter), redef "all_packets" to false.

- print-filter.bro now always prints the filter that Bro is actually
  using, even if overriden from the command line.
2011-04-29 09:10:43 -07:00
Seth Hall
651bfc2e19 Bugfixes and improvements the dns script. 2011-04-27 16:02:59 -04:00
Seth Hall
5d2a9f6bcc HTTP script rework and bug fixing. 2011-04-27 10:15:15 -04:00
Seth Hall
58370e7aab Added software detection for unspecified WebKit based browsers. 2011-04-26 15:24:25 -04:00
Seth Hall
e6fd1d9178 Fixed bug with pending requests in HTTP script. 2011-04-26 15:24:02 -04:00
Seth Hall
64e7fd967a Fixed a bug with browser version parsing.
* The full user-agent string wasn't being sent along
  to the log file in some cases when parsing user-agents.
2011-04-26 14:24:50 -04:00
Seth Hall
cc1501d6e3 Fixed a couple of bugs in the IRC analysis script.
* Also removed a debug print from the software/vulnerable script.
2011-04-26 11:24:38 -04:00
Seth Hall
6621a3001a Merge remote branch 'origin/master' into topic/policy-scripts-new 2011-04-26 11:18:58 -04:00
Seth Hall
f6e67a6a87 More script updates. 2011-04-26 11:08:04 -04:00
Seth Hall
adec99751d More script updates. 2011-04-23 02:58:44 -04:00
Robin Sommer
59d6202104 Merge remote branch 'origin/topic/robin/conn-ids'
* origin/topic/robin/conn-ids:
  Moving uid from conn_id to connection, and making output determistic if a hash seed is given.
  Extending conn_id with a globally unique identifiers.
2011-04-22 22:13:44 -07:00
Seth Hall
0a151882ae New software parsing tests and all pass now. 2011-04-22 23:39:19 -04:00
Seth Hall
0d870d203d Merge remote branch 'origin/master' into topic/policy-scripts-new 2011-04-22 22:22:08 -04:00
Seth Hall
6826b58fb4 Merge remote branch 'origin/master' into topic/seth/ssl-binpac 2011-04-22 09:53:25 -04:00
Robin Sommer
da0ea67453 Fixing btests.
- When Bro is given a PRNG seed, it now uses its own internal random
  number generator that produces consistent results across sytems.
  Note that this internal generator isn't very good, so it should only
  be used for testing purposes.

- The BTest configuration now sets the environemnt variables TZ=UTC
  and LANG=C to ensure consistent results.

- Fixing doc markup in logging.bro.

- Updating baselines.
2011-04-21 19:31:44 -07:00
Seth Hall
928a930c9c Merge remote branch 'origin/master' into topic/policy-scripts-new 2011-04-21 22:02:45 -04:00
Robin Sommer
5fba6d144e Logging fixes.
- Now compiles in v6 mode.

- Loading logging.bif.*bro* in logging.bro for consistency.
2011-04-21 18:50:11 -07:00
Seth Hall
561bfb0361 Adding some comments about data types to remove from bro.init. 2011-04-21 14:26:20 -04:00
Seth Hall
8b363e934a More updates to software logging and more tests. 2011-04-21 14:25:52 -04:00
Seth Hall
e34d24df8f Moved the packet segment logging into it's own script. 2011-04-21 14:25:09 -04:00
Seth Hall
6275bc555d Merge remote branch 'origin/master' into topic/policy-scripts-new
Conflicts:
	policy/conn.bro
2011-04-21 01:16:08 -04:00
Seth Hall
7c168e0afa Extract packet data for the dpd.log 2011-04-21 01:00:11 -04:00