MISP GeoIP enrichment with local MaxMind databases

Run MISP ASN, City and Country lookups from local MaxMind GeoLite MMDB files so enrichment keeps working offline and in air-gapped networks, with a plan for keeping the data current.

On this page

How MISP GeoIP enrichment with MaxMind works in your network

A team whose MISP instance must enrich IP attributes without calling outside services needs a GeoIP path that reads data it already holds. The GeoIP expansion modules in misp-modules read local MaxMind GeoLite MMDB files, so lookups keep working offline and inside air-gapped networks. The module set covers three lookups: ASN (which autonomous system announces an address), City, and Country. Teams typically implement this when analysts pivot on IP attributes from sandbox reports, firewall logs or sharing partners and need location and network ownership context in the event, but the network policy forbids sending those addresses to a third-party lookup service.

The design sits alongside the core MISP platform rather than inside it. MISP stores the event and attribute, and the misp-modules service runs the expansion logic and reads the MMDB files from disk on the host or container where it runs. That placement means the database files, their file permissions and their update path are part of the MISP host's configuration, not a separate product. Before building, confirm which GeoLite edition and license terms your organization accepts, which MMDB file each module expects in your misp-modules version, and where the files will be mounted in your installation method. The misp-modules README is the starting point for those module details.

The first decision is ownership of the update cycle. Local databases go stale, so someone must own the refresh, verify the file after each copy and restart or reload the service that reads it. Ask the team that operates MISP to name this owner and document the step in the same runbook as the MISP upgrade and backup routine. Without that step, the module keeps answering with old location and ASN data while everyone assumes it is current.

What the GeoIP modules add to MISP

The misp-modules service provides GeoIP ASN, City and Country expansion modules that read local MaxMind GeoLite MMDB files. Together they answer where an indicator sits, who operates its network, and how that context reaches an analyst inside an event.

ASN lookup

The ASN module returns the autonomous system that announces an IP address, which tells an analyst which network operator controls the address space. This is useful when a cluster of IP attributes shares one hosting provider or when a sinkhole or takedown request needs the right abuse contact. Confirm in your version which attribute types the module accepts, typically IP address attributes, and check how the result is written back to the event.

misp-modules README

City lookup

The City module adds a city-level location for an IP address from the MMDB City database. Analysts use it to spot geographic patterns across an event, such as infrastructure concentrated in one region, but city data is approximate and can be wrong for mobile or proxied addresses. Treat it as context for triage, not as proof of where an attacker is, and confirm the attribute coverage in your installed release.

Country lookup

The Country module returns the country associated with an IP address from the local database. It is the coarsest of the three lookups and the one most useful for filtering, reporting and sector-level sharing decisions. Because it uses the same local file mechanism, its results are only as current as the database file deployed on the server, so record which file version each enrichment came from.

Local file basis for offline use

The modules read GeoLite MMDB files stored on the misp-modules host, so lookups do not depend on an outbound call to an external geolocation service. This suits air-gapped networks and environments that restrict egress for analysts. The trade-off is ownership: your team must obtain the files under the applicable MaxMind licence terms, place them where the service can read them, and schedule updates, because stale files silently degrade accuracy.

Analyst-triggered expansion workflow

Enrichment runs when an analyst asks for it on an attribute or event, not automatically on every import. That keeps the event history readable and lets the team decide which indicators deserve geographic context. Agree who triggers enrichment, whether results are reviewed before publishing, and how enriched objects are distinguished from analyst-entered data when the event is shared with partners.

Which MaxMind database and deployment choices to make

This table compares the main choices for a local GeoIP setup in MISP: which MaxMind file to load, where the file lives relative to misp-modules, and how updates reach the sensor. Read each row as a fit and trade-off question, then confirm the details against your own licence and network constraints.

