Since installation of CU 200 no daily report has been sent. For CU199 this worked flawlessly. When analysing this, I found that the report process triggered by fcron /usr/bin/suricata-report-cron is throwing these error messages when starting it from the command line:
/usr/bin/suricata-report-cron daily
Traceback (most recent call last):
File “/usr/bin/suricata-report-generator”, line 922, in
main()
File “/usr/bin/suricata-report-generator”, line 912, in main
generator.email(
File “/usr/bin/suricata-report-generator”, line 790, in email
self.generate(output=f.name, \*\*kwargs)
File “/usr/bin/suricata-report-generator”, line 198, in generate
self.\_make_alerts(elements, date_start, date_end, width=doc.width)
File “/usr/bin/suricata-report-generator”, line 474, in \_make_alerts
self.\_make_alerts_by_date(elements, date, \*\*kwargs)
File “/usr/bin/suricata-report-generator”, line 634, in \_make_alerts_by_date
for query in json.loads(row.dns_queries):
File “/usr/lib/python3.10/json/**init**.py”, line 339, in loads
raise TypeError(f’the JSON object must be str, bytes or bytearray, ’
TypeError: the JSON object must be str, bytes or bytearray, not NoneType
What’s wrong here? Maybe row.dns_queries is not yet populated and initialised wrongly.
Additional background information: Initially I had IPFire DBL enabled as a suricata ruleset. However, I disabled it this morning since it was throwing hundreds of DNS malware e-mails.