MISP and Microsoft Defender indicator export

How a MISP to Microsoft Defender integration moves indicators through the documented export route, what the app registration needs, and where teams usually get it wrong.

On this page

How MISP indicator export to Microsoft Defender works

A SOC that curates indicators in MISP and wants them enforced in Microsoft Defender has two documented routes: a sample export script described in the MISP user guide, or the MISP2Defender companion used by the misp-modules action module. Both target Microsoft Defender ATP and push indicators through the Microsoft security APIs, so the indicators leave MISP as an outbound action rather than being pulled by Defender. The MISP user guide's External connectors page describes the sample script, and the misp-modules README covers the action module and its dependency on MISP2Defender. Before choosing between them, confirm which route your MISP version and misp-modules release support, since the action module needs the companion installed alongside it.

Exact API permissions, endpoints, request bodies and field names must be confirmed against current Microsoft documentation and the MISP2Defender project before any build starts. Treat the Entra app registration, the application permissions granted to it, and the admin consent step as the first items to pin down, because they determine which indicator types Defender will accept and who must approve them. Ask the Microsoft tenant owner which Defender licensing and API access apply, and record the exact endpoint each indicator type maps to. Vendor documentation changes, so the version of the API and companion you test against should be the version you run in production.

The main design decision is who owns the credential and the export logic. A script run from a scheduled job on infrastructure you control keeps the secret and the schedule under your team's change process, while the action module ties the export to MISP's own workflow. Plan for failed pushes, rejected indicators and expiry handling in both cases, and make sure the MISP API key used for the export has only the access it needs. Verify the result in a test tenant by confirming that a known published indicator appears in Defender with the expected action and expiry, before enabling the export against production indicators.

What a MISP to Defender integration needs before build

The export depends on four things lining up: a MISP instance with the action module reachable, a Microsoft Entra tenant with Defender access, an app registration with the right permissions, and a MISP key scoped to the export user. Confirm each one before anyone writes a line of configuration, because most delays come from access requests rather than from the export itself.

MISP and misp-modules running

The export runs as an action module inside the misp-modules service, so that service must be deployed, reachable from the MISP instance, and running a version that includes the Defender action module. Confirm the module's presence and its exact requirements against the misp-modules README before planning the host. Check that the service stays on a separate host or container from the public MISP web interface, and record which MISP 2.5 release the instance runs so you can match it to the companion's documented behavior.

misp-modules README

Companion tool and action module

The action module requires the MISP2Defender companion, so the companion is a build dependency and not an optional extra. Decide who owns installing, pinning and updating it, and whether it follows the same change control as MISP itself. Ask the companion's maintainers which Defender APIs it calls and which MISP attribute fields it reads, because those answers determine the permissions you grant in the next steps.

MISP connector docs

Microsoft Entra tenant and Defender access

Someone with the right administrative rights must confirm which Entra tenant and which Defender environment will receive indicators, and that the account requesting access is authorized to approve application permissions. Many organizations split security tooling across tenants or regions, so verify the target tenant before creating anything. Ask your Defender administrators who owns indicator policy in that tenant, since indicators pushed from MISP will be enforced by that policy.

App registration and API permissions

The Entra app registration supplies the client ID and secret or certificate the companion uses to call Microsoft security APIs. Grant only the application permissions the companion documents, and record each one with the reason it is needed. Secrets and certificates have expiry dates, so store them in your secrets manager, assign an owner, and set a renewal reminder. Admin consent for application permissions is a separate approval step that often takes the longest.

Network paths to Microsoft endpoints

The misp-modules host must reach the Entra sign-in endpoints and the Defender API endpoints over outbound HTTPS. Check whether egress passes through a proxy, a firewall with allow lists, or a TLS inspection device, since any of these can break token acquisition in ways that look like authentication errors. Test from the actual host, not from a workstation, and document the required destinations so the network team can review them.

Scoped MISP API key for export

Create a dedicated MISP user for the export with a role that can read the events and attributes being exported and nothing more, then generate an API key for that user. Do not reuse an administrator key or a personal analyst key. Restrict which attributes the export user can see by distribution and sharing group, so indicators from communities you have not agreed to push do not leave the instance. Record who holds the key and where it is stored.

Lab or production for first indicators