DecisionOptionTrade-offChoose it when
Database scopeASN file onlyAnswers which network and organization owns an IP, with no location detailAnalysts mainly pivot on infrastructure ownership and hosting networks
Database scopeCity fileAdds city and region context, which is the most detailed and the most sensitive to stale dataAnalysts need location context on IP attributes and accept more frequent refreshes
Database scopeCountry fileSmallest scope for country-level context, with the coarsest answersYou only need a country label on attributes for triage or filtering
Database scopeCombined set of filesCovers every expansion module but means managing several files and update cyclesMultiple GeoIP expansions run in the same workflow
File locationMounted into the misp-modules containerKeeps the service self-contained, but every file change needs a container-side path and restart planmisp-modules runs in containers and you manage it as a unit
File locationHost path mounted into the containerLets one update job refresh files for several consumers, but depends on correct volume permissionsOther services or backups read the same files from the host
Update methodAutomated download on a scheduleLowest staff effort for connected sites, but needs outbound access and a MaxMind account and licence key you manageThe sensor can reach the vendor download service under your egress policy
Update methodManual transfer for air-gapped sitesWorks offline, but refresh depends on a person and a documented change recordThe network has no outbound path and you can approve controlled file imports
Update methodHybrid staging then importDownloads on a staging host, then transfers across a controlled boundaryYou need current data but must keep the production enclave isolated

Sequence for deploying GeoIP enrichment

This sequence takes a MISP instance from a version check to analyst-ready GeoIP enrichment, with each step producing a checkable result before the next one starts. Working through it in order keeps lookups offline-capable and gives the security and compliance teams evidence of what was deployed.

  1. Confirm MISP and misp-modules versions

    The platform team records the MISP core version, the misp-modules version and the host operating system, and checks them against the project's current guidance. MISP 2.5 is the recommended line for new deployments, and MISP 2.4 is end of life, so an older instance should be planned for upgrade before any enrichment work. The step is done when the versions are written into the change record and the misp-modules service starts and answers its own status request on the same host.

  2. Confirm the MaxMind licence terms

    The compliance or legal owner reads the MaxMind GeoLite licence and account terms and decides whether the organization accepts them for its use, including any attribution or redistribution conditions. The platform team then creates the account and obtains the GeoLite database files through the provider's own process. The step is done when a signed-off record names the accepted terms, the account owner and the files to be used, so the team can show the basis for use during an audit.

  3. Place the MMDB files where modules read them

    The platform engineer copies the ASN, City and Country MMDB files onto the misp-modules host or into the container volume the service mounts, sets ownership so the service user can read them, and records the path in the deployment configuration. Because the files are local, no outbound call is made at lookup time, which is the point of this design. The step is done when the service reads the files on restart and the file names, checksums and dates are recorded in the change record.

  4. Enable and test each GeoIP module

    The MISP administrator enables the GeoIP ASN, City and Country expansion modules in the misp-modules settings and runs each one against a small set of sample IP attributes with known, public answers. Testing is done one module at a time so that a failure can be traced to a single file or configuration key. The step is done when each module returns the expected fields for every sample and the results are saved as a test log.

  5. Validate outputs in a non-production instance

    The team repeats the tests on a non-production MISP instance built from the same versions and configuration as production. They check how results are attached to events, whether object and attribute types match what analysts expect, and how the instance behaves when a database file is missing or unreadable. The step is done when the test cases, expected outputs and failure behavior are documented and the team has agreed which results are acceptable for analysts to rely on.

  6. Set a database update procedure

    Before go-live, the platform team writes down how a refreshed MMDB file is obtained, verified, swapped in and tested, and who approves it. It should also state how the team tells whether a file has gone stale, since lookups keep working from an old file without any visible error. The step is done when the procedure is approved and a dry run on the non-production instance has replaced a file with no interruption to the modules.

  7. Roll out to analysts with documented limits

    The MISP administrator enables the modules on the production instance and tells analysts which attribute types are enriched, which fields to expect and what the GeoIP data cannot show, such as the exact physical location of a host. The team confirms with a few analysts that the results appear on a real event. The step is done when production enrichment is live, the analyst guidance is published and the test log, file record and update procedure are filed together for review.

How an IP attribute flows through a local GeoIP lookup

