zeek/scripts/policy/protocols/smb
Seth Hall 4f3fe047f4 SMB fixes and cleanup.
SMB error handling improved. The analyzer isn't destroyed when a problem
is encoutered anymore.  The flowbuffer in the parser is now flushed and
the analyzer is set to resync against an SMB command.  This was needed
because there is some state about open files that is kept within the
parser itself which was being destroyed and that was causing analysis
after content gaps or parse errors to be faulty.  The new mechanism
doesn't detroy the parser so parsing after gaps is improved.

DCE_RPC handling in SMB is improved in the edge case where a drive
mapping isn't seen. There is a new const named SMB::pipe_filenames
which is used as a heuristic for identifying "files" opened on named
pipe shares.  If the share mapping type isn't known and a filename
in this set is found, the share type will change to "PIPE" by
generating an event named "smb_pipe_connect_heuristic".  Reads and
writes to that file will be sent to the DCE_RPC analyzer instead of
to the files framework.

The concept of "unknown" share types has been removed due to the new
heuristic detection of share types.

Some general clean up of how the SMB cmd log is written and when.
2016-10-31 13:35:47 -04:00
..
__load__.bro SMB test clean up and docs 2016-06-28 10:30:41 -04:00
dpd.sig Move the SMB analyzer out of the default load. 2016-06-14 15:34:00 -04:00
files.bro Fixing SMB tests again. 2016-06-28 11:03:16 -04:00
main.bro SMB fixes and cleanup. 2016-10-31 13:35:47 -04:00
README Added missing README files for documentation 2016-10-10 22:55:50 -05:00
smb1-main.bro SMB fixes and cleanup. 2016-10-31 13:35:47 -04:00
smb2-main.bro SMB fixes and cleanup. 2016-10-31 13:35:47 -04:00

Support for SMB protocol analysis.