Bulk importing indicators into MISP

Bulk importing indicators into MISP means choosing between the freetext import, the CSV import module and PyMISP scripts, then setting categories, types and to_ids so the data is useful without flooding correlations.

On this page

Bulk importing indicators into MISP: when teams need it and what it covers

Analyst teams often hold indicator lists in spreadsheets, vendor reports and partner files, and those lists have to enter MISP in a consistent way or the platform's correlation and sharing features will return noisy or misleading results. The import path you choose depends on the input format and the volume of data, and it decides how categories, types and the to_ids flag are set on every attribute. Getting these right at load time is far cheaper than cleaning them up after events have been published to partners.

MISP is an open source platform for collecting, storing, distributing and sharing cyber security indicators. It is licensed under the GNU AGPL version 3, built on PHP with CakePHP, and runs on MySQL or MariaDB with Redis. Its import options differ in how much structure they can carry: the freetext import helps with pasted lists that need light interpretation, the CSV import module maps columns to attribute fields, and PyMISP bulk scripts give full control over every attribute and event object. This page covers all three, along with the decisions that shape how the imported data behaves later in correlation and sharing. The MISP GitHub repository is the starting point for confirming which import features your release provides.

Before loading anything, decide who owns the imported events, which distribution level they will carry, and whether the source lists are trusted enough to set the to_ids flag for detection. Confirm the behavior of each import option against the version you run, because import features and their defaults can change between MISP releases. Then test with a small sample from each source, check how many values correlate with existing data, and only then load the full set. Those checks are the difference between an import that adds usable intelligence and one that floods analysts with false matches.

Which import method fits which input

This table compares the freetext import, the CSV import module and PyMISP bulk scripts across input format, volume, repeatability, operator skill and mapping effort. Read each row against the file you actually receive, then pick the method that matches the recurrence of the source. Confirm import and export options against your installed MISP version, since the features page describes the platform in general terms.

FactorFreetext importCSV import modulePyMISP bulk script
Typical inputPasted lists of IPs, domains, hashes or URLs from a reportSpreadsheet or CSV export with a header row and one indicator per linePartner files in CSV, JSON or STIX that need parsing logic
Volume that suits itSmall batches, such as indicators copied from one reportMedium batches that an analyst can review before submissionLarge or frequent loads where manual review does not scale
Mapping workLow: the analyst picks category and type for the whole batchModerate: columns must be mapped to attribute types and flagsHigh: the script must map every field and handle bad rows
RepeatabilityLow, since each run depends on someone pasting againModerate, since the same column layout can be reused by handHigh, since the same script runs on a schedule or on each new file
Who can run itAny analyst with event edit rightsAnalysts with edit rights who understand the column mappingEngineers with a scoped API key and version-matched PyMISP
Control over to_ids and tagsSet once for the whole batch, so mixed indicators need splittingSet per column, which suits mixed files with a clear structureSet per record, with rules that can be tested before loading
Best fitOne-off report with a handful of indicatorsOccasional partner list delivered as a spreadsheetRecurring partner feed or internal source feeding MISP regularly

How to run a bulk import without noisy correlations

This sequence moves an indicator list from a raw file into MISP in a controlled way, so the import is reviewed, tested in a non-shared event and checked for warninglist hits and correlation noise before anything is published to partners.

  1. Normalize the source list first

    Before touching MISP, the analyst who owns the source file cleans it: removes duplicates, strips defanged or wrapped values into their plain form, separates mixed columns, and records where each row came from (report, partner feed, or internal sighting). Each row should hold one value of one type, such as a domain, an IP address or a file hash. The output is a clean, labelled file plus a short note on its origin. Check it by sampling around twenty rows at random against the original source and confirming each value matches exactly.

  2. Decide event grouping and distribution

    Decide how the indicators are grouped before import. One event per report or campaign keeps context and makes later review and removal easier, while a single large event is harder to manage. Choose the distribution level deliberately: an event that is not meant for sharing should stay at the most restrictive level until review is complete, and sharing groups should be used only where the recipients are known. Record the decision in the event info field. Done when the event exists with a clear title, a distribution setting and a named owner.

  3. Assign category and type for each column

    Map every source column to a MISP attribute category and type explicitly rather than relying on the importer to guess. A column of IP addresses, for example, should map to a network category with an IP type, and a column of hashes should match the hash type that fits the algorithm. Mismatched mappings are a common source of confusing results later, because correlations and detection exports depend on the type. Check the mapping by importing a small sample and reviewing the resulting attribute types against the source column headings.

  4. Set to_ids deliberately

    Decide which attributes should carry the to_ids flag, which marks them as suitable for automated detection. Set it only for indicators the team would be comfortable seeing used in blocking or detection, and leave it off for context values such as related names, references or low-confidence items. Setting the flag on a whole file without review pushes weak indicators into downstream tools. Confirm the decision per category or per column in the mapping, then check a sample of attributes to make sure the flag matches that rule.

  5. Run a test import into a non-shared event

    Import the full list into a test event that is not shared with any community or sync partner. This lets the team find parsing errors, duplicates and unexpected types without exposing noisy data. Use the freetext import or CSV import module for the first pass, or a PyMISP script that writes the same fields if the list is large or recurs. Confirm that the attribute count matches the cleaned file, minus any rows deliberately dropped, and that no values were altered during import.

  6. Check warninglist hits and correlation results

    Review the test event for warninglist matches, which flag common or benign values such as public DNS resolvers or widely used domains, and review the correlation results that link the new attributes to existing events. Decide for each hit whether it is a true indicator, a known benign value to remove, or a context value to keep with to_ids turned off. Confirm that the correlation count is what the team expects for this campaign. A sudden spike across unrelated events is a signal to stop and revisit the mapping or the to_ids decisions before going further.

  7. Publish after the final review

    Once the test event is clean, correct the remaining issues, record what was removed and why in the event, and then publish. Publishing is the point where the event becomes available to sync partners and automation that reads from MISP, so it should be the last step and be done by someone other than the person who built the import where possible. Confirm the published event shows the expected attribute count, distribution and to_ids state, and keep the test event or the import script output for later audits.

Setting categories, types and to_ids correctly

Category and type decide what an indicator means to every consumer downstream, so they are the first fields to check in a bulk import. The type field records the form of the value, such as ip-dst, domain, url, md5 or email-src, and the category field records the role it plays in an investigation, such as Network activity, Payload delivery or External analysis. An IP address loaded as ip-src when it is really a destination sends the wrong signal to sensors and to analysts searching by direction. A hash filed under the wrong category is harder to find with filtered searches. Before loading a spreadsheet, map each source column to a MISP type and category in a written table, and sample a few rows through the import preview to confirm the result. Ask your partner or internal team to document that mapping, because it becomes the reference for every later batch.

The to_ids flag tells detection consumers that an attribute is actionable, meaning a firewall, IDS or DNS sensor that exports from MISP may block or alert on it. Bulk imports are the most common route to noisy detection because a list may contain hosting providers, search engines, sandbox addresses or internal ranges that are useful as context but should never trigger a block. Set to_ids to true only for values your team has validated as malicious or suspicious for that purpose, and default to false for everything else. Warninglists help catch known benign values during import, but they do not replace a review of the source. Confirm with your detection owners which export formats and rules consume to_ids, and test one batch against a non-blocking sensor before enabling it broadly.

Taxonomies and galaxies give teams a shared vocabulary for tagging imported attributes, so that a batch from one partner and a batch from another can be searched the same way. Taxonomy tags classify context such as confidence or TLP marking, and galaxy clusters link values to known threat actors, malware families or ATT&CK techniques. Apply them during import, not afterward, and agree on which namespaces your community uses, because mixing custom tags with standard ones makes filtered queries unreliable. The exact tag names and their licensing terms are published by the MISP project, so check the current taxonomy and galaxy set on your own instance rather than relying on a copied list.