The flow starts with an analyst triggering enrichment on an IP attribute in the MISP web interface. MISP sends the request to the misp-modules service inside the internal network, where the GeoIP expansion module reads the MaxMind GeoLite MMDB file from local disk and returns ASN, City and Country context. The result is attached to the event as enrichment. The database refresh runs on its own path outside the trust boundary, so no lookup ever calls out to a remote service.

Enrichment stays inside the network, while database refreshes arrive out of band.

Connected and air-gapped deployments differ in database updates

A connected MISP server with outbound access can fetch updated MaxMind files on a schedule, which keeps the GeoIP modules current with less manual work. The main risk is not the download itself but trusting an unverified file that lands in a directory the enrichment module reads. Plan the fetch as a controlled job with a known source, a fixed schedule and a record of every change.

  • Provenance: Download only from MaxMind's official distribution channel, using an account and credentials your team owns and rotates. Store the license key in a secrets manager, not in a cron file.
  • Refresh cadence: Set a schedule your team can defend in an audit, and alert when the last successful update is older than that schedule.
  • Staged replacement: Write the new MMDB to a staging path, validate it, then swap it in atomically so lookups never read a partial file.
  • Rollback: Keep the previous file for a defined period so you can restore it in minutes if a new release breaks lookups.
  • Verification: Run a fixed set of known IP addresses through the ASN, City and Country modules after each swap and compare results with expected values.

Confirm with MaxMind's current licence terms whether automated downloads, redistribution to internal mirrors and retention of old copies are permitted for your account type.

What drives the cost and effort of GeoIP enrichment

This table lists the factors that change how much work a local MaxMind GeoIP setup takes in MISP and misp-modules. Read each row as a driver: what raises or lowers effort, and what to ask a partner or your own team to confirm before you agree on scope.

DriverEffect on effortWhat to ask for in a quote
Number of MISP instancesEach instance needs its own module configuration and database path, so effort grows with instance count.Confirm whether the quote covers one instance or each instance, and how shared configuration is handled.
misp-modules hostsEvery host running misp-modules needs the MMDB files in place and the service pointed at them, so more hosts mean more repetition and checks.Ask how many misp-modules hosts are in scope and whether the same build is used across them.
Deployment methodDocker images, RPM or package installs, and source builds each store and mount the database files differently.Ask which method is planned and how the database files are mounted or placed for that method.
Enrichment workflows depending on the modulesMore analyst workflows and automations that call the ASN, City or Country modules mean more test cases and more effect to check after changes.List the workflows that call the modules so the test scope can be sized against them.
Air-gap transfer proceduresOffline networks need an approved route for downloading, verifying and moving database files, which adds a manual step on each refresh.Ask who performs transfers, what media and approval steps apply, and how file integrity is checked.
Licence and account setupUsing MaxMind GeoLite databases requires an account and acceptance of the licence terms, which must be handled by the client before updates can be fetched.Confirm who holds the MaxMind account, who accepts the licence terms, and who receives update notices.
Database refresh scheduleA recurring update routine adds ongoing work for whoever owns the update process, and failed refreshes can leave stale data.Ask whether the quote includes refresh automation, monitoring of refresh failures, and handover of the procedure.
Testing depthChecks range from a single lookup per module to full regression across event enrichment, correlation and upgrades.Ask which test cases are included, what evidence is delivered, and whether retesting after misp-modules upgrades is covered.

How GeoIP enrichment connects to the rest of the platform

The GeoIP lookups are one piece of a larger MISP setup. They depend on the misp-modules service, sit on top of the event and attribute model, and feed whatever analysts and detection tools consume downstream. Confirm each connection against your own installation before you rely on it.

The misp-modules service

The GeoIP ASN, City and Country expansion modules run inside misp-modules, which runs alongside the core MISP platform and reads the local MaxMind GeoLite MMDB files. Confirm that the service is reachable from the MISP host, that the module is enabled, and that the database file path is readable by the service account. A missing or unreadable MMDB file is the most common reason lookups return nothing, so check the module's startup output after every restart.

misp-modules README

Attributes and the event model

