Merge branch 'topic/dopheide/fix-ssh-geo-data' of https://github.com/dopheide-esnet/bro

* 'topic/dopheide/fix-ssh-geo-data' of https://github.com/dopheide-esnet/bro:
  Fix geo-data to log remote_location data when auth is successful.
This commit is contained in:
Jon Siwek 2019-03-15 12:59:31 -07:00
commit 03ac32adec
3 changed files with 8 additions and 4 deletions

View file

@ -35,8 +35,8 @@ event ssh_auth_successful(c: connection, auth_method_none: bool) &priority=3
if ( ! c$ssh?$direction )
return;
# Add the location data to the SSH record.
c$ssh$remote_location = get_location(c);
if ( ! c$ssh?$remote_location )
return;
if ( c$ssh$remote_location?$country_code && c$ssh$remote_location$country_code in watched_countries )
{
@ -48,7 +48,7 @@ event ssh_auth_successful(c: connection, auth_method_none: bool) &priority=3
}
}
event ssh_auth_failed(c: connection) &priority=3
event ssh_auth_attempted(c: connection, authenticated: bool) &priority=3
{
if ( ! c$ssh?$direction )
return;