Decide before build whether the first run writes to a lab tenant, a test Defender scope, or production. A lab target lets you check which attributes are accepted, how expiry behaves and whether duplicate or stale indicators appear, without blocking real traffic. If production is the goal, agree a rollback path that removes indicators created by the export, and name the person who can approve that change during an incident.

How indicators flow from MISP to Defender

The flow starts with an analyst who publishes or flags attributes in MISP. An export path, either the sample script documented in the MISP user guide or the misp-modules action module with MISP2Defender, reads those attributes through the MISP API and applies the published and IDS-flagged filter. The export then calls the Microsoft security API using app registration credentials. Check the trust boundaries at each hand-off: the MISP network zone, the misp-modules host, and the Microsoft cloud. Confirm which credentials sit on which host and who can read them.

Indicator export path from MISP to Defender across three trust zones.

Choosing between the sample script and the action module

The first decision is which of the two documented routes fits your operating model. The MISP user guide describes a sample script that exports indicators to either Microsoft Sentinel or Microsoft Defender ATP, which suits a scheduled or manually run export that your team starts and watches. The misp-modules README describes a separate action module that exports to Sentinel or Defender but requires the MISP2Defender companion to be installed alongside it. That dependency is the main trade-off: the action module ties the push to MISP's action workflow, while the script keeps the export as a job you can read, schedule and rerun on its own. Before committing, confirm with the MISP and misp-modules documentation which attribute handling, batching and error reporting each route actually provides, rather than assuming the two behave the same.

The companion matters for ownership. Ask who builds, releases and maintains MISP2Defender, how often it is updated, and whether its current version is documented as compatible with the MISP and misp-modules releases you run. Each MISP upgrade, such as moving within the MISP 2.5 line, changes the environment the companion depends on, so the team needs a test step that runs the export against a staging instance before production. Record which versions were tested together, and treat a companion without a clear maintenance path as a risk to plan for. If the script route is chosen, the same question applies to whatever sample code your team adapts, because it becomes your code to maintain once copied.

Finally, decide whether indicators should be pushed when an analyst acts or on a timer. An action-triggered push sends an indicator as soon as it is handled, which can be useful for fast containment but can also multiply failed requests and make retries harder to audit. A scheduled run gives you a fixed window, one log of what was sent, and a simple place to apply expiry and cleanup, but indicators can wait until the next run. Write the choice into your runbook with the expected lag, the owner of the job, and what happens when Defender rejects a batch.

Configuring MISP2Defender and the Defender app registration

This sequence connects a MISP instance to Microsoft Defender through an app registration in Microsoft Entra, a MISP2Defender companion, and the misp-modules action module, and ends with a dry run that confirms indicators reach a test scope before any production push.

  1. Register the app in Microsoft Entra

    A Microsoft Entra administrator creates an app registration for the integration in the tenant that holds your Defender instance. The administrator then grants the application permissions the MISP2Defender companion needs to submit indicators through the Microsoft security APIs, and records the application (client) ID and directory (tenant) ID. Confirm the exact permission names and the admin consent steps against Microsoft's current documentation for the Defender APIs, since these change over time. The step is complete when the admin consent status shows as granted for every permission and the token request for the app succeeds from a test host.

  2. Store the client secret or certificate securely

    The integration owner generates a client secret or uploads a certificate to the app registration, then places it in your secrets store, such as a vault your platform team already operates. The MISP host should read the credential at runtime rather than from a configuration file committed to source control or left in shell history. Record the secret's expiry date in your credential calendar, because an expired secret stops every push without an obvious error in MISP. The step is complete when the credential is retrievable by the service account on the MISP host and not by general users.

  3. Install and configure MISP2Defender

    The platform engineer installs the MISP2Defender companion on the host that runs misp-modules, following the project's installation notes for that package. The engineer sets the tenant identifier, the application identifier and the path or reference to the secret retrieved in the previous step. Keep the configuration limited to the identifiers the companion documents, and confirm the supported input method in the MISP user guide's External connectors section. The step is complete when the companion starts without configuration errors and logs a successful authentication attempt against the tenant.

  4. Enable the Defender action module in misp-modules

    The MISP administrator enables the action module that exports to Microsoft Sentinel or Defender in the misp-modules service, which the misp-modules README describes as requiring MISP2Defender for the Defender route. Restart misp-modules after the change so the module loads, then confirm that the module appears in MISP's module list with the action type. Check that the MISP host can reach the misp-modules service on its configured address and that the action is available on the event and attribute pages. The step is complete when MISP lists the Defender action as enabled and the module responds to a test call.

  5. Set the MISP API key and filter settings

    The MISP administrator creates a dedicated automation user with the smallest role that allows reading events and attributes, then generates an API key for the integration and stores it with the other integration secrets. Set the filters so only attributes that are published and flagged for IDS are eligible for export, matching the scope your detection team has approved. Review the attribute types included in the filter, since not every type maps cleanly to a Defender indicator. The step is complete when a test query made with the key returns only published, IDS-flagged attributes and no events outside the agreed scope.

  6. Run a dry run against a test scope

    The detection engineer runs the export in a test scope, using a small set of events tagged for testing, and reviews the indicators that would be sent before any production push. Confirm that the test indicators appear in the Defender console under the expected indicator list, with the expected type, action and expiry settings. Remove the test indicators afterwards and verify that the removal is reflected in the console. The step is complete when the test indicators appear and clear as expected, and the team signs off on the production filter in writing.

