intelmq icon indicating copy to clipboard operation
intelmq copied to clipboard

ASN Lookup expert: Missing sane default value for database path

Open sebix opened this issue 10 months ago • 1 comments

https://github.com/certtools/intelmq/blob/adb2d156d642ea4b804e26b12e81d1b0d21ec425/intelmq/bots/experts/asn_lookup/expert.py#L28

I suggest that the default path is /var/lib/intelmq/bots/asn_lookup/ipasn.dat as was the case some time ago.

Also, the update script could check first if the path exists (and isn't a None or empty string) and even if it is writeable before downloading the data.

sebix avatar Feb 14 '25 11:02 sebix

Also, the update script could check first if the path exists (and isn't a None or empty string) and even if it is writeable before downloading the data.

And it isn't a directory. The documentation is not clear either.

sebix avatar Apr 03 '25 06:04 sebix