mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
intel/seen/manage-event-groups: Policy script for toggling intel event groups
Co-authored-by: Mohan Dhawan <mohan@corelight.com>
This commit is contained in:
parent
7eb849ddf4
commit
0619fe2f4f
8 changed files with 285 additions and 0 deletions
18
NEWS
18
NEWS
|
@ -76,6 +76,24 @@ New Functionality
|
|||
indicator value is inserted into the store and once it has been completely
|
||||
removed from the store.
|
||||
|
||||
- The ``frameworks/intel/seen`` scripts have been annotated with event groups
|
||||
and a new ``frameworks/intel/seen/manage-event-groups`` policy script added.
|
||||
|
||||
The motivation is to allow Zeek distributors to load the ``intel/seen`` scripts
|
||||
by default without incurring their event overhead when no Intel indicators are
|
||||
loaded. Corresponding event handlers are enabled once the first Intel indicator
|
||||
of a given ``Intel::Type`` is added. Event handlers are disabled when the last
|
||||
indicator is removed, again.
|
||||
|
||||
Note that the ``manage-event-groups`` script interacts with the ``Intel::seen_policy``
|
||||
hook: If no indicators for a given ``Intel::Type`` are loaded, the ``Intel::seen_policy``
|
||||
will not be invoked as the event handlers extracting indicators aren't executed.
|
||||
|
||||
If you rely on the ``Intel::seen_policy`` hook to be invoked regardless of the
|
||||
contents of the Intel store, do not load the ``manage-event-groups`` or set:
|
||||
|
||||
redef Intel::manage_seen_event_groups = F;
|
||||
|
||||
Changed Functionality
|
||||
---------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue