zeek/testing/btest/scripts/base/frameworks
Arne Welzel 62e0dc94db Intel: Introduce Intel::seen_policy() hook
This introduces a new hook into the Intel::seen() function that allows
users to directly interact with the result of a find() call via external
scripts.

This should solve the use-case brought up by @chrisanag1985 in
discussion #3256: Recording and acting on "no intel match found".

@Canon88 was recently asking on Slack about enabling HTTP logging for a
given connection only when an Intel match occurred and found that the
Intel::match() event would only occur on the manager. The
Intel::match_remote() event might be a workaround, but possibly running a
bit too late and also it's just an internal "detail" event that might not
be stable.

Another internal use case revolved around enabling packet recording
based on Intel matches which necessarily needs to happen on the worker
where the match happened. The proposed workaround is similar to the above
using Intel::match_remote().

This hook also provides an opportunity to rate-limit heavy hitter intel
items locally on the worker nodes, or even replacing the event approach
currently used with a customized approach.
2024-01-25 12:22:47 +01:00
..
analyzer Remove full scripts marked as 6.1 deprecations 2023-06-14 10:07:22 -07:00
cluster cluster: Deprecate the Cluster::Node$interface field 2023-11-07 16:06:16 +01:00
config cluster: Deprecate the Cluster::Node$interface field 2023-11-07 16:06:16 +01:00
control Remove unnecessary -B arguments from Zeek invocations in testsuite 2021-06-24 17:05:32 -07:00
dpd Add DPD::max_violations option 2019-07-19 13:00:02 -07:00
file-analysis minor BTest generalizations & simplifications 2023-07-13 13:10:14 -07:00
input Better input framework error messages for unset non-optionals 2023-07-21 15:11:31 +01:00
intel Intel: Introduce Intel::seen_policy() hook 2024-01-25 12:22:47 +01:00
logging logging: Better error messages for invalid Log::delay() calls 2023-11-29 11:53:11 +01:00
netcontrol cluster: Deprecate the Cluster::Node$interface field 2023-11-07 16:06:16 +01:00
notice cluster: Deprecate the Cluster::Node$interface field 2023-11-07 16:06:16 +01:00
openflow cluster: Deprecate the Cluster::Node$interface field 2023-11-07 16:06:16 +01:00
packet-filter General btest cleanup 2020-08-11 11:26:22 -07:00
reporter General btest cleanup 2020-08-11 11:26:22 -07:00
software updates to btests to support switch to expression-based initialization 2022-03-23 15:36:35 -07:00
sumstats cluster: Deprecate the Cluster::Node$interface field 2023-11-07 16:06:16 +01:00
telemetry telemetry: Disable metrics centralization by default 2023-06-21 20:13:55 +02:00