mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Functional intelligence framework.
- 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.
This commit is contained in:
parent
3bb6d4e54e
commit
a4af46e1f4
18 changed files with 580 additions and 220 deletions
28
scripts/base/frameworks/intel/input.bro
Normal file
28
scripts/base/frameworks/intel/input.bro
Normal file
|
@ -0,0 +1,28 @@
|
|||
@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]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue