Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
1ac93de
feat: initial commit
jame2O May 13, 2026
44dab77
feat: basic test button
jame2O May 14, 2026
46cf8de
feat: Alerts data stream
jame2O May 14, 2026
03c6f1c
chore: add none timeframe to defender
jame2O May 15, 2026
9f5145f
feat: graph plugin
jame2O Jun 1, 2026
5ac42fb
chore: delete old plugin
jame2O Jun 1, 2026
6e0c295
chore: add manual config apply to hunting query
jame2O Jun 1, 2026
1063f37
chore: manual config apply for alerts and incidents
jame2O Jun 2, 2026
284da4c
chore: rename Defender Device source type to device
jame2O Jun 2, 2026
6b97fb0
feat: update device status OOB dash
jame2O Jun 2, 2026
9b0ff1b
chore: update metadata
jame2O Jun 3, 2026
ab26377
fix: update 'New' Status val
jame2O Jun 3, 2026
936311c
chore: update alerts metadata
jame2O Jun 3, 2026
23c954a
chore: update devices metadata
jame2O Jun 3, 2026
9da3a2b
fix: hide undefined columns in meta devices
jame2O Jun 3, 2026
b86e2df
chore: update timeframe options for incidents and alerts
jame2O Jun 3, 2026
e258150
fix: remove bad options
jame2O Jun 3, 2026
c3a730d
chore: move timeframe fields to timeframe tab
jame2O Jun 3, 2026
655b37a
chore: add recommendations metadata
jame2O Jun 3, 2026
c7cbf84
chore: add SSH metadata
jame2O Jun 3, 2026
92bcf5e
Update plugins/MicrosoftDefender/v1/configValidation.json
jame2O Jun 3, 2026
cb761ec
Update plugins/MicrosoftDefender/v1/configValidation.json
jame2O Jun 3, 2026
abb6586
chore: remove redundant config
jame2O Jun 4, 2026
cb4d97e
fix: remove custom col for ExposureLevel
jame2O Jun 4, 2026
56f8d4a
fix: fixes for recommendations
jame2O Jun 4, 2026
4ac539e
chore: re-enable timeframes for recommendations
jame2O Jun 4, 2026
dc13551
fix: some things for vulns, recomms
jame2O Jun 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions plugins/MicrosoftDefender/v1/configValidation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"steps": [
{
"displayName": "API Access",
"dataStream": {
"name": "validation"
},
"success": "Successfully connected to Endpoint",
"error": "Cannot access the Endpoint API - check your client ID, secret and permissions.",
"required": true
}
]
}
9 changes: 9 additions & 0 deletions plugins/MicrosoftDefender/v1/custom_types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"name": "device",
"sourceType": "device",
"icon": "server",
"singular": "Device",
"plural": "Devices"
}
]
83 changes: 83 additions & 0 deletions plugins/MicrosoftDefender/v1/dataStreams/Vulnerabilities.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"name": "Vulnerabilities",
"displayName": "Vulnerabilities",
"baseDataSourceName": "httpRequestScoped",
"config": {
"httpMethod": "post",
"errorHandling": {
"type": "default"
},
"paging": {
"mode": "none"
},
"expandInnerObjects": true,
"endpointPath": "runHuntingQuery",
"postBody": {
"Query": "DeviceTvmSoftwareVulnerabilities | where DeviceId in ({{objects.map(o => {return `\"${o.deviceid}\"`}).join(\",\")}})",
"Timespan": "{{timeframe.enum != \"none\" ? `${timeframe.start}/${timeframe.end}` : \"\" }}"
},
"pathToData": "results",
"getArgs": [],
"headers": []
},
"metadata": [
{
"name": "CveGuide",
"displayName": "Cve Id",
"valueExpression": "{{ $['CveId'] ? `https://msrc.microsoft.com/update-guide/vulnerability/${$['CveId']}` : '' }}",
"shape": [
"url",
{
"label": "{{column.CveId}}"
}
],
"computed": true
},
{
"name": "CveId",
"displayName": "CVE Id",
"shape": "string",
"visible": false,
"role": "label"
},
{
"name": "VulnerabilitySeverityLevel",
"displayName": "Severity",
"shape": "string",
"role": "label"
},
{
"name": "SoftwareName",
"displayName": "Affected Software",
"shape": "string",
"role": "label"
},
{
"name": "CveTags",
"displayName": "Tags",
"shape": "string",
"role": "label"
},
{
"sourceId": "DeviceId",
"name": "DeviceName",
"shape": "string",
"visible": false,
"role": "label",
"sourceType": "device"
},
{
"pattern": ".*",
"visible": false
}
],
"matches": {
"sourceType": {
"type": "equals",
"value": "device"
}
},
"timeframes": false,
"providesPluginDiagnostics": true,
"tags": []
}
51 changes: 51 additions & 0 deletions plugins/MicrosoftDefender/v1/dataStreams/advancedHuntingQuery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "advancedHuntingQuery",
"displayName": "Advanced Hunting Query",
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "post",
"errorHandling": {
"type": "default"
},
"paging": {
"mode": "none"
},
"expandInnerObjects": true,
"endpointPath": "runHuntingQuery",
"postBody": {
"Query": "{{query}}",
"Timespan": "{{timeframe.enum != \"none\" ? `${timeframe.start}/${timeframe.end}` : \"\" }}"
},
"pathToData": "results",
"getArgs": [],
"headers": []
},
"timeframes": [
"last1hour",
"last12hours",
"last24hours",
"last7days",
"last30days",
"thisMonth",
"thisQuarter",
"thisYear",
"lastMonth",
"lastQuarter",
"lastYear"
],
"supportsNoneTimeframe": true,
"providesPluginDiagnostics": true,
"manualConfigApply": true,
"tags": [],
"ui": [
{
"name": "query",
"language": "kusto",
"label": "Query",
"type": "code",
"validation": {
"required": true
}
}
]
}
221 changes: 221 additions & 0 deletions plugins/MicrosoftDefender/v1/dataStreams/alerts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
{
"name": "alerts",
"displayName": "Alerts",
"baseDataSourceName": "httpRequestUnscoped",
"config": {
"httpMethod": "get",
"errorHandling": {
"type": "default"
},
"paging": {
"mode": "nextUrl",
"pageSize": {
"realm": {
"value": "none",
"label": "none"
}
},
"in": {
"realm": {
"value": "payload",
"label": "payload"
},
"path": "@odata.nextLink"
}
},
"expandInnerObjects": true,
"endpointPath": "alerts_v2",
"pathToData": "value",
"getArgs": [
{
"key": "$filter",
"value": "{{ status && status.length > 0 ? \"(status eq \" + status.map((m) => { return `'${m}'` }).join(\" or status eq \") + \") and \" : \"\" }}{{ severity && severity.length > 0 ? \"(severity eq \" + severity.map((m) => { return `'${m}'` }).join(\" or severity eq \") + \") and \" : \"\" }}{{timeframe.enum !== \"none\" ? timeframeCol + \" ge \" + timeframe.start + \" and \" + timeframeCol + \" le \" + timeframe.end : \"1 eq 1\"}}"
}
],
"headers": []
},
"metadata": [
{
"name": "title",
"displayName": "Title",
"shape": "string",
"role": "label"
},
{
"name": "systemTags",
"displayName": "System Tags",
"shape": "string",
"role": "label"
},
{
"name": "severity",
"displayName": "Severity",
"shape": "string",
"role": "label"
},
{
"name": "status",
"displayName": "Status",
"shape": "string",
"role": "label"
},
{
"name": "category",
"displayName": "Category",
"shape": "string",
"role": "label"
},
{
"name": "detectionSource",
"displayName": "Detection Source",
"shape": "string",
"role": "label"
},
{
"name": "firstActivityDateTime",
"displayName": "First Activity",
"shape": "date",
"role": "label"
},
{
"name": "lastActivityDateTime",
"displayName": "Last Activity",
"shape": "date",
"role": "label"
},
{
"name": "classification",
"displayName": "Classification",
"shape": "string",
"role": "label"
},
{
"name": "determination",
"displayName": "Determination",
"shape": "string",
"role": "label"
},
{
"name": "assignedTo",
"displayName": "Assigned To",
"shape": "string",
"role": "label"
},
{
"pattern": ".*",
"visible": false
}
],
"timeframes": [
"last1hour",
"last12hours",
"last24hours",
"last7days",
"last30days",
"thisMonth",
"thisQuarter",
"thisYear",
"lastMonth",
"lastQuarter",
"lastYear"
],
"supportsNoneTimeframe": true,
"manualConfigApply": true,
"providesPluginDiagnostics": true,
"tags": [],
"ui": [
{
"name": "severity",
"label": "Severity",
"type": "autocomplete",
"data": {
"source": "fixed",
"values": [
{
"value": "low",
"label": "Low"
},
{
"value": "medium",
"label": "Medium"
},
{
"value": "high",
"label": "High"
},
{
"value": "informational",
"label": "Informational"
},
{
"value": "unknown",
"label": "Unknown"
},
{
"value": "unknownFutureValue",
"label": "Unknown Future Value"
}
]
},
"isClearable": true
},
{
"name": "status",
"label": "Status",
"type": "autocomplete",
"data": {
"source": "fixed",
"values": [
{
"value": "newAlert",
"label": "New"
},
{
"value": "inProgress",
"label": "In Progress"
},
{
"value": "resolved",
"label": "Resolved"
},
{
"value": "unknown",
"label": "Unknown"
},
{
"value": "unknownFutureValue",
"label": "Unknown Future Value"
}
]
},
"isClearable": true
},
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this field show on the Timeframe tab? You can use tileEditorStep to set this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's what I'm after! thanks

"tileEditorStep": ["Timeframe"],
"isMulti": false,
"help": "Select the column to apply the timeframe",
"data": {
"source": "fixed",
"values": [
{
"value": "createdDateTime",
"label": "Creation Time"
},
{
"value": "lastActivityDateTime",
"label": "Last Activity Time"
},
{
"value": "lastUpdateDateTime",
"label": "Last Update Time"
}
]
},
"defaultValue": "createdDateTime",
"name": "timeframeCol",
"label": "Timeframe Column",
"type": "autocomplete",
"isClearable": false
}
]
}
Loading
Loading