What creates noisy correlations after a bulk load

A bulk load can flood an instance with correlations that look like findings but are not. The causes below act in parallel, and each has a different symptom and a different control. Check them before publishing, because MISP propagates correlations once attributes are shared.

Shared public infrastructure

Public DNS resolvers, CDN edges and large cloud address blocks appear in many unrelated reports. A bulk import of these values links your event to every other event that mentions them, so analysts see a web of false relationships. Apply warninglists before publishing, and confirm which warninglists your instance enables, since the default set is a starting point rather than a complete list. Review the matches during import rather than after the event is shared.

MISP features

Overly broad CIDR ranges

A spreadsheet row such as a /16 or /8 block matches every IP attribute inside it, because MISP correlation supports CIDR overlaps. One broad range can therefore correlate with hundreds of unrelated addresses across events. Before import, check prefix length against what the source actually reported, and split or drop ranges that were copied from registry allocations rather than observed activity. Keep the range on the event as context only if it is needed.

Common file hashes

Hashes of common installers, libraries and blank or template documents recur across unrelated samples. Fuzzy hash matching widens this effect, so a single benign file can link many events. Remove known-good hashes from partner files before import, and confirm whether your instance applies a hash-focused warninglist. Ask partners to send SHA-256 values for their own samples, since shorter or fuzzy digests collide more often.

Duplicate values across events

Repeated loads of the same feed or report create several attributes with identical values in different events. Exact-match correlation then links all of them, which inflates counts and makes one indicator look like a campaign. Deduplicate the input file on value and type before the import script runs, and check the target event for existing attributes so the same value is not added twice under a new event.

Wrong to_ids flags

The to_ids flag tells sensors and exporters that an attribute is suitable for detection or blocking. Setting it to true on context values such as names, email addresses or victim infrastructure pushes those values into blocklists and rules. Set categories and types first, then assign to_ids per type from a documented mapping, and review a sample of rows from each import before the flag reaches any downstream export.

Questions teams ask before bulk importing into MISP

What drives the cost of a bulk indicator import into MISP?

The main cost driver is how clean the input is and how much mapping work sits between the source files and MISP's data model. Cost rises with inconsistent spreadsheets, mixed indicator types in one column, partner files that use their own field names, and rules for categories, types and the to_ids flag that nobody has written down. Review time is the other large component: someone has to decide which indicators are safe to mark for detection before they reach sensors. One-time costs cover mapping rules, the import script and the first review. Recurring costs appear when the same feeds arrive every week and need the pipeline kept working. When requesting a quote, ask for the scope split between mapping, scripting, review and handover, and whether the price includes retesting on a test instance.

How long does a first MISP bulk import take?

Duration depends mainly on volume, how many source formats exist, and how deep the review goes. A short list from one clean spreadsheet is a very different job from several partner files with overlapping indicators that need warninglist checks and sharing decisions. Review depth is the variable teams underestimate: a quick sanity pass takes far less time than checking each batch against your detection rules and sharing policy. Ask for a written timeline that separates test imports on a non-production instance from the production load, and confirm which of those stages is included in the fixed scope.

What does the import project need from our team?

Expect to provide representative sample files, a written sharing policy that states which distribution levels and sharing groups apply to each source, and access to a test MISP instance where imports can be run and reversed. Sample files should include the messy cases: merged cells, defanged indicators such as hxxp URLs, comments mixed into value columns and duplicate rows. The sharing policy decides who can see imported data and whether it is published, so it must be settled before any load. Confirm with your MISP administrators which tags, taxonomies and galaxies they want applied, and who signs off on the to_ids decisions.

Can an in-house analyst run a MISP bulk import without a partner?

