How to import CSV and JSON feeds into OpenCTI with mappers
If your team holds blocklists or vendor APIs that publish CSV or JSON and wants them as STIX objects in OpenCTI, the practical path is a CSV or JSON feed ingester with a mapper, not a custom code build. OpenCTI's built-in ingesters fetch the feed on a schedule, and a mapper tells the platform which columns or JSON fields become indicators, observables, malware, threat actors or other STIX objects, and how each value is scored and marked. The knowledge schema behind this is based on the STIX2 standards, and everything the mapper writes is reached through the platform's web application and GraphQL API. Because the platform runs in infrastructure you control, the feed credentials, the mapper configuration and the imported data all stay inside your own environment.
Choose this path when the source is a flat blocklist, a simple export or a vendor API that returns plain records and has no dedicated OpenCTI connector. A dedicated connector is usually the better choice when the vendor maintains one, because it already handles pagination, authentication changes and object relationships. A mapper is the faster route for a single feed that you own, but it shifts maintenance to your team: when the vendor renames a column or nests a field differently, the mapper breaks and the feed stops updating until someone corrects it. Check the vendor's change policy and the connector catalog before you commit to a mapper for a long-lived feed.
Test the mapper before it runs on a schedule. Import a small sample into a non-production instance, confirm that each STIX object type, score and validity date matches what the source intends, and check that duplicate records merge rather than multiply. Confirm the exact ingester names, supported mapper fields and minimum platform version against the OpenCTI documentation for your release, since these change between versions. Only then enable the schedule and watch the first few runs for volume and errors.
Which ingestion path fits which feed
This table compares the built-in CSV ingester, the built-in JSON ingester, a dedicated external import connector and a custom connector built on the Python client. Read each row against the feed you plan to connect, then check the maintenance column to see what your team will own after go-live. The main takeaway is that the built-in ingesters cover flat or simply nested feeds with mapper upkeep, while anything with pagination, auth flows or an existing connector is usually cheaper to run on that path.
| Path | Best fit | What your team maintains | What changes when the format shifts |
|---|---|---|---|
| Built-in CSV ingester | Flat blocklists with one indicator per row and stable column headers | The CSV mapper, column names, and the feed URL or file location | A renamed or added column breaks the mapper; confirm how your release reports header mismatches |
| Built-in JSON ingester | Vendor responses with a consistent nested structure and a clear path to the record list | The JSON mapper, record path expressions, and any field transforms | Nested keys moving or pagination changes require mapper edits and a fresh test run |
| Dedicated external import connector | Sources that already have a maintained OpenCTI connector, such as a vendor feed with its own authentication | Connector configuration, credentials, and version alignment with the platform | Format changes are handled upstream; your team tracks connector releases and plans upgrades |
| Custom connector on the Python client | Feeds with multi-step authentication, complex pagination, or logic a mapper cannot express | The full connector code, tests, container image, scheduling, and error handling | Your team updates code for every upstream change, so budget ongoing developer time for the life of the feed |
| Mapper-only changes | Feeds where only field names or value formats change over time | Mapper definitions and a regression test against a saved sample | Fast to fix, but every change should be retested before the scheduled run resumes |
| Feed with an existing connector | Sources already covered by a published connector in the OpenCTI connectors repository | Deployment, configuration, and connector upgrades | Usually the lowest effort path; confirm the connector's supported platform version before adopting it |
| Hypothetical example (illustrative) | A flat IP blocklist refreshed daily from a CSV file | One mapper, one scheduled run, and a sample file kept for testing | A new column for confidence score would need a mapper update and a retest |
Setup sequence for a CSV or JSON mapper
This sequence takes a CSV or JSON source from an idea to a scheduled OpenCTI import that has been checked against sample data first. Each step ends with a check, so the team knows what is ready before the feed touches production data.
Confirm platform dependencies and worker capacity
Before any mapper work, confirm that the OpenCTI deployment has its dependencies in place: Elasticsearch 8.0 or OpenSearch 2.9 or later, Redis 7.1 or later, RabbitMQ 3.11 or later, and S3-compatible storage such as MinIO. Check that the platform has at least one node for every 3 workers, since the feed ingester and the import connectors both write through the worker pool. The platform team usually owns this check, and the mapper author should confirm the worker count they expect to share with other connectors. The step is done when the platform reports healthy services and the worker count is written down against the expected feed volume.
Collect sample files and API responses
Gather representative samples from the source: a CSV blocklist export, a JSON response from the vendor API, and the header or pagination behavior of each. Capture at least one full page or file, and note which fields are always present, which are sometimes empty, and how the source marks expiry or confidence. Ask the vendor to confirm field definitions, update frequency and any licensing limits on redistribution. The step is done when the samples are stored in a non-production location and the team can name every field it intends to use.
Define field mapping, object types and markings
Write the mapping table that links each source field to a STIX object type and property, such as an IP address column to an IPv4 observable or a malware family column to a malware object. Decide the marking definition for each feed so that access follows the organization's data handling rules, and decide which relationships the mapper should create. Record the default confidence or score and the rule for expiry. The step is done when a reviewer who did not write the mapping can trace every source field to a target property, or to an explicit decision to drop it.
Run the mapper against a sample in a non-production instance
Load the mapping into a non-production OpenCTI instance and run it against the sample file or captured API response, using the CSV or JSON mapper configuration in the feed ingester. Keep the run small enough to read the output, and watch the worker queues and the platform logs for parse errors, skipped rows and rejected objects. Keep the run output so that a later change can be compared against it. The step is done when the run completes without unhandled errors and the skipped-row count matches what the team expected from the sample.
Check created objects, scores and duplicates
Open the objects the sample run created and compare them with the source rows. Check the object types, the markings, the scores and the expiry values, and confirm that relationships point to the intended entities. Run the same sample a second time and confirm that existing objects are updated rather than duplicated, and that known indicators are not multiplied by the mapping. Look for whitespace, case or format differences that split one indicator into several. The step is done when a sample of objects matches the mapping table and a second run creates no new duplicates.
Adjust the mapping and record the approved version
Fix the mapping where the checks found problems, such as a wrong object type, a score that is too high for a low-confidence source, or an identifier that needs normalizing. Rerun the sample after each change, and store the approved mapping file under version control with a note of the source version it was written for. Record who approved the mapping and which owner will review it when the source changes its format. The step is done when the final mapping passes the sample run with no new errors and the approval is recorded.
Enable the schedule and watch the first runs
Move the approved mapper into production, enable the schedule, and set the polling interval to match the source's update frequency. Watch the first several scheduled runs for errors, queue growth, volume spikes and objects that appear in unexpected places. Confirm with the source owner whether the volume matches what was agreed, and note any changes to the source format. The step is done when several consecutive scheduled runs complete cleanly and the team has a written owner for alerts and format changes.
Review feed quality after the first week
Once the feed has run for a full cycle of the source's updates, review the imported objects with analysts. Check whether expiry works as designed, whether false positives reach analysts, and whether the feed needs a narrower filter or a lower score. Update the mapping through the same approval record used for the sample run. The step is done when analysts have signed off on the feed's usefulness and the review outcome is recorded with the mapping version.
How a mapper turns rows and fields into STIX objects
A mapper is a set of rules that tells OpenCTI which column in a CSV file, or which path in a JSON document, becomes which STIX property or observable. Each source field is either copied into a property, such as a value that becomes the indicator pattern or observable value, or fixed to a constant you set in the mapper, such as the confidence, the labels or the author that every imported object should carry. Fixed values matter as much as copied ones: a blocklist that carries no score should not inherit a high confidence by default, and every object from one feed should share a source identity so analysts can trace where it came from. Before you build the mapping, list each source field, decide whether it is copied, fixed or ignored, and confirm the exact mapper keys in the CSV and JSON mapper documentation for your OpenCTI version, since the configuration syntax is version specific.
Indicators and observables are related but separate objects. An indicator carries a detection pattern and a validity window, while the observable it describes, such as an IP address, domain or file hash, is the thing actually seen. A mapper can create both and link them, which lets a single row answer two questions: what to detect and what was observed. Decide whether your feed should produce indicators at all. A raw IP list used for context may only need observables, and creating indicators for every row adds volume that later needs expiry and scoring. For rows that are missing a value or hold a malformed one, such as an invalid address or a blank hash, the safer default is to skip the row and log it, not to create an object with an empty field. Test a sample of bad rows on a staging instance and count what was skipped, so that a changed upstream format shows up as a failed run rather than a quiet drop in data.
Identifiers decide whether a re-import creates duplicates. OpenCTI generates STIX identifiers from object content and type, so if a mapper derives an identifier from a field that changes between exports, such as a timestamp or a description, each run produces new objects. Choose a stable source field, such as the indicator value plus its type or the vendor's own record ID, and test it by importing the same file twice and comparing object counts. Also confirm how the platform merges objects that share a name or value, because merging behavior determines whether two vendors describing the same actor produce one object or two. Record these decisions in the mapper notes, since a later change to the key field will look like a mass duplication event to whoever inherits the feed.
What to test before a mapper runs on a schedule
A CSV or JSON mapper that runs unattended can turn one bad source file into thousands of indicators in the graph within a single cycle. The six checks below catch mapping errors, count drift, stale scoring, duplicate growth, malformed rows and bad imports before the schedule is enabled, so each one has a clear pass condition.
Sample real rows with edge cases
Run the mapper against a captured sample of the live feed that includes the unusual rows: IPv6 addresses, URLs with query strings, internationalized domain names, empty columns and comment lines. Check each resulting STIX object field by field. A column that maps cleanly on common rows often breaks on the one malformed row that a blocklist publishes every week, so the sample must include those rows deliberately.
Reconcile object counts against the source
Compare the number of observables and indicators created with the number of data lines in the source, minus headers, comments and rejected rows. A large gap usually means a delimiter, quoting or skip-line setting is wrong. Record the expected count per run so that a sudden jump, such as a source that suddenly publishes ten times as many entries, is visible before it reaches analysts.
Confirm confidence and validity dates
Check that every indicator carries a confidence score, a valid-from date and a valid-until date, and that these values come from the mapping rather than the import time. Indicators without a valid-until date stay active indefinitely and can keep matching traffic long after the threat has moved on. Confirm the expiry window matches the source's own guidance before you schedule the run.
Test duplicate behavior on a second run
Run the same file twice and confirm that the second run updates existing objects instead of creating copies. Duplicates in the graph inflate counts, split relationships across records and make it harder to retire an indicator later. Also check that a changed row updates the existing object's dates and score, not only the first version of it.
Review rejected and malformed records
Find where the connector logs rows it could not parse or map, and confirm someone sees those logs. A silent rejection can hide an entire section of a feed, for example when a vendor changes a header name. Set an alert on the rejection rate so that a sudden rise is treated as a source change to investigate, not as normal noise.
Rehearse rollback of a bad import
Before the schedule runs, decide how you would remove everything one bad run created. Tag the objects with the feed name and run date, then test a bulk deletion on a staging instance. Without this step, a mapping error that marks benign infrastructure as malicious can persist for days, because removing the objects by hand is slow and error-prone.
Questions teams ask before importing CSV and JSON feeds
What drives the effort of building an OpenCTI CSV or JSON mapper?
Effort follows how far the source data is from STIX objects. A mapper that copies a blocklist column into an indicator pattern is small, while a vendor API that nests campaigns, actors, sightings and confidence values across several endpoints takes much more analysis. The main drivers are the number of object types each feed produces, how consistently fields are populated, whether the feed uses stable identifiers that allow updates instead of duplicates, how markings and author identities are assigned, and how many sample records the team needs to test edge cases. Ask any partner to break the estimate down by feed and by object type so you can see which mappings carry the work.
Can our in-house team build and maintain the mappers ourselves?
Yes, if someone on the team understands STIX 2 concepts such as indicators, observables, relationships and markings, and can read the OpenCTI mapper configuration. The work is mostly analysis and testing rather than deep platform engineering. What teams often underestimate is ongoing ownership: someone must watch for upstream format changes, review imports that fail or produce unexpected volume, and decide which fields become trusted intelligence. Before deciding, confirm that your team has a test instance, a named owner for each feed, and time in the schedule for the first test cycle.
How long does mapper work take for a set of feeds?
Duration depends mainly on feed count and format variety. One CSV blocklist with a fixed column layout is a short task, while several JSON APIs with pagination, nested objects and different authentication methods each need their own mapping, testing and review. Multiple feeds that share a format can reuse much of the same mapper logic, which shortens later work. No duration is set here because it depends on the feeds you select, their documentation and your review process. Ask for a written plan that lists each feed, its format, its object types and the test steps before any schedule is agreed.
What does the work need from our side before it starts?
Plan to supply a few things early. Sample exports or API responses that cover normal records and unusual ones, such as empty fields, multiple values in one cell and deprecated entries. Credentials and API access for each vendor source, handled through your secrets process. A test OpenCTI instance where imports can run without affecting production intelligence. Written approval of the TLP markings and author identity that each feed will carry, since these control who sees the data. Finally, name a reviewer who can confirm that sample imports look right to analysts.
How do we test a mapper before it runs on a schedule?
Run the mapper against a saved sample in a test instance first, then check the objects it creates in the OpenCTI interface and the GraphQL API. Look at object counts, missing fields, duplicate indicators, relationship direction, confidence and score values, and markings. Repeat with a second sample from a different day so changes in the feed show up. Only after the output matches what analysts expect should the connector or ingester run on a schedule, and the first scheduled runs should be watched closely for volume spikes. Document the expected results so the next person can repeat the check after changes.
What recurs after go-live, such as feed changes and platform upgrades?
Several things recur. Vendors change field names, add values or alter pagination, which can break a mapper without any error on the OpenCTI side. OpenCTI itself ships on a date-based version scheme: regular releases follow the pattern x.YYMMDD.z, and LTS releases follow x.YYMMDD.z-lts.n, with LTS lines receiving about one year of support according to the product life cycle documentation. Each platform upgrade should be followed by a regression run of the mappers in the test instance. Budget for periodic review of feed value, retirement of dead sources and review of markings as your sharing rules change.
Do we need Enterprise Edition for CSV and JSON feed imports?
The feed ingesters and mapper configuration are part of the platform you deploy, but some surrounding capabilities depend on your license. Since OpenCTI 7.260224.0, authentication strategies including SSO are an Enterprise Edition feature, and organization-based data segregation and playbooks are also listed there. Confirm with Filigran which features your planned setup needs before committing to a design, and check the Enterprise Edition documentation for current terms. Your team should also verify whether any feed's own terms restrict redistribution or internal sharing.
How a feed moves from source to OpenCTI
A CSV or JSON feed starts at the vendor or blocklist endpoint and is pulled by a scheduled ingester that applies a mapper to turn each row or record into STIX objects. The ingester hands those objects to the platform, which queues asynchronous writes on RabbitMQ for Python workers to consume. Workers write into the Elasticsearch or OpenSearch index that the analyst UI and GraphQL API read from. The test instance branch runs the same mapper on sample data before the schedule is switched on in production.
Feed flow from source through mapper, queued workers and index to analysts.
How DeployOpen scopes and delivers feed mappers
DeployOpen plans, builds and hands over CSV and JSON feed mappers for OpenCTI in infrastructure you control. Each engagement starts with a written scope that names the feeds, the target STIX object types and the schedule, and ends with a tested mapper your team can run and maintain.
How we scope
- Inventory each blocklist or vendor API, its format, update cadence and authentication method before any mapper is designed.
- Agree in writing which STIX object types, markings, scores and expiry rules each feed should produce in OpenCTI.
- Confirm how many feeds, which fields and which test cases are covered, so the quote follows directly from the written scope.
- Engagements are fixed-scope, with deliverables and timelines agreed before work starts. Ongoing support is available as a retainer.
How we build
- Write the CSV or JSON mapper against sample exports from each source, mapping columns or keys to indicators, observables and reports.
- Configure the built-in feed ingesters and their scheduling in the OpenCTI platform on the client's own infrastructure.
- Run each mapper against sample data and review the objects it creates, including duplicates, empty fields and malformed rows.
- Test the mapper before it runs on a schedule, checking behavior when a feed is late, empty or returns an unexpected format.
How we hand over
- Deliver the mapper files, feed configuration and a record of the scope, test cases and results for your team to review.
- Document how to add a new feed, change a mapping and roll back a change, written for the analysts and engineers who will run it.
- Walk your platform and security teams through the schedule, error handling and where ingestion results appear in OpenCTI.
- Agree who owns each mapper after handover, so changes to a source format have a named owner on your side.
How we support
- Review mappers when a source changes its columns, field names or API version, and retest them before the schedule resumes.
- Cover platform upgrades that affect ingesters or mapper behavior, confirming the change against your written scope.
- Offer ongoing support, upgrades and continuous testing as a retainer, scoped separately from the original build.
- Ask any provider, including DeployOpen, to confirm which OpenCTI version and ingester settings the mappers were tested against.

