mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-05-04 18:37:52 +02:00
25 lines
712 B
Plaintext
25 lines
712 B
Plaintext
# Bro package & plugin for adding community hash IDs to conn.log.
|
|
# This is loaded when a user activates the plugin.
|
|
#
|
|
module CommunityID;
|
|
|
|
export {
|
|
# An unsigned 16-bit number to seed our hashing
|
|
const seed: count = 0 &redef;
|
|
|
|
# Whether to add a base64 pass over the hash digest.
|
|
# Enabled by default, since it shortens the output.
|
|
const do_base64: bool = T &redef;
|
|
|
|
# Verbose debugging log output to the console.
|
|
const verbose: bool = F &redef;
|
|
|
|
# Add the ID string field to the connection log record.
|
|
redef record Conn::Info += {
|
|
community_id: string &optional &log;
|
|
};
|
|
}
|
|
|
|
event connection_state_remove(c: connection) {
|
|
c$conn$community_id = hash_conn(c);
|
|
} |