The SSH::Login notice type has returned.

This commit is contained in:
Seth Hall 2011-08-24 12:55:28 -04:00
parent c750f0c327
commit 9160898d03

View file

@ -10,6 +10,12 @@ module SSH;
export {
redef enum Log::ID += { SSH };
redef enum Notice::Type += {
## This indicates that a heuristically detected "successful" SSH
## authentication occurred.
Login
};
type Info: record {
ts: time &log;
uid: string &log;
@ -128,6 +134,10 @@ function check_ssh_connection(c: connection, done: bool)
event SSH::heuristic_successful_login(c: connection) &priority=-5
{
NOTICE([$note=Login,
$msg="Heuristically detected successful SSH login.",
$conn=c]);
Log::write(SSH, c$ssh);
}
event SSH::heuristic_failed_login(c: connection) &priority=-5