mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

- All 5 intelligence tests pass. - Some initial memory optimizations done. - More work needs done to reduce duplicate data in memory. - Input framework integration. - Define files to read in the "Bro intelligence format" in Intel::read_files. - Cluster transparency. - DNS Zones are a fully supported data type. - Queries for Intel::DOMAIN values will automatically check in DNS_ZONE intelligence.
28 lines
660 B
Text
28 lines
660 B
Text
@load ./main
|
|
|
|
module Intel;
|
|
|
|
export {
|
|
## Files that will be read off disk
|
|
const read_files: set[string] = {} &redef;
|
|
|
|
global entry: event(desc: Input::EventDescription, tpe: Input::Event, item: Intel::Item);
|
|
}
|
|
|
|
event Intel::entry(desc: Input::EventDescription, tpe: Input::Event, item: Intel::Item)
|
|
{
|
|
Intel::insert(item);
|
|
}
|
|
|
|
event bro_init() &priority=5
|
|
{
|
|
for ( a_file in read_files )
|
|
{
|
|
Input::add_event([$source=a_file,
|
|
$reader=Input::READER_ASCII,
|
|
$mode=Input::REREAD,
|
|
$name=cat("intel-", a_file),
|
|
$fields=Intel::Item,
|
|
$ev=Intel::entry]);
|
|
}
|
|
}
|