More SMB/DCERPC/NTLM cleanup.

- NTLM Authentication failures over SMB2 are now marked as such in
   the ntlm.log.
 - Slightly updated filtering mechanism for DCE/RPC operations.
 - Uncommented the atsvc file so it compiles now.
This commit is contained in:
Seth Hall 2016-04-15 10:39:08 -04:00
parent 1fe9e522fb
commit 72f2c2ded2
4 changed files with 78 additions and 61 deletions

View file

@ -52,13 +52,13 @@ event ntlm_authenticate(c: connection, request: NTLM::Authenticate) &priority=5
c$ntlm$username = request$user_name;
}
event gssapi_neg_result(c: connection, state: count) &priority=5
event gssapi_neg_result(c: connection, state: count) &priority=3
{
if ( c?$ntlm )
c$ntlm$success = (state == 0);
}
event gssapi_neg_result(c: connection, state: count) &priority=-5
event gssapi_neg_result(c: connection, state: count) &priority=-3
{
if ( c?$ntlm )
{
@ -70,6 +70,18 @@ event gssapi_neg_result(c: connection, state: count) &priority=-5
}
}
event smb2_message(c: connection, hdr: SMB2::Header, is_orig: bool) &priority=3
{
if ( c?$ntlm &&
( c$ntlm?$username || c$ntlm?$hostname ) &&
hdr$status == 0xC000006D )
{
c$ntlm$success = F;
Log::write(NTLM::LOG, c$ntlm);
c$ntlm$done = T;
}
}
event connection_state_remove(c: connection) &priority=-5
{
if ( c?$ntlm && ! c$ntlm$done )