Update SSH policy scripts with new events.

This commit is contained in:
Vlad Grigorescu 2015-03-16 13:50:43 -04:00
parent 370f4f2179
commit 8218461d35
4 changed files with 9 additions and 9 deletions

View file

@ -58,12 +58,12 @@ export {
}
redef record Info += {
## This connection has been logged (internal use)
# This connection has been logged (internal use)
logged: bool &default=F;
## Number of failures seen (internal use)
# Number of failures seen (internal use)
num_failures: count &default=0;
## Store capabilities from the first host for
## comparison with the second (internal use)
# Store capabilities from the first host for
# comparison with the second (internal use)
capabilities: Capabilities &optional;
};

View file

@ -70,7 +70,7 @@ event bro_init()
}]);
}
event SSH::heuristic_successful_login(c: connection)
event SSH::ssh_auth_successful(c: connection, auth_method_none: bool)
{
local id = c$id;
@ -79,7 +79,7 @@ event SSH::heuristic_successful_login(c: connection)
$where=SSH::SUCCESSFUL_LOGIN]);
}
event SSH::heuristic_failed_login(c: connection)
event SSH::ssh_auth_failed(c: connection)
{
local id = c$id;

View file

@ -30,7 +30,7 @@ function get_location(c: connection): geo_location
return lookup_location(lookup_ip);
}
event SSH::heuristic_successful_login(c: connection) &priority=5
event SSH::ssh_auth_successful(c: connection, auth_method_none: bool) &priority=3
{
# Add the location data to the SSH record.
c$ssh$remote_location = get_location(c);
@ -45,7 +45,7 @@ event SSH::heuristic_successful_login(c: connection) &priority=5
}
}
event SSH::heuristic_failed_login(c: connection) &priority=5
event SSH::ssh_auth_failed(c: connection) &priority=3
{
# Add the location data to the SSH record.
c$ssh$remote_location = get_location(c);

View file

@ -27,7 +27,7 @@ export {
/^ftp[0-9]*\./ &redef;
}
event SSH::heuristic_successful_login(c: connection)
event SSH::ssh_auth_successful(c: connection, auth_method_none: bool)
{
for ( host in set(c$id$orig_h, c$id$resp_h) )
{