How to connect Microsoft Defender with ChatGPT

Connect ChatGPT to Microsoft Defender MCP. List high-severity microsoft defender incidents, submit a microsoft defender threat sample, and more using natural language, with authentication handled for you.

Microsoft Defender logoMicrosoft Defender
Oauth2S2s Oauth2

Microsoft Defender is Microsoft's cloud security service for detecting and investigating cyber threats. It provides unified visibility into alerts, incidents, devices, vulnerabilities, and threat intelligence.

89 Tools

How to connect Microsoft Defender MCP with ChatGPT

ChatGPT can take action across your apps and files, stay with a project for hours, and turn a goal into finished materials like sheets, slides, and docs, not just answers.

In this guide, I will explain the easiest and most secure way to connect your Microsoft Defender account to ChatGPT via Composio Connect, so it can investigate alerts, manage incidents, query hunting results, review secure scores, and submit threats through natural language commands without ever putting your account credentials at risk.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Microsoft Defender with

Why use Composio over default connectors?

  • Apps with read and write access. Default connectors mostly can read your data. Composio's Microsoft Defender integration lets ChatGPT take actions like creating drafts, sending updates, labeling records, and more.
  • 1,700+ SaaS toolkits out of the box. Composio gives you instant access to a vast catalog of pre-built connectors, from Gmail and Slack to Notion, Linear, and Salesforce.
  • One MCP server for every app. Connect any of your applications on demand through a single endpoint, rather than juggling a separate server for each app.
  • Smart, context-aware tool loading. Unlike traditional MCP servers that dump every available tool into the LLM context window, Composio searches for and loads only the tools relevant to the task at hand.
  • Cross-app automation. Chain actions across multiple apps in a single run - fetch a thread, summarize it in Notion, and post highlights to Slack without leaving the conversation.

Prerequisites

  • A ChatGPT account. We will use the ChatGPT desktop app, and the steps are the same on the web.
  • Access to the Microsoft Defender workspace you want to connect.
  • Composio plugin.

Note: Composio connects through OAuth. You will be asked to sign in and approve specific permissions. Review the permission screen carefully if you are using a work account.

Step-by-step: Connect Microsoft Defender to ChatGPT

1. Install the Composio plugin

Click the button. ChatGPT opens the Composio plugin page. Click Install plugin.

Install in ChatGPT

Composio plugin page in ChatGPT with the Install plugin button

You can also find it inside ChatGPT: go to Settings, open Plugins, search the marketplace for Composio, and click Install plugin.

2. Authenticate

After you install, ChatGPT asks you to authenticate with Composio. Log in and click Allow access to authorize ChatGPT to use your Composio account.

Composio login and Allow access screen for ChatGPT

3. Start using Composio

That is it. Composio tools are now available in ChatGPT. Type @Composio followed by your request, for example @Composio find unread Microsoft Defender messages and summarize them, and it will run the actions you authorize. On first use it asks you to authorize Microsoft Defender.

Option 2: Add Composio as an MCP server

If you cannot use the plugin marketplace, add Composio as a custom MCP server instead.

1. Open the MCP settings

In ChatGPT, go to Settings and open the Plugins section. Inside the Plugins page, click the MCP tab.

ChatGPT settings showing the Plugins page with the MCP tab selected

2. Add the server

Click Add server. In the Name field enter Composio, for Type select Streamable HTTP, and in the URL field paste the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
ChatGPT Add server dialog with the name Composio, type Streamable HTTP, and the Composio MCP URL

Then click Save. The Composio server now appears in your MCP plugins list.

ChatGPT Plugins page showing the Composio MCP server added to the list

3. Authenticate

Click Authenticate on the Composio entry, log in via Composio, and click Allow access. Composio tools are then available in ChatGPT the same way as with the plugin.

What you can do after connecting Microsoft Defender

  • List high-severity Microsoft Defender incidents
  • Submit a Microsoft Defender threat sample
  • Check your Microsoft Defender secure score

Security + privacy notes (important)

  • Use least-privilege access: Only grant permissions you actually need.
  • Review OAuth permissions before approving: Make sure requested scopes match what you expect Composio and ChatGPT to do.
  • Keep write actions human-reviewed: For actions like sending messages, creating labels, or editing drafts, keep manual confirmation enabled.
  • Be careful with sensitive data: Avoid using this setup with highly sensitive information unless allowed by your personal, company, or client policies.
TOOLS

Supported Tools

Every Microsoft Defender action and event your agent gets out of the box.

Add Alert Comment

Append a comment to a Microsoft Defender security alert.

Add Incident Comment

Append an analyst comment to a Microsoft Defender incident; comments cannot be removed by this action.

Create Email Submission Policy

Create an email threat-submission policy with the supplied settings.

Create Simulation

Create an attack simulation using payload, login-page, and landing-page resource IDs; acceptance is asynchronous.

Delete Email Submission Policy

Delete an email threat-submission policy by its Microsoft Graph identifier.

Delete Simulation

Delete an attack simulation campaign.

Get Alert

Retrieve the documented properties of a Microsoft Defender security alert.

Get Article Indicator

Read a Microsoft Defender Threat Intelligence article indicator.

Get Email Submission Policy

Get one email threat-submission policy by its Microsoft Graph identifier.

Get Host Component

Read a web component observed on a threat-intelligence host.

Get Host Cookie

Read a cookie observed on a Microsoft Defender Threat Intelligence host.

Get Host Pair

Read a parent-child host relationship observed by Microsoft Defender Threat Intelligence.

Get Host Port

Read a port observed on a Microsoft Defender Threat Intelligence host.

Get Host Reputation

Get the reputation properties and relationships for a threat-intelligence host.

Get Host Tracker

Read an internet tracker observed on a Microsoft Defender Threat Intelligence host.

Get Host WHOIS

Get the WHOIS record associated with a threat-intelligence host.

Get Incident

Retrieve a Microsoft Defender incident by its identifier.

Get Intelligence Profile

Get a Microsoft Defender threat-intelligence profile by identifier.

Get Intelligence Profile Indicator

Get a Microsoft Defender intelligence profile indicator by identifier.

Get Landing Page

Get a landing page associated with an attack simulation campaign.

Get Login Page

Get a login page associated with an attack simulation campaign.

Get Passive DNS Record

Get a Microsoft Defender passive DNS record by identifier.

Get Payload

Get an attack simulation campaign payload.

Get Payload Detail

Get detailed content for an attack simulation campaign payload.

Get Secure Score

Retrieve a Microsoft secure score by its provider-generated identifier.

Get Secure Score Control Profile

Retrieve a Microsoft secure score control profile by its identifier.

Get Simulation

Get an attack simulation campaign.

Get Simulation Automation

Get an attack simulation automation.

Get Simulation Landing Page

Get the landing page associated with an attack simulation campaign.

Get Simulation Login Page

Get the login page associated with an attack simulation campaign.

Get Simulation Operation

Get an attack simulation operation to track a long-running request.

Get Simulation Payload

Get the payload associated with an attack simulation campaign.

Get Simulation Report Overview

Get an overview of an attack simulation and training campaign.

Get Subdomain

Get a Microsoft Defender threat-intelligence subdomain by identifier.

Get Threat Article

Read a Microsoft Defender Threat Intelligence article by ID.

Get Threat Host

Read a hostname or IP address detected by Microsoft Defender Threat Intelligence.

Get Threat Submission

Get one email, file, or URL threat submission by its Microsoft Graph identifier.

Get Training

Get an attack simulation training resource.

Get Training Language Detail

Get localized language details for an attack simulation training.

Get Vulnerability

Get a Microsoft Defender threat-intelligence vulnerability by identifier.

Get Vulnerability Component

Get a component associated with a Microsoft Defender vulnerability.

Get WHOIS History Record

Get a Microsoft Defender WHOIS history record by identifier.

Get WHOIS Record

Get a Microsoft Defender WHOIS record by identifier.

List Alerts

Get a page of Microsoft Defender security alerts and their properties.