Enrichment adds context to existing IP address attributes, so the results land as attached data on events you already hold. The lookups only help when analysts store IP addresses as typed attributes rather than free text. Review how your team records IP indicators, and confirm which attribute types the GeoIP modules accept in your MISP version before you rely on the output.

Analyst enrichment actions

Analysts usually trigger enrichment by hand from an attribute or event view, so the operating procedure matters as much as the module. Decide who runs lookups, whether results are reviewed before an event is published, and how the enriched context is recorded so a later reader can see which database version produced it. Confirm the exact trigger steps in your MISP interface.

Workflows and automation

If your deployment uses MISP workflows or scheduled jobs, enrichment can run as one step in an automated sequence. Automated enrichment multiplies the effect of a stale or wrong database, so test the workflow on sample events first. Confirm whether your MISP version exposes the GeoIP modules to workflow blocks, since this depends on the version and setup.

Installation and upgrade process

The database files and the misp-modules service must survive MISP upgrades. Record where the MMDB files sit, which service account reads them, and how the service restarts after an upgrade or a container rebuild. Confirm the upgrade path for your installation method, whether the official installer, Docker or another packaging option, before you schedule the next MISP version change.

MISP download options

Detection and SIEM use

Enriched events often flow onward to detection rules, blocklists or a SIEM, so country and ASN context can change what gets alerted on. Check whether downstream consumers read the enrichment fields, how they handle a changed country or ASN for the same address over time, and whether the export includes the enrichment or only the raw indicator. Confirm this against each consumer's own documentation.

Questions teams ask before hiring help with MISP GeoIP

How much effort does MISP GeoIP enrichment with local MaxMind databases take?

The effort is mostly configuration and verification rather than new development, because the misp-modules service already provides GeoIP ASN, City and Country expansion modules that read local MaxMind GeoLite MMDB files. The work splits into placing the database files on the misp-modules host, enabling and pointing the modules at them, testing lookups on known addresses, and setting a refresh routine. Effort rises when MISP is not yet running misp-modules, when the network is air-gapped and files must be carried in by hand, or when the team wants the enrichment wired into workflows or custom expansion logic. Ask any provider to split the estimate into these steps so you can see what you are paying for.

How long does a MISP GeoIP setup typically take, and what drives the schedule?

The schedule depends on how much of the surrounding environment is ready. The main drivers are whether a working MISP instance with misp-modules already exists, how quickly the team can obtain and approve the MaxMind files for the target network, whether the host can reach the database source or needs an offline transfer process, and how many analysts and workflows must be tested before sign-off. No duration is given here because it depends on those conditions. Ask for a timeline that lists each dependency, who owns it, and which steps wait on approvals.

What does the work need from our team?

Plan for a named owner on the MISP side who can change the misp-modules configuration and restart the service, a person who holds the MaxMind account or licence decisions, and someone who can place files on the host in your change process. Security or compliance reviewers should confirm where the database files are stored and who can read them. Your analysts should supply sample attributes, such as IP addresses with known ASN or country outcomes, so the test cases reflect real use. Confirm these responsibilities in writing before work starts.

Can an internal team set up MISP GeoIP enrichment without outside help?

Yes, a team that already operates MISP and misp-modules can usually do this in-house, since the enrichment relies on documented modules and local files. The steps are the same whether you use a partner or not. Outside help adds value when the team has no spare capacity, when the environment is air-gapped and needs a tested transfer and update path, or when the enrichment must be documented for an assessment. Check the misp-modules README for the current module settings and confirm them against your installed version before you change anything.

How do we keep MaxMind GeoLite data current in an offline or air-gapped network?

Offline currency depends on a repeatable process rather than a single import. Decide how often the MMDB files are refreshed, who downloads them on a connected system, how the files are checked and moved across the boundary, and where they are placed on the misp-modules host. Record the file version and date in your change log, and test a few known addresses after each update so a bad file is caught early. Confirm the MaxMind licence terms that apply to GeoLite files and to your internal redistribution before you build the transfer process.

What should a quote for MISP GeoIP enrichment include?