Which MISP attributes and flags decide what reaches Defender

This table maps the MISP attribute and event fields that determine whether an indicator is exported to Microsoft Defender, and the team decision each one drives. Read each row as a question to settle before the export job runs, then confirm the supported indicator types and field names in the Defender documentation and the companion tool's README. The main takeaway is that publish state, IDS flag and distribution should be agreed with the sharing owners, not left to the export script defaults.

Field in MISPDecision it drivesWhat to confirm in the companion documentation
Publish stateWhether an attribute is eligible at all, given that unpublished work-in-progress data should not reach production blockingWhether the export filter reads only published attributes and how it treats later edits
IDS flagWhether the attribute is a candidate for blocking or only for alerting in DefenderWhether the companion tool filters on the IDS flag and what it does when the flag is off
Attribute typeWhich indicator types are mapped to Defender, such as file hashes, IP addresses, domains or URLsThe exact indicator types Defender accepts and which MISP types the companion maps to each
Distribution levelWhether the organization is allowed to push a shared indicator into its own security toolingHow the export handles community-scoped or sharing-group data and whether those levels are excluded by default
TagsWhich events or attributes are selected, such as a sector tag or a TLP marking, to limit scopeWhether tag filters are supported by the export route and how tag names must be written
Indicator expiry or decayHow long a pushed indicator stays active in Defender before it is removed or refreshedWhether Defender supports an expiration time on indicators and how the export sets it
Event or attribute ageWhich older intelligence is re-sent and which is left out to avoid stale blockingWhether the export has a time window or re-sync behavior and how deletions in MISP are reflected

Securing the app registration, the API key and the export path

The Defender export path connects three trust boundaries: the Microsoft tenant, the MISP instance and the export script or module between them. Each one needs its own access limits, secret handling and logging, and the filter settings decide what leaves the organization at all. The cards below cover those controls in the order a reviewer would check them.

Least-privilege app permissions

Grant the app registration only the Microsoft security API permissions needed to write indicators, and no broader directory or tenant roles. Confirm in the Entra admin center which permissions the export route requires, since the sample script and the action module may request different ones. Record who approved each permission and review the list after every change to the export route. Remove permissions that the chosen route does not use.

MISP connector docs

Secret storage and rotation

Keep the app registration client secret and the MISP API key out of the MISP database, configuration files in the web root and shell history. Store them in a secrets manager your organization already operates, and inject them into the export job at runtime. Set an expiry on every secret, record the owner and the rotation date, and test the rotation in a non-production tenant before it is needed in production.

Dedicated MISP API key scope

Create a separate MISP user and API key for the export job rather than reusing an analyst's key. Give that user the narrowest role that can read the events the export needs, with no permission to publish, edit or administer. Confirm in your MISP version which role settings control read access to events and attributes, because the role names and their fields should be checked against your own instance.

Distribution filtering before export

Limit the export to attributes that are published, flagged for IDS use and carry a distribution level your organization accepts for external use. Attributes shared only inside a sharing group or with a single partner should not reach Defender unless that is the intent. Filter on the MISP side, not only in the script, so a later change to the script cannot widen what leaves the instance.