List Article Indicators

List indicators of threat or compromise associated with a threat article.

List Attack Simulation Repeat Offenders

Get one page of tenant users who yielded to attacks more than once in attack simulation campaigns.

List Email Submission Policies

Get the email threat-submission policies and their current settings.

List End User Notifications

Get one page of attack simulation end-user notification templates.

List Host Components

List web components observed on a Microsoft Defender Threat Intelligence host.

List Host Cookies

List cookies observed on a Microsoft Defender Threat Intelligence host.

List Host Pairs

List all, child, or parent host-pair relationships for a threat-intelligence host.

List Host Passive DNS

List passive-DNS records associated with a Microsoft Defender Threat Intelligence host.

List Host Ports

Get one page of ports associated with a Microsoft Defender threat-intelligence host.

List Host Reverse Passive DNS

Get one page of passive DNS records that resolve to the specified host.

List Host Subdomains

Get one page of subdomain resources associated with a threat-intelligence host.

List Host Trackers

Get one page of trackers associated with a threat-intelligence host.

List Host WHOIS History

Get one page of historical WHOIS records associated with a host.

List Incidents

Get one page of Microsoft Defender incidents and an opaque continuation cursor.

List Intelligence Profile Indicators

Get one page of indicators associated with a Microsoft Defender intelligence profile.

List Intelligence Profiles

Get one page of Microsoft Defender threat-intelligence profiles.

List Landing Pages

Get one page of landing pages for attack simulation campaigns.

List Login Pages

Get one page of login pages for attack simulation campaigns.

List Payloads

Get one page of payloads for attack simulation campaigns.

List Secure Score Control Profiles

Return one page of Microsoft secure score control profiles and an opaque continuation cursor.

List Secure Scores

Return one page of daily Microsoft secure scores and an opaque continuation cursor.

List Simulation Automation Runs

Get one page of runs for an attack simulation automation.

List Simulation Automations

Get one page of attack simulation automations.

List Simulations

Get one page of attack simulation campaigns.

List Simulation User Coverage

Get one page of attack simulation coverage records for tenant users.

List Simulation Users

List users and their recorded actions in an attack simulation campaign.

List Threat Articles

List Microsoft Defender Threat Intelligence articles one page at a time.

List Threat Submissions

List one page of email, file, or URL threat submissions visible to the connected account.

List Trainings

Get one page of attack simulation training resources.

List Training User Coverage

Get one page of training coverage records for tenant users in attack simulation campaigns.

List Vulnerability Components

Get one page of components associated with a Microsoft Defender vulnerability.

List WHOIS Record History

Get one page of historical records for a Microsoft Defender WHOIS record.

List WHOIS Records

Get one page of WHOIS records from Microsoft Defender threat intelligence.

Merge Incidents

Merge at least two Microsoft Defender incidents into one incident.

Move Alerts

Move one or more Microsoft Defender alerts to a new or existing incident.

Review Email Threat Submission

Record the administrator's review category for an email threat submission.

Run Hunting Query

Run a Kusto Query Language query against Microsoft Defender advanced-hunting data for the requested time span or workspace.

Submit Email Threat

Submit email content or a Microsoft Graph message URL for security analysis; this starts an external review workflow and cannot be undone here.

Submit File Threat

Submit base64 file content for security analysis; this starts an external review workflow and cannot be undone here.

Submit URL Threat

Submit a URL for security analysis; this starts an external review workflow and cannot be undone here.

Update Alert

Update one or more mutable properties of a Microsoft Defender security alert.

Update Email Submission Policy

Update one or more settings on an email threat-submission policy.

Update Incident

Update one or more editable properties of a Microsoft Defender incident.

Update Secure Score Control Profile

Update tenant state, assignment, comments, and required vendor information for a Microsoft secure score control profile.

Update Simulation

Update a draft attack simulation, optionally binding a payload by resource ID; acceptance does not mean completion.

FAQ

Frequently asked questions

Start with Microsoft Defender.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Microsoft Defender tool your agent needs.Free to start.

Start building