Commit graph

369 commits

Author SHA1 Message Date
Seth Hall
e17cd94525 Add LLMNS and mDNS analysis ports to the default DNS analysis 2011-04-21 00:59:42 -04:00
Robin Sommer
13a492091f Merge remote branch 'origin/topic/robin/logging-internals'
Includes some additional cleanup.
2011-04-20 21:30:41 -07:00
Seth Hall
33bea9bef5 Removed a debug print. 2011-04-20 23:25:15 -04:00
Seth Hall
5a868eefda More extensive base script updating.
* This is basically another checkpoint, but the difference
  is that in this one all.bro loads just about all of the
  new scripts and functionality.
2011-04-20 23:14:54 -04:00
Seth Hall
11ca973a10 Mistype correction. 2011-04-20 08:59:10 -04:00
Seth Hall
5c47f1b155 Many more script updates. 2011-04-20 08:53:22 -04:00
Seth Hall
4d40cf9d87 Updating scripts to adapt to fixes from Robin.
* The problem with re-coercing extended records seems fixed.
2011-04-18 16:53:13 -04:00
Seth Hall
ed77621e32 Adding a dependency to mime file identification 2011-04-18 14:22:39 -04:00
Seth Hall
2464cc6e37 Merge remote branch 'origin/topic/robin/logging-internals' into topic/policy-scripts-new
Conflicts:
	policy.old/dns-anonymizer.bro
	policy.old/ftp-anonymizer.bro
	policy.old/http-anonymizer.bro
	policy.old/http-rewriter.bro
	policy.old/ident-rewriter.bro
	policy.old/smb-anonymizer.bro
	policy.old/smtp-rewriter.bro
	policy/all.bro
	policy/ftp.bro
	policy/smtp.bro
2011-04-18 11:56:34 -04:00
Robin Sommer
c132506203 Merge branch 'topic/robin/record-table-default' into topic/robin/logging-internals
Includes additional fixes for the &default attribute's type checking.
2011-04-17 12:03:58 -07:00
Seth Hall
f522b7085e More flexible default mime file extraction and hashing. 2011-04-15 16:48:08 -04:00
Seth Hall
3f1bc7dc4e Fixed a number of problems with MIME analysis.
Mostly just parsing errors.  A few related to timing of certain
event handlers.
2011-04-15 16:11:48 -04:00
Seth Hall
5c31929734 Script rewrite checkpoint. 2011-04-15 11:51:08 -04:00
Seth Hall
c7e52db7ee Initial DNS analysis scripts. 2011-04-12 16:55:53 -04:00
Seth Hall
31c7e56a14 New var and func: local_zones: set[string] and is_local_name(string): bool
It can be used to discover if a DNS zone can be considered local
with the is_local_name function.
2011-04-12 13:11:06 -04:00
Seth Hall
d5d9475ae8 New smtp.bro to load sub-scripts. 2011-04-11 16:00:39 -04:00
Seth Hall
ed654acd5d Tweak to hide passwords in FTP logs. 2011-04-11 15:57:28 -04:00
Seth Hall
6f3398f796 Initial work on new smtp.bro
* Logging activity is currently focused on messages.
* Does command oriented logging still make sense for SMTP?
* Remaining (known) weak points:
	* Poor handling of wrapped message headers.
	* Poor separation into various scripts by functionality.
		* base.bro will likely include nothing after 'DATA'.
	* Out of order command/response pairs are not supported yet.
2011-04-11 15:56:32 -04:00
Seth Hall
f5c7400f0b Small tweak to provide customization point in http/file-extract.bro
The customization point is provided between the time a file
to be extracted has it's file handled opened and when the first
chunk of data is written to disk.
2011-04-11 15:52:28 -04:00
Seth Hall
e1724bf286 HTTP cleanups.
* Multiple pipelined requests before any replies is now supported.
* HTTP::build_url function that takes a connection and builds a
  url current request/response pair.
* I left in an example to show a likely bug with the record
  extension mechanism.
2011-04-08 22:38:39 -04:00
Seth Hall
34de0958e5 DPD cleanup 2011-04-08 22:34:54 -04:00
Seth Hall
62bae54393 Updates for logging framework and development style. 2011-04-07 22:21:56 -04:00
Seth Hall
1883a169e4 Cleanup to the ftp.bro script 2011-04-07 16:48:01 -04:00
Seth Hall
85b8515928 Small rework to FTP.bro 2011-04-04 12:01:12 -04:00
Seth Hall
10247abbbc More HTTP rework.
* New script: http/file-extract.bro
* New script: http/file-ident.bro
* New script: http/file-hash.bro
* Lot of cleanup.  The output logs are better than before.
2011-04-04 12:00:07 -04:00
Seth Hall
7cffd0b1e6 Beginning of signature.bro rewrite. 2011-04-04 11:54:57 -04:00
Seth Hall
60dae5bba9 More FTP rework. 2011-04-04 11:54:25 -04:00
Robin Sommer
a3a075174b Merging in 'topic/robin/cleanup-rewriter'.
Removing everything related to trace rewriting.