Logging on both sides

Log each export run with its start time, the filter values used, the number of indicators sent and any rejected records. Keep the matching record in the Microsoft tenant, where the app's sign-in and API activity can be reviewed. Compare the two logs during routine checks to confirm that the counts match, and alert when a run sends an unexpected volume or fails repeatedly.

Restricting changes to filter settings

The filter settings decide what data leaves the organization, so limit who can edit them to a named group, and require a second reviewer for changes. Track edits to the export configuration in version control or the change system your team uses. Pair these controls with the general MISP hardening guidance for the instance itself, including roles, MFA and logging, because the export controls depend on that baseline.

misp-modules README

Testing the export before indicators reach production

The lab stage uses a Microsoft test tenant or a non-production Defender configuration that cannot affect live detections. Build a small set of sample events in a non-production MISP instance, tagged so they are easy to find and remove later. The goal is to confirm the full lifecycle of each indicator, not only that one indicator arrives.

  • Published attribute appears: Publish a sample event with one attribute of each indicator type you plan to send, such as a domain, a file hash and an IP address, and confirm each one is created in Defender with the expected type and action.
  • Unpublished attribute stays out: Add an unpublished attribute to the same event and confirm it never reaches the tenant after a full export run.
  • Changed attribute updates: Edit a value or the IDS flag on a published attribute, run the export again and confirm the existing indicator is updated rather than duplicated.
  • Error path produces a readable log: Submit a deliberately invalid value, or use credentials with a missing permission, and confirm the failure appears in the log with enough detail to identify the attribute and the reason.

Record the results against each case so the production rollout has a documented baseline. Confirm with your Microsoft tenant administrators how expiry and deletion are represented before you rely on either behavior.

Common failures in MISP to Defender exports and how to fix them

This table pairs common symptoms in a MISP to Microsoft Defender indicator export with their likely causes and the configuration checks that confirm or fix them. Work down the rows in order, since authentication and permission problems often hide behind empty exports. Vendor logs remain the final confirmation for each cause.

SymptomLikely causeFix and checks
Authentication failures when the export runsWrong Microsoft Entra tenant ID, wrong application (client) ID, or a client secret that has expiredCompare tenant and application IDs against the app registration, then create a new client secret and update the configuration. Confirm the sign-in failure details in Microsoft Entra sign-in logs.
Requests rejected after an app changeRequired API permissions were removed, added without admin consent, or assigned to a different appRecheck the application permissions in the app registration, confirm admin consent is granted, and retest with a single indicator. Confirm the denial reason in the Defender API audit or service logs.
Action module never firesmisp-modules is not running or not reachable from MISP, or the MISP2Defender companion is not installed or configuredConfirm the misp-modules service is up and that the Defender action module appears as enabled in MISP. Check that MISP2Defender is installed and its settings match the tenant. Review misp-modules and MISP logs for module load errors.
Export runs but returns no indicatorsFilters exclude attributes, such as requiring IDS-flagged attributes when none are flagged, or requiring published events when the events are still unpublishedReview the filter settings for IDS flag and published status against a known event. Test with an event you know meets every condition, then widen filters one at a time. Confirm the count of attributes passed to the export in the MISP job output.
Indicators missing in Defender although the export succeededOutbound network rules block the connection to Microsoft endpoints, or a proxy strips or rejects the requestTest outbound HTTPS from the MISP host and the misp-modules host to Microsoft login and Defender API endpoints. Review firewall, proxy and DNS logs. Confirm acceptance or rejection codes in the Defender portal or API responses.
Duplicate or stale indicators after updatesRe-running exports creates new entries instead of updating existing ones, or expired or revoked attributes stay in Defender after MISP changesCheck whether the export sets expiry and update behavior for each indicator and whether revoked or unpublished attributes trigger removal. Compare Defender indicator lists with the MISP event after a test run. Confirm expiry handling with the current MISP2Defender documentation.

What does a MISP to Defender integration cost and take?

What drives the effort of a MISP to Defender integration?

The main drivers are the Microsoft tenant's governance, the design of your indicator filters, the scope of testing, and the number of environments. A tenant with strict app registration rules, separate admin roles and change control takes more coordination than a lab tenant. Filter design matters because it decides which attributes are sent, which types are supported and how indicators expire. Testing scope rises with the number of MISP instances, production and non-production environments, and the detection workflows that depend on the exported indicators. Ask any partner to show how each of these items is counted in a written scope.

What is one-time work and what recurs after go-live?

The initial build covers app registration, companion configuration, filter design, a test run and a handover. Recurring work includes maintaining the MISP2Defender companion, rotating the client secret or certificate used for Microsoft API access, and reviewing the filter as your indicator policy changes. Upgrades also recur: MISP itself, misp-modules and the Microsoft security APIs can each change, and each change needs a retest of the export path. Confirm with your partner whether these recurring items are covered by a retainer or billed as separate work.

Can our own team build the MISP to Defender integration alone?

A team with working MISP administration, Microsoft Entra and Defender experience, and time for testing can build it in-house. The documented route is a sample script in the MISP user guide, plus a companion for the misp-modules action module. The gaps usually sit in tenant governance, secret handling, filter policy and verification that indicators land with the intended expiry and action. If those skills are thin, a fixed-scope partner engagement can cover design and build while your team keeps operational ownership. Compare both options against the same written requirements.

What does our team need to provide for the engagement?

You need tenant administrator access, or a named administrator who can approve and grant the app registration permissions, and MISP administrator access to the instance that will export. You also need a defined indicator policy that states which event types, attribute types, distribution levels and IDS flags may leave MISP, and who approves changes to it. Provide a test tenant or a safe window in production, plus named contacts for the SOC or detection team who will consume the indicators. Missing policy decisions are the most common cause of delay in this kind of work.

How is a fixed-scope integration engagement quoted?

DeployOpen agrees scope, deliverables and timelines in writing before work starts, and the quote follows from that written scope. Expect the scope to list the environments covered, the filter rules to be implemented, the testing performed, the documentation delivered and the handover items. Ask for each item to be priced or listed separately, so you can see what is one-time and what is a retainer. DeployOpen does not publish a price list, so compare quotes on the same scope definition rather than on headline figures.

Which security controls should we expect in the integration?

Expect the Microsoft app registration to use the least permissions needed for indicator submission, with a client secret or certificate stored in a managed secret store rather than in scripts. The MISP API key used by the export should belong to a dedicated account with limited role access and a rotation schedule. Logging should record exports and failures on both sides. Confirm the exact permission names and the Defender API behavior against current Microsoft documentation during design, because those details change.

What should we confirm with the vendor before budgeting?

Confirm the current MISP release line you will run, the misp-modules version that carries the action module, and the companion version that supports your Defender setup. Ask Microsoft's current documentation which API endpoints and permissions apply to your tenant and license. Confirm whether your Defender deployment and licensing support the indicator features you need. Treat these as open items until they are checked against your environment and the sources cited in the topic.

How DeployOpen scopes and delivers the Defender export

DeployOpen plans and implements the MISP to Microsoft Defender indicator export inside your own infrastructure, starting from a written scope that names the attribute types, filters and tenant access involved. Each step is documented so your security and compliance teams can review what leaves MISP and how it reaches Defender.

How we scope

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • We confirm which MISP instance, events and attribute types should feed Defender, and which must stay internal.
  • We record the Microsoft tenant, app registration and API permissions the export will need before any build begins.
  • We agree how published and IDS-flagged filtering will be defined, reviewed and changed over time.

How we build

  • We deploy or configure the export route for your environment, using the documented MISP and misp-modules components.
  • We set up MISP2Defender or the action module path that your version of MISP supports, and test it on non-production data first.
  • We check that indicator expiry, duplicate handling and error logging behave as the written design says.
  • We test the filters against sample events so that unpublished or unflagged attributes do not reach Defender.

How we hand over

  • You receive configuration documentation covering the export route, filters, credentials and scheduled jobs.
  • Runbooks describe how to rotate app secrets, adjust filters and diagnose a failed push.
  • We walk your team through the test results so they can repeat the checks after handover.
  • Evidence for your security and compliance reviews is delivered alongside the working integration.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover MISP version changes, misp-modules updates and changes to Microsoft API requirements.
  • Ask for a quote that separates the one-time build from recurring support, so you can compare it with running the export in-house.

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.