-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wazuh-indexer ingest-geoip module is using outdated maxmind's databases. #2008
Comments
A workaround that I found was to manually update the databases with the latest versions found in the website.
Best regards, Ariel. |
UpdateWe have found the following utility to update the DB easier: We could use it during the creation of the Wazuh indexer base, and this way we can include the latest version of the DB in each package. To use this we just need an account in the MaxMind web, and finally, we have to set the configuration file with the account ID and the licence number generated for the account:
Finally, run the following command:
Other options would be to include the |
OpenSearch is working on a way to manage the auto-update of the maxmind database with a refactor of the GeoIP code. This is expected to land in OpenSearch 2.10 as per opensearch-project/documentation-website#3524 (comment) The parent OpenSearch issue is opensearch-project/OpenSearch#5856 I'll block this until the new code lands in the upstream OpenSearch. |
Feature will be included in 4.8.0, which uses Opensearch 2.10.0. Closing it. |
The ingest-geoip module is using an outdated database and this causes some alerts to be indexed with incorrect Geolocation information. This was also tested in 4.3.10 and the same behavior can be observed.
Below you can find a couple of sample IPs, they are from the US but they are reported as UK and German IPs.
To Reproduce
Steps to reproduce the behavior:
I added them to a local file in my lab:
/var/ossec/logs/testlog.log
I added the corresponding localfile configuration block to capture the events from the file:
The events are matched by rule 5715, and the srcip field is used to gather the GeoIP information, including the country.
Expected behavior
Both sample events should be reported as IPs from the US.
Current behavior
One of the IPs is reported as from the UK and the other as from Germany.
Please let me know if you need anything else.
The text was updated successfully, but these errors were encountered: