Closed duffy-ocraven closed 4 years ago
Hello @duffy-corelight
thanks for opening the bug report!
Is this issue caused or related to the Zeek Agent implementation or is it a scripting issue inside the zeek-agent-framework repository?
It is in a script at the abovementioned URL. A trivial duplication, once as an empty hook with TODO comment, then adjacent the hook fully implemented.
The thing about it that most caught my attention was that of .zeek file with such a duplicate I would expect would warn or fail with a syntax report. But when I ran an experiment using exactly that duplicating, I found there is silence as Zeek accepts that, though it must be in some sense an error.
Hello @duffy-corelight!
thanks for the explanation! Do you think it would be better to move this issue to the zeek-agent-framework repository?
Sorry! I hadn’t realized that the two kept Issues in different projects.
https://github.com/zeek/zeek-agent-framework/blob/master/zeek-agent/framework/zeek_agent_hosts.zeek at lines (168-176) has duplication of the hook.
I confirmed by experimentation, that zeek just absorbs this silently, but should there be a check, syntax-error-wise ?
outputs: