mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
21 lines
576 B
Text
21 lines
576 B
Text
##! Intelligence based HTTP detections. Not yet working!
|
|
|
|
@load base/protocols/http/main
|
|
@load base/protocols/http/utils
|
|
@load base/frameworks/intel/main
|
|
|
|
module HTTP;
|
|
|
|
event log_http(rec: Info)
|
|
{
|
|
local url = HTTP::build_url(rec);
|
|
local query = [$str=url, $subtype="url", $or_tags=set("malicious", "malware")];
|
|
if ( Intel::matcher(query) )
|
|
{
|
|
local msg = fmt("%s accessed a malicious URL from the intelligence framework", rec$id$orig_h);
|
|
NOTICE([$note=Intel::Detection,
|
|
$msg=msg,
|
|
$sub=HTTP::build_url_http(rec),
|
|
$id=rec$id]);
|
|
}
|
|
}
|