A useful quote lists the written scope, the environment assumed (MISP version, misp-modules deployment, network type, hosting), each deliverable such as configured modules, a test record, and a runbook for database updates, and the responsibilities that stay with your team. It should separate one-time work from any recurring support or update service, state what is excluded, and name the acceptance steps. DeployOpen agrees scope, deliverables and timelines in writing before work starts and gives a quote from that scope. Ask any provider to confirm the same items so the comparison is fair.

What can go wrong after the GeoIP modules are enabled?

The most common problems are a database file that is missing, stale or in the wrong location, a misp-modules service that was not restarted after configuration changes, and lookups that return empty results for private or unusual addresses, which analysts may read as a failure. Permissions on the file can also block the service user. Build a check that confirms the file path, the file date and a sample lookup, and document what an empty result means so analysts do not treat normal coverage gaps as faults.

Does the GeoIP enrichment need extra security review?

Yes, treat the database files and the misp-modules host as part of your MISP attack surface. Restrict read access to the MMDB files, keep the modules service on a controlled network path, and log changes to configuration and database versions. Your security team should review the licence terms and data handling of the chosen MaxMind product before it is placed in a regulated network. Confirm each control against your own policy rather than relying on the default setup.

What you receive and what your team must provide

The handover package is the record that lets your team run GeoIP enrichment without us. You receive the configuration records for the enrichment setup: which misp-modules host runs the City, Country and ASN expansion modules, the path where each MMDB file is placed, the file ownership and permissions used by the service, and the settings that point MISP at the modules. You also receive the database refresh procedure as a written, step-by-step runbook, a validation record showing lookups returning results for test addresses from each database, and a runbook for licence and file renewal. The renewal runbook should name the person who downloads each new file, where it is stored, the checksum or version check used before replacement, and the service restart or reload step that follows. Ask for these items in the written scope so acceptance criteria are clear before work starts.

Your team keeps ownership of the MaxMind account and the licence acceptance. GeoLite databases are published under MaxMind's terms, which require an account and acceptance of the licence. DeployOpen does not create accounts in your name, accept terms on your behalf, or hold the licence key. Your organization should decide which account owner and which role manages the license key, how it is stored (a secrets manager is the usual choice), and who is notified when terms change. Confirm current licence terms directly with MaxMind, including any attribution and redistribution conditions that affect how you share the files with other MISP instances or air-gapped sites.

Access for the implementer is limited to the hosts and the change window. We need administrative access to the misp-modules host to install and configure the MMDB files and the service, read access to the MISP instance to test the enrichment settings, and a test account in MISP with permission to run enrichment on sample attributes. We do not need the MaxMind account credentials, and access should be removed or rotated at handover. Your team should also confirm the network path for any download step, since air-gapped sites will move files through an approved transfer process, and agree who approves each file transfer.

How DeployOpen scopes and delivers MISP GeoIP enrichment

DeployOpen plans and delivers MISP GeoIP enrichment inside your own infrastructure, including the misp-modules service and local MaxMind database files. The work is agreed as a fixed scope before it starts, so lookups keep working offline and in air-gapped networks, with a documented way to keep the databases current.

How we scope

  • We confirm your MISP version, hosting model and whether the network is air-gapped before any work begins.
  • The written scope lists which GeoIP ASN, City and Country modules are enabled and which attribute types they enrich.
  • We agree how MaxMind GeoLite MMDB files reach the server, who holds the license terms and who owns the update routine.

How we build

  • We deploy the misp-modules service next to MISP and mount the MMDB files in a location the modules can read.
  • We configure each GeoIP module and test lookups against sample attributes, including IP addresses that have no match.
  • We document the file paths, module settings and the offline update procedure so your team can repeat it.

How we hand over

  • You receive a configuration record, a test log showing expected enrichment results and a runbook for the update process.
  • We walk your MISP and security operations staff through how analysts trigger enrichment and how to read the returned data.
  • Acceptance is checked against the agreed scope, so you know which items were delivered and which were left to your team.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, including checks after each MISP or misp-modules upgrade.
  • We can review database refresh records on a schedule you choose and retest enrichment after any change to the host or files.
  • Support requests are handled under the retainer terms, so you can confirm response expectations before signing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.