mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Intelligence framework checkpoint
- Basic API seems to works, but tests aren't updated yet. - Several scripts are available in policy/frameworks/intel that call the "seen" function to provide data into the intel framework to be tested. - Intel::policy is not done yet and needs to be discussed to figure out what it needs to have. - Running the intel framework and having it do something finally is really cool!
This commit is contained in:
parent
71c5b49bdc
commit
a803cae92e
11 changed files with 198 additions and 109 deletions
16
scripts/policy/frameworks/intel/http-host-header.bro
Normal file
16
scripts/policy/frameworks/intel/http-host-header.bro
Normal file
|
@ -0,0 +1,16 @@
|
|||
@load base/frameworks/intel
|
||||
|
||||
export {
|
||||
redef enum Intel::Where += {
|
||||
HTTP::IN_HOST_HEADER,
|
||||
};
|
||||
}
|
||||
|
||||
event http_header(c: connection, is_orig: bool, name: string, value: string)
|
||||
{
|
||||
if ( is_orig && name == "HOST" )
|
||||
Intel::seen([$str=value,
|
||||
$str_type=Intel::DOMAIN,
|
||||
$conn=c,
|
||||
$where=HTTP::IN_HOST_HEADER]);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue