malicialab / iocsearcher

A library and command line tool for extracting indicators of compromise (IOCs) from security reports in PDF, HTML, Word, or text format
MIT License
26 stars 4 forks source link

Bug: IBAN validator dictionaty has duplicate entry for 'CR' #4

Closed teaVeloper closed 12 months ago

teaVeloper commented 12 months ago

When running the code through my linter (ruff) it told me, that the IBAN dictionary has the key 'CR' duplicated.

I looked up, I think it should only have the value '21' and not the second of '22' (maybe it was meant for another country code and got mistyped?)

The errors are in searcher.py on line 460 (the correct entry) and line 469 (the supposedly wrong one).

malicialab commented 12 months ago

Thanks for the report. Indeed the key should not be duplicated. According to this webpage the correct length for Costa Rica (CR) is 22, not 21 https://www.iban.com/structure I fixed that entry and also added a bunch of countries that were missing

I have released a 1.0.2 iocsearcher package that should fix this. If the fix looks good to you, please close this issue, otherwise let me know.

teaVeloper commented 12 months ago

hey,

thanks for the quick reply! My bad I thought (after quick search) 'CR' would be Croatia.

I will close the issue :)