(I wasn't too careful in ensuring that I catch everything in the
scripts; Seth is working on those anyway.)

(Merging by cherry-picking the corresponding commit, as the branch was
accidentally made off of the logging stuff).
2011-04-01 15:23:50 -07:00
Seth Hall
4f1eca35d0 Small tweaks to move where notices are handled. 2011-03-29 17:02:50 -04:00
Seth Hall
b11dc68aab Adding some &log attributes now that it's required to get output. 2011-03-29 16:45:28 -04:00
Seth Hall
4086be7550 Added the script that preloads a selected subset of the http/* scripts. 2011-03-29 16:44:57 -04:00
Seth Hall
5ea7a2b22e Updating the http.bro to take better advantage of new features.
* The http.bro script only loads other scripts now.
* http/base.bro configures the analyzer in the core
  and does minimal state collection.
* http/base-extended.bro adds extra state collection
  that may not always be desired.
* http/detect-intel.bro is where intelligence based
  detection that we ship will take place.
* http/detect.bro is where behavioral and scripted (known)
  actions will be detected.
* http/utils.bro are http specific utility functions
* http/var-extraction* scripts add cookie and uri key values
  to the base state collection and logging.  They are also
  maintained in a vector so that order is presevered.

The var-extraction* and base-extended scripts are good examples
of how the base script extension model works.

This also has an inital try at storing the "Info" state table
in the connection record.
2011-03-29 16:44:37 -04:00
Seth Hall
20d909826b Forgot to move the CMakeLists.txt file over to the new policy directory. 2011-03-29 10:22:42 -04:00
Seth Hall
4943a87205 Merge remote branch 'origin/topic/robin/logging-internals' into topic/policy-scripts-new 2011-03-29 10:21:01 -04:00
Seth Hall
f66ad1cffd Regenerated the Mozilla CA bundle without the untrusted server authentication certs.
Certs intended for email protection and code signing have been removed
as well due to the change.
2011-03-29 10:03:20 -04:00
Robin Sommer
38a1aa5a34 &log keyword, and vector logging.
The &log keyword now operates as discussed:

    - When associated with individual record fields, it defines them
      as being logged.

    - When associated with a complete record type, it defines all fields
      to be logged.

    - When associated with a record extension, it defines all added
      fields to be logged.

    Note that for nested record types, the inner fields must likewise
    be declared with &log. Consequently, conn_id is now declared with
    &log in bro.init.

Vectors are now allowed to be logged and will be recorded as an
ordered set of items.
2011-03-28 18:14:05 -07:00
Seth Hall
7faf3e0f3b Complete rewrite to SSL analyzer.
* I haven't removed handwritten analyzer code yet although it isn't built anymore.
* The ssl.bro script is just an example and doesn't keep any state yet.
2011-03-28 12:15:53 -04:00
Seth Hall
6dd142aa1f More updates to notice framework. 2011-03-23 11:38:26 -04:00
Seth Hall
6ba30eae3b Initial script for mime.bro rewrite. 2011-03-23 00:30:02 -04:00
Seth Hall
b514c9cf89 Initial version of smtp.bro 2011-03-22 16:23:04 -04:00
Seth Hall
6c8ac11660 Bug fix and new all.bro script for loading all base scripts. 2011-03-22 11:56:06 -04:00
Seth Hall
38a57f6d35 Attribute misspelling. 2011-03-22 11:48:49 -04:00
Seth Hall
460b10cdf5 Beginning of ssl.bro rewrite. Far from working.
We may be fixing up the binpac ssl analyzer and getting
rid of the C++ one.  As I look closer and closer and at
C++ analyzer, I'm less impressed with the events it
outputs due to it maintaining state differently in the
core than most other analyzers.  Subsequently, the
events that it generates are also significantly
different from those of other analyzers.
2011-03-21 16:56:59 -04:00
Seth Hall
04ea1a2f50 More conn.bro changes to improve the logging 2011-03-18 00:57:24 -04:00
Seth Hall
42df07a889 More updates to conn.bro to adjust to new logging framework. 2011-03-18 00:51:48 -04:00
Seth Hall
3961c6b2c3 Known service logging is now extensible. 2011-03-17 14:58:21 -04:00
Seth Hall
fdd8ce4e57 Another software test and fixes to version parsing. 2011-03-17 14:55:58 -04:00
Seth Hall
f5668e41a2 Updates to make scripts work with logging-internals code. 2011-03-17 14:29:07 -04:00
Robin Sommer
d84d4b8a57 Moving uid from conn_id to connection, and making output determistic
if a hash seed is given.
2011-03-16 14:25:49 -07:00
Seth Hall
e259da6f8b Merge commit 'e8bff4779e' into topic/policy-scripts-new
* commit 'e8bff4779e':
  Initial and incomplete http.bro
2011-03-16 17:04:21 -04:00