Repository navigation
new: [expansion] IPGeolocation.io lookup module - #914
Merged
Merged
Conversation
Expansion and hover module that enriches an IP address with geolocation, ASN, company, threat intelligence (threat score, VPN, proxy, Tor, relay, bot, spam and attacker flags) and abuse contact information from IPGeolocation.io. It answers either from the IPGeolocation.io API (api_key) or from local IPGeolocation.io MMDB databases (mmdb_paths), in which case nothing leaves the host. Results use the geolocation, asn and domain-ip objects and the new ipgeolocation-ip object template.
mateen993
force-pushed
the
add-ipgeolocation
branch
from
October 7, 2026 07:38
df53491 to
f1934e4
Compare
Member
|
Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
ipgeolocation, an expansion and hover module for IPGeolocation.io. It takes an IP attribute (ip-src,ip-dst,ip-src|port,ip-dst|port,domain|ip) and returns:geolocation,asn(with the announced route) anddomain-ip(hostname) objectsipgeolocation-ipobject with the threat score, VPN, proxy, Tor, relay and residential proxy flags, bot, spam and attacker flags, provider names, company and abuse contact. The template is proposed in new: [ipgeolocation-ip] IPGeolocation.io IP intelligence object template misp-objects#534.Two sources in one module
api_key: the IPGeolocation.io API (v3). Free plans return location and ASN; when a plan refuses the security and abuse modules, the module falls back to the base lookup. Results are cached in memory (cache_ttl, default one hour) so hover does not spend credits on every mouse-over.mmdb_paths: local IPGeolocation.io MMDB databases (files or directories). Nothing leaves the host, which suits air-gapped instances and indicators that must not be shared. Several databases are combined, and a file replaced by an update is re-opened automatically.Notes for review
requestsandpymisp, plusmaxminddb(already installed throughgeoip2), imported only for the MMDB source.ipgeolocation-iptemplate, the module sets the object'smeta-categoryand template UUID itself; without them MISP refuses to create the object.documentation/generate.py.Tests
tests/test_ipgeolocation.py: 25 tests, no network access. API responses come from the examples in the official IPGeolocation.io OpenAPI specification; the MMDB tests use a fake reader holding records in the layouts of the IPGeolocation.io databases.