mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
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:
commit
03ac32adec
3 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue