Cymru parser_cap_program invalid hostname filtering #2169
Labels
bug
Indicates an unexpected problem or unintended behavior
component: bots
help wanted
Indicates that a maintainer wants help on an issue or pull request
In some Team-Cymru payloads the
optional_information
entry includeshostname:
parameter with an IP address. This is parsed inintelmq.bots.parsers.cymru.parser_cap_program
bot intosource.fqdn
field, which does not allow IP entries.There should be check to filter out IP hostnames, since we already have that data included in
source.ip
field.The fix can be equivalent to PR #2144. Including
FQDN.is_valid
check seems overkill in this case, but I included it in the example below.The text was updated successfully, but these errors were encountered: