Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions header-test.bro
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module HTTP;

export {
redef enum Notice::Type += {
HTTP_Suspicous_Client_Header,
HTTP_Suspicous_Server_Header,
HTTP_Suspicious_Client_Header,
HTTP_Suspicious_Server_Header,
};

## A boolean value to determine if client header names are to be tested
Expand All @@ -33,7 +33,7 @@ event http_header(c: connection, is_orig: bool, name: string, value: string) &pr
{
if ( header_pattern in value && header_whitelist !in name ) {

NOTICE([$note=HTTP_Suspicous_Client_Header,
NOTICE([$note=HTTP_Suspicious_Client_Header,
$conn = c,
$msg = fmt("%s : %s", name, value)]);
}
Expand All @@ -44,7 +44,7 @@ event http_header(c: connection, is_orig: bool, name: string, value: string) &pr
{
if ( header_pattern in value && header_whitelist !in name ) {

NOTICE([$note=HTTP_Suspicous_Server_Header,
NOTICE([$note=HTTP_Suspicious_Server_Header,
$conn = c,
$msg = fmt("%s : %s", name, value)]);
}
Expand Down