Yes, a team with someone comfortable with Python, the MISP data model and the import options can handle small, regular loads. The freetext import and CSV import module cover simple cases, and PyMISP can script the rest. The risk is in the decisions rather than the tooling: setting categories and types correctly, deciding when to_ids should be true, and avoiding correlation noise from very common values. These points need a documented rule set and a second reviewer. A partner tends to help when volume is high, sources are many, or the import must be repeatable and audited. Confirm the analyst's time for mapping, testing and review before deciding.

Who owns the import script after the project ends?

Ownership should be written into the engagement before work starts. Typically the client owns the script, mapping rules and documentation, and the team that runs MISP operates it afterward. Ask who holds the repository, who can change the mapping file, and how a new partner feed is added without rewriting the script. Without a named owner, scripts quietly break when a feed format changes and nobody knows whether the last load was correct.

When does a partner help maintain PyMISP scripts across MISP version changes?

A partner helps most when the MISP version changes and the PyMISP client has to stay matched to the server. MISP 2.5 is the recommended line for new deployments, and MISP 2.5.47 introduced a new database migration system with PostgreSQL support, so upgrades can change behavior that scripts depend on. MISP 2.4 is end of life with security fixes only. Ask a partner to define a test matrix, pin the PyMISP version to the server release, rerun import tests after each upgrade, and document any API changes found. Confirm whether the retainer covers that testing or only break-fix work.

How do we avoid noisy correlations after a bulk import?

Noise usually comes from loading very common values, such as public DNS resolvers or widely used download domains, with to_ids set to true. MISP's correlation engine matches exact values and advanced patterns, including CIDR overlaps, so a broad range can link many unrelated events. Check imports against warninglists before publishing, review to_ids on every batch, and use distribution settings to limit blast radius while testing. Ask the team running the import to show a sample of correlations from a test load before anything goes to production.

Does DeployOpen handle the sharing decisions for imported partner data?

DeployOpen can design the import rules, document the distribution and to_ids logic, and test the result on a test instance, but the sharing decision belongs to your organization. Partner agreements, legal terms and sector community rules determine who may receive which data. Bring those constraints to the scoping call so the import rules can encode them. Confirm in the written scope exactly which decisions DeployOpen will implement and which your compliance or threat intelligence lead must approve.

How a bulk import moves from source file to published event

The flow starts with a partner file or spreadsheet that is normalized into a clean indicator list, then loaded through one of three paths: the freetext import, the CSV import module or a PyMISP script. Every import lands first in a non-shared staging event inside the internal instance, where analysts check to_ids flags, categories and warninglist hits, and review correlations against existing events. Only after that review should the event be published, which is the point where the trust boundary to sharing groups and sync partners is crossed.

Bulk import path from source file through staging review to publication.

Limits to confirm in your environment

Bulk import behavior depends on the exact MISP release, the install method and the sizing of your instance. The checks below cover what to confirm before you write import scripts or schedule large loads, and where to confirm each one.

Import field support in your release

Confirm that the freetext importer and the CSV import module in your MISP 2.5 release accept the columns you plan to map, including category, type, value, to_ids, comment and tags. Field names and accepted values can change between point releases, so test with a small sample file on a non-production instance. Check the release notes for the version you intend to run before you write column mappings.

MISP release notes

CSV module availability by install method

Confirm whether the CSV import module is enabled and configured in your deployment. The installer, Docker images, Ansible roles, Puppet modules and RPM packages may differ in which optional components and misp-modules services they include. Ask whether your build ships the module, where its configuration lives, and whether it needs a restart after changes.

MISP download options

Practical batch size on your sizing

Do not assume a batch size from another instance. Measure how long a sample of your real file takes to import, how much memory and database load the job creates, and whether background workers keep up. Set a batch size from those measurements, and confirm it again after the instance grows or workers change. Ask your platform team which limits apply to upload size, PHP execution time and worker queues.

Correlation behavior with your data

