Why teams convert between MISP and STIX 2.1 with misp-stix
Teams convert between MISP and STIX 2.1 when their own intelligence lives in MISP but a partner, threat intelligence platform or SOC tool expects STIX. The usual situation is a team that curates events, attributes and objects in MISP, while a partner's sharing channel, a commercial TIP or a detection pipeline only accepts STIX bundles. Native MISP sharing, through synchronization between instances or a trusted community, keeps the richest data model and sharing controls intact, so it should be the first option when the receiving side runs MISP too. The conversion path makes sense when the other end is a STIX consumer that cannot take MISP JSON directly.
MISP exports STIX 1 and STIX 2 among its other formats, alongside MISP JSON, OpenIOC, CSV, Suricata, Snort, Zeek and RPZ. The misp-stix library is the component that performs the translation, both when MISP produces STIX output and when it ingests STIX content from outside. Before choosing this path, confirm with the receiving team which STIX version they consume, since STIX 1 and STIX 2 use different object models. Ask also whether they need a file, a bundle pulled through the API, or a feed-style exchange, because each changes who runs the export and how often it repeats.
A conversion decision also depends on what must survive the trip. Sharing controls such as distribution levels and sharing groups, which MISP applies down to individual attributes, are the features most likely to be lost or reshaped when content leaves MISP for a STIX consumer. Treat the exported file as a new artifact with its own handling rules, and confirm that the receiving side honors the distribution intent of the original event. If it cannot, native sharing or a narrower export is safer than a broad bundle.
For the owner of the MISP instance, the practical first step is a short pilot with a representative event. Export it in each STIX version the partner uses, import the output into the partner's tool, and compare what arrives against the original attributes, tags and relationships. Record which fields and object types drop out or change meaning. That record, not a general assumption, should decide whether conversion is the right path for each sharing relationship.
Which STIX path fits which exchange need
This table compares the three routes between MISP and STIX: STIX 1 export, STIX 2 export, and misp-stix import, by the exchange purpose each one serves. Read each row against your receiving tool's supported STIX version before choosing, because the supplied facts do not establish version support for any consumer. The main takeaway is that the export format is set by the receiver, while import direction depends on what data you need to bring into MISP.
| Exchange need | Path | What to confirm first |
|---|---|---|
| Sending events to a partner tool that reads STIX 1 | STIX 1 export from restSearch | Confirm the receiving tool's STIX 1 parser and which MISP object types it accepts |
| Sending events to a tool that reads STIX 2 | STIX 2 export from restSearch | Confirm the consumer's STIX 2 version and the object types it expects |
| Bringing STIX content from a partner into MISP | Import through misp-stix | Confirm which STIX version the source produces and sample a bundle before bulk loading |
| Keeping native MISP detail for another MISP instance | MISP JSON, not STIX | Check whether the partner needs STIX at all, since MISP-to-MISP sync carries full MISP data |
| Sharing with a tool that only accepts a fixed subset of fields | STIX export with a reduced attribute set | Ask which attributes, tags and distribution settings the consumer will keep or discard |
| Large one-time bundle handover | Export in batches, then test import on a copy | Ask the receiver for file size limits and whether they process bundles in one pass |
| Regulated or audited exchange | Chosen path documented with its version | Ask the receiving team to name the STIX version and the mapping they will rely on in writing |
Setting up misp-stix for export and import
This sequence confirms the MISP release, enables the misp-stix component next to misp-modules, and proves that STIX output and input match the source events before any production exchange starts. Each step ends with a check you can record and repeat.
Confirm the MISP 2.5 release in use
The platform administrator records the exact MISP version and the installation method, then checks it against the MISP download page, which recommends the 2.5 line for new deployments. Confirm that the instance is not on 2.4, which the project lists as end of life with security fixes only. Note the release tag from the MISP GitHub releases page so every later test can be tied to one version. The step is done when the version, operating system and installer are written into the change record and the team agrees which release the STIX mappings were tested against.
Enable misp-stix alongside misp-modules
The platform administrator confirms that the misp-modules service is running and that the STIX conversion component is installed and reachable from the MISP web application, using the method your installation uses (official installer, Docker, Ansible or packages). Check the MISP settings for the modules integration and confirm the conversion options appear in the export menu. Review the project's installation documentation for the exact service and configuration names in your release, because these differ between packaging methods. The step is done when a test conversion request returns a response without errors in the MISP logs.
Select a known event as the test fixture
The analyst or engineer chooses one published event that contains a mix of attributes, objects, tags and at least one attribute with to_ids set, so the test exercises the mappings that matter. Record the event ID, the attribute count, the object types, the tags and the distribution level. Keep a copy of the event as MISP JSON so the baseline is stored outside the instance. The step is done when the fixture has a written inventory that any reviewer can reproduce.
Run a small restSearch export
The engineer runs a restSearch request limited to the fixture event, requesting STIX 2.1 output with the appropriate return type, using an API key from a read-only account. Save the response as a file and record the HTTP status, the response size and any warnings returned. Repeat the export for STIX 1 only if your receiving tools still need it, and note that the two versions map data differently. The step is done when the export completes for the single event and the file is stored with its request parameters.
Validate the bundle in the receiving tool
The engineer loads the exported bundle into the receiving STIX-capable tool or a STIX validator, and confirms that it parses without schema errors. Compare the object types and counts in the bundle with the inventory from the fixture event, and list every attribute type that did not produce an expected object. Record which MISP attributes and tags were dropped, altered or moved into different fields, since these are the mapping gaps your team must accept or work around. The step is done when the validation report and the comparison table are attached to the test record.
Run a controlled import into a test instance
The engineer imports the same bundle through misp-stix into a separate test MISP instance, not production, and uses a dedicated account with a distribution level that cannot reach partners. Compare the imported event with the fixture: attribute counts, object types, tags, to_ids flags and timestamps should match except where the earlier validation recorded a known gap. Check that the import did not create unexpected correlations by reviewing the correlation results before publishing. The step is done when the differences are limited to documented mapping gaps and the team signs off the import behavior.
Repeat the sequence on a larger bundle
The engineer runs the same export, validation and import checks on a larger event or a set of events, selected to reflect real volumes in your environment, and records timing, memory use and any timeouts from the web server and workers. Ask your platform team to confirm the resource limits and the worker configuration before testing scale, since these set the practical size of a single request. The step is done when the results show whether bundles of the expected size complete reliably, and the team decides whether to split exports by event or time window.
What maps cleanly between MISP and STIX 2.1 and what does not
MISP and STIX 2.1 share the core indicator and observable model, but they differ in how they express sightings, context tags, sharing rules and custom structures. The cards below mark where a conversion is usually dependable and where meaning can thin out or disappear. Test a representative sample of your own events in each area rather than assuming parity.
Core indicators and observables
Attributes such as IP addresses, domains, file hashes and URLs are the part of the conversion most teams rely on, and it is usually the most predictable. Check that to_ids intent survives the trip, because a STIX indicator pattern is only useful for detection if the flag that marks it for blocking or alerting is carried over correctly. Also confirm how attribute types with no direct STIX observable equivalent are handled, and whether values are normalized the same way on both sides, such as domain case or hash format.
Sightings and relationships
Sightings record that an indicator was observed, by whom and when, and they drive prioritization in many detection programs. STIX expresses observation and relationships through its own object model, so confirm which sighting fields reach the STIX output and which are dropped on import. Relationships between events, objects and attributes may be flattened into generic links. Test one event with several linked objects and sightings, then compare the counts and links on the receiving side.
Galaxies and taxonomies
Tags such as threat actor, malware family, ransomware group and MITRE ATT&CK technique carry much of the analytical context in MISP. STIX represents some of this as labels, marking definitions or external references, but the names and namespaces may not match what your receiving tools expect. Verify that galaxy clusters and taxonomy tags arrive as usable labels, and that the tool on the receiving end can filter on them. Otherwise attribution and technique context may be present but unsearchable.
Distribution and sharing groups
MISP distribution levels and sharing groups decide which organizations can see an event or attribute, and they are central to controlled exchange. STIX has markings that can express handling restrictions, but the mapping between MISP distribution settings and STIX markings is not one to one. Decide before exporting which settings must be preserved, then confirm that a restricted attribute does not leave your trust boundary through a STIX file. Review the export rules with your data handling owner before any external sharing.
Custom and unmapped object types
MISP objects built from custom templates, and attribute types without a clean STIX counterpart, are the most likely to be dropped, reduced to a generic container or renamed on conversion. Inventory the object templates your analysts use most, then convert a sample and look for missing fields, unexpected custom properties and empty objects. Decide whether the receiving tool needs those fields at all, and document the ones you accept losing so that downstream analysts know what the STIX file does not show.
Context lost in round trips
A MISP event exported to STIX and imported back does not always return to the same event with the same comments, timestamps, event info text, attribute order and tag history. These differences matter when an event is used as an audit record or when a partner re-imports and updates it. Run a full round trip on representative events, compare the original and returned records field by field, and record which differences your process will accept. This check also shows whether repeated imports create duplicates.
How large bundles affect conversion performance
Conversion time and memory on a large event depend less on the STIX version than on how much data the event carries and how it is requested. The main drivers are the number of attributes and objects in the event, the size of each object's attributes, the include options set on the export (such as related attributes, sightings, or enriched context), and whether the export is requested for one event or for many events in a single query. A restSearch call that returns hundreds of events with full context asks the server to build and serialize far more data than a single event export, and that work is multiplied when several analysts or tools run the same export on a schedule. Before tuning anything, identify which of these your own workloads actually trigger.
Worker capacity on the MISP host sets the ceiling. Background workers, the database, Redis and the PHP process all compete for the same CPU and memory, so a long export can slow down synchronization, feed fetches and correlation at the same time. Export frequency matters for the same reason: a scheduled job that rebuilds STIX bundles every few minutes on the full event set will keep the host busy even when little has changed. Limiting exports to the time window that changed, and staggering scheduled jobs away from peak analyst activity, usually does more than adding options to the request. Confirm the sizing and worker configuration against the MISP installation documentation for your deployment method before you commit to a schedule.
Do not rely on published timings or on rough guesses. Neither is supplied for this topic, and conversion speed varies with hardware, MISP version, database engine and event shape. Instead, benchmark with your organization's largest event and a representative batch of events. Record the request parameters, the elapsed time, peak memory of the PHP process, and the effect on other background jobs during the run. Repeat the test after any MISP upgrade or change to the include options. Ask any partner or vendor to run the same benchmark on your data and report those numbers, not generic figures.
How data moves between MISP, misp-stix and STIX tools
The flow starts with events held in the organization's MISP instance. A restSearch request with STIX output produces a STIX bundle, which leaves the trust boundary for the partner's threat intelligence platform or SIEM. Intelligence coming back follows the reverse path: the partner's STIX bundle is imported through misp-stix into MISP, where it is reviewed before it is shared. Check the attribute and object types at each hand-off, because the STIX side may not carry every MISP field.
Data moves out of MISP as a STIX bundle and returns through misp-stix, crossing one trust boundary in each direction.
Security and data handling when exchanging STIX bundles
Every STIX bundle leaves or enters MISP through an account, a distribution setting and a conversion step, and each of those is a point where data can leave its intended audience. The cards below cover the checks to run before exporting, the scope of the account doing the work, and the controls for data arriving from partners.
Check distribution before export
A STIX export from restSearch returns whatever the calling account can read, so distribution levels decide what leaves the instance. Before you schedule or script an export, confirm which distribution levels and sharing groups the bundle includes and whether it can reach a recipient outside the originating community. Attributes marked for your organization only or community only should be excluded by filter, not by trusting the receiving tool to ignore them.
MISP featuresScope the exporting API key
The API key used for conversions inherits the role and organization of its user, so an administrator key can read unpublished events that a standard user key cannot. Create a dedicated automation user with a read-only role for export jobs, and keep import jobs on a separate account with write rights limited to the events they need. Rotate keys on a schedule and record which key each pipeline uses.
Treat partner bundles as untrusted
A STIX 2 bundle from an outside partner can contain malformed objects, unexpected markings or attributes that trigger correlation against your internal data. Import into a staging or test instance first, review the resulting events, and only then publish. Set a default distribution on import so that content does not default to a wider audience than the partner agreed.
Review unpublished attributes
Unpublished events and attributes often contain internal investigation details, victim names or suspected internal hosts. Converting them to STIX 1 or STIX 2 creates a file that is easy to forward and hard to recall. Filter exports to published events, check the to_ids and comment fields for internal notes, and confirm with the event owner before any unpublished material is converted.
Log every conversion
Conversions run through the API, so the audit trail shows the account, the request and the time, but it does not show what a receiving tool did with the output. Keep records of each export and import job, including the filter used, the output format and the destination, and retain them under your own logging policy. Review logs for exports to new destinations and for bulk exports outside working hours.
Confirm sensitivity rules with counsel
Whether an indicator or a sharing group can leave your organization depends on contracts, sector rules and information-sharing agreements that MISP does not enforce on its own. Before you automate exports to a STIX-based partner, document which event types, tags and sharing groups are permitted, and have your legal or compliance team confirm them. Encode those rules as restSearch filters so the automation follows the agreement.
What to confirm in your environment before relying on the conversion
Which misp-stix version matches my MISP release?
The misp-stix version must match the MISP release you run, so confirm the pairing before you test anything. Check the MISP release you run against the project's release notes and the misp-stix repository, because a mismatch can change how attributes and objects are mapped. Start with the MISP 2.5 line, which the project recommends for new deployments. Record the exact MISP version and the misp-stix version in your change record, and repeat the check after every upgrade, since the 2.5 line has received frequent point releases.
Which STIX version does the receiving tool actually support?
Confirm the STIX version and the specific object types your receiving tool reads, because STIX 1 and STIX 2.1 are different data models. Ask the vendor or project for its supported STIX version, whether it accepts bundles or only single objects, and which observable and indicator patterns it parses. Then run a sample export from restSearch through the receiving tool and compare counts and fields. Do not assume that a tool which accepts STIX 2 accepts every STIX 2.1 construct MISP emits.
How does misp-stix handle custom objects and attributes?
Custom MISP object templates and attributes without a direct STIX equivalent are the most likely source of loss or distortion. Ask the project which templates the converter maps, and which fall back to generic or extension objects. Export a representative event that uses your custom objects, then inspect the bundle for dropped fields, renamed properties and altered relationships. Decide in advance whether losing a field is acceptable, or whether the partner needs a mapping you maintain yourself.
How large can STIX bundles get before conversion slows down?
Bundle size depends on event count, attribute count, object count and the include options you select, so measure it on your own data. Ask the project for any documented limits or known performance issues in your MISP version, then run timed exports at your largest expected event sizes. Watch memory use on the MISP host and the time the receiving tool takes to ingest the file. Plan to split very large exports into batches by time window or tag if a single bundle becomes unwieldy.
Does my database engine change the conversion results?
The conversion logic is the same, but the database engine, MySQL or MariaDB or PostgreSQL, affects how queries and exports run at scale. Confirm which engine you run, and check the MISP release notes for the database migration status of your version. The project introduced a new database migration system with PostgreSQL support in 2.5.47, so verify that your target engine and version are covered before you change engines. Then benchmark exports on the engine you will use in production, not on a test instance.
Who should own the mapping rules after go-live?
Assign a named owner for mapping decisions, version pinning and regression tests before the first partner exchange. Your team will need to re-run conversion tests after each MISP or misp-stix upgrade, and any partner that consumes your bundles will expect stable output. Ask whether your internal team or a partner will maintain the test fixtures, the custom mapping notes and the upgrade sign-off. Recurring effort comes from these upgrade cycles and from new custom object types, not from the first setup.
What evidence should I keep to show the exchange works?
Keep test bundles, conversion logs and a field-level comparison report for each MISP and misp-stix version you run. Auditors and partners ask for proof that the exchange is controlled, so store the input event identifiers, the output bundle hashes and the receiving tool's ingest results together. Confirm with your compliance team which retention period applies to these records. Where your organization needs formal assurance, ask an independent auditor or certification body what evidence they will accept, because DeployOpen prepares evidence but does not issue assessments.
How DeployOpen scopes and delivers STIX conversion work
DeployOpen plans, builds and hands over MISP to STIX conversion inside infrastructure you control. Each engagement starts from a written scope that names the STIX versions, the restSearch exports and misp-stix import paths, and the data classes that must map cleanly before any build begins.
How we scope
- Inventory which STIX 1 and STIX 2.1 partners, tools and feeds exchange data with your MISP instance today.
- Define which events, attributes and objects export through restSearch and which imports go through misp-stix.
- Agree in writing which MISP attribute types will map cleanly and which will be documented as lossy or excluded.
- Confirm the MISP version and misp-stix release your target environment will run before work starts.
How we build
- Configure export and import jobs with fixed mapping rules, tested against representative sample events from your data.
- Benchmark conversion of large bundles on hardware sized for your environment, and record the timings measured.
- Test round trips from MISP to STIX and back, comparing attributes, tags, distribution and to_ids flags for loss.
- Review sharing controls so converted bundles never expose events beyond their intended distribution level.
How we hand over
- Document the mapping table, the conversion commands and scheduled job definitions in your own repository.
- Deliver a test report listing mapped fields, known gaps and the sample data used for each check.
- Walk your platform and threat intelligence teams through running, monitoring and troubleshooting the conversion jobs.
- Record the versions of MISP and misp-stix so later upgrades can be planned against the same test set.
How we support
- Engagements are fixed-scope, so changes to mappings or partner formats are quoted from a revised written scope.
- Ongoing support, upgrades and retesting after each MISP or misp-stix release are available as a retainer.
- Ask your team to confirm partner STIX dialects and tool versions, since these set the mapping work you need.