Run a test import against a copy of your data and review the correlations it creates. Shared values such as common IP ranges, public DNS names or hashes from popular tools can link unrelated events and produce noise. Check how your instance handles CIDR overlaps and fuzzy matches, and confirm that warninglists are enabled before you publish imported attributes to partners.

MISP features overview

Scripts and API key scope

Confirm which account and API key your bulk scripts use, and what that role can create, edit and publish. A key with broader rights than the import needs can publish events by mistake. Record the key owner, rotate it on a schedule and confirm that the import account can write only to the organization and distribution levels you intend.

Import logging and rollback

Confirm how your release records who imported what and when, and whether a failed batch can be identified and removed cleanly. Ask whether the import job leaves an event per file or per row, and whether you can reverse a batch by event ID or by tag. Test deletion on a sample batch before you rely on it in production.

Keeping PyMISP bulk scripts matched to the server

A bulk import script is only as current as the PyMISP version it calls and the MISP server it writes to. PyMISP is the client library that wraps the MISP REST API, and its methods, object templates and attribute handling can change between releases. When the MISP server is upgraded, the script that worked last quarter may fail quietly, for example by skipping attributes it no longer maps correctly or by writing values the new server validates differently. Treat every server upgrade as a trigger to review the import scripts, pin the PyMISP version that matches the server, and rerun a sample import before the scheduled jobs resume. Confirm the supported PyMISP and server pairing in the project's own documentation for your release line, since this page does not set that mapping.

Keep the scripts in version control with the PyMISP version pinned in the dependency file, the expected server version written in the README, and the category, type and to_ids mappings stored as reviewed configuration rather than hard-coded in several places. Test every change against a non-production MISP instance loaded with a copy of recent events, and compare the resulting attribute counts, correlations and warninglist hits with the last production run before promoting it. Use a dedicated automation user whose API key has the minimum role needed to add attributes to the target organization, and keep that key out of the script itself, in a secrets store your team already operates. Rotate it on a schedule and whenever the script's owner changes.

If your team lacks capacity to run this review cycle, the MISP support page lists the project's paid support services and notes that third-party providers offer commercial support. Ask any outside party to show how they handle PyMISP version pinning, test instances and scoped keys for your scripts, and to state in writing who reviews the scripts after each server upgrade. Scope that work in writing before it starts, so the upkeep is owned rather than assumed.

How DeployOpen delivers MISP import work

DeployOpen treats a bulk indicator import as an engineering job with a written scope, a tested pipeline and documented rules for categories, types and to_ids. The work runs inside your own MISP instance, on infrastructure you control, so the people who own the data can review every step.

How we scope

  • Inventory the source files, partner feeds and report extracts that will feed the import, with their formats and owners
  • Agree in writing which attribute types, categories and to_ids defaults apply to each source
  • Define the warninglist, distribution and tagging rules that decide what reaches correlation and sharing
  • Record the target MISP version, the import method and the acceptance tests before any build starts

How we build

  • Build the import path with the freetext import, the CSV import module or PyMISP scripts, whichever fits each source
  • Map source columns to MISP attribute types and categories, and test edge cases such as defanged values and mixed types
  • Run dry runs on a copy of the instance and check correlation volume before any production load
  • Write the import scripts so they can be rerun safely and logged for audit

How we hand over

  • Deliver the import scripts, column mapping tables and rules for to_ids and categories in a documented form
  • Provide a test report that shows imported counts, rejected rows and correlation results against agreed thresholds
  • Train the analysts or engineers who will run future imports on the procedure and its checks
  • Document how to confirm the MISP version and PyMISP version still match before each run

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts
  • Ongoing support, upgrades and continuous testing are available as a retainer for teams that run imports regularly
  • Retesting after changes to MISP versions, sources or scripts can be included in the written scope
  • Ask for a quote built from your written scope, since DeployOpen does not publish a price list

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.