Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecurityInsights: Added IoTDevice entity #7934

Merged
merged 2 commits into from
Jan 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -1914,6 +1914,9 @@
},
"Get a url entity.": {
"$ref": "./examples/entities/GetUrlEntityById.json"
},
"Get an IoT device entity.": {
"$ref": "./examples/entities/GetIoTDeviceEntityById.json"
}
},
"tags": [
Expand Down Expand Up @@ -2674,6 +2677,9 @@
}
}
},
"required": [
pilor marked this conversation as resolved.
Show resolved Hide resolved
"kind"
],
"type": "object"
},
"AlertRule": {
Expand Down Expand Up @@ -2717,6 +2723,9 @@
}
}
},
"required": [
"kind"
],
"type": "object"
},
"AlertRuleTemplate": {
Expand Down Expand Up @@ -3863,6 +3872,9 @@
}
}
},
"required": [
"kind"
],
"type": "object"
},
"DataConnectorList": {
Expand Down Expand Up @@ -4073,6 +4085,7 @@
"RegistryValue",
"SecurityGroup",
"Url",
"IoTDevice",
"SecurityAlert",
"Bookmark"
],
Expand Down Expand Up @@ -4137,6 +4150,10 @@
"description": "Entity represents url in the system.",
"value": "Url"
},
{
"description": "Entity represents IoT device in the system.",
"value": "IoTDevice"
},
{
"description": "Entity represents security alert in the system.",
"value": "SecurityAlert"
Expand Down Expand Up @@ -4165,6 +4182,7 @@
"RegistryValue",
"SecurityGroup",
"URL",
"IoTDevice",
"SecurityAlert",
"HuntingBookmark"
],
Expand Down Expand Up @@ -4229,6 +4247,10 @@
"description": "Entity represents url in the system.",
"value": "URL"
},
{
"description": "Entity represents IoT device in the system.",
"value": "IoTDevice"
},
{
"description": "Entity represents security alert in the system.",
"value": "SecurityAlert"
Expand All @@ -4248,6 +4270,9 @@
"description": "The kind of the entity."
}
},
"required": [
"kind"
],
"type": "object"
},
"EntityList": {
Expand Down Expand Up @@ -6098,6 +6123,9 @@
}
}
},
"required": [
"kind"
],
"type": "object"
},
"TIDataConnector": {
Expand Down Expand Up @@ -6297,6 +6325,78 @@
},
"type": "object"
},
"IoTDeviceEntity": {
"allOf": [
{
"$ref": "#/definitions/Entity"
}
],
"description": "Represents an IoT device entity.",
"properties": {
"properties": {
"$ref": "#/definitions/IoTDeviceEntityProperties",
"description": "IoTDevice entity properties",
"x-ms-client-flatten": true
}
},
"type": "object",
"x-ms-discriminator-value": "IoTDevice"
},
"IoTDeviceEntityProperties": {
"allOf": [
{
"$ref": "#/definitions/EntityCommonProperties"
}
],
"description": "IoTDevice entity property bag.",
"properties": {
"deviceId": {
"description": "The ID of the IoT Device in the IoT Hub",
"readOnly": true,
"type": "string"
},
"iotSecurityAgentId": {
"description": "The ID of the security agent running on the device",
"format": "uuid",
"readOnly": true,
"type": "string"
},
"deviceType": {
"description": "The type of the device",
"readOnly": true,
"type": "string"
},
"vendor": {
"description": "The vendor of the device",
"readOnly": true,
"type": "string"
},
"edgeId": {
"description": "The ID of the edge device",
"readOnly": true,
"type": "string"
},
"iotHubEntityId": {
"description": "The AzureResource entity id of the IoT Hub",
"readOnly": true,
"type": "string"
},
"hostEntityId": {
"description": "The Host entity id of this device",
"readOnly": true,
"type": "string"
},
"threatIntelligence": {
"description": "A list of TI contexts attached to the IoTDevice entity.",
"items": {
"$ref": "#/definitions/ThreatIntelligence"
},
"readOnly": true,
"type": "array"
}
},
"type": "object"
},
"UserInfo": {
"description": "User information that made some action",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "Microsoft.SecurityInsights/entities",
"kind": "AzureResource",
"properties": {
"friendlyName": "Resource",
"friendlyName": "vm1",
"resourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/vm1"
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2019-01-01-preview",
"subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0",
"resourceGroupName": "myRg",
"workspaceName": "myWorkspace",
"operationalInsightsResourceProvider": "Microsoft.OperationalIinsights",
"entityId": "e1d3d618-e11f-478b-98e3-bb381539a8e1"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/e1d3d618-e11f-478b-98e3-bb381539a8e1",
"name": "e1d3d618-e11f-478b-98e3-bb381539a8e1",
"type": "Microsoft.SecurityInsights/entities",
"kind": "IoTDevice",
"properties": {
"friendlyName": "device1",
"deviceId": "device1",
"iotHubEntityId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/entities/8b2d9401-f953-e89d-2583-be9b4975870c"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "Microsoft.SecurityInsights/entities",
"kind": "SecurityGroup",
"properties": {
"friendlyName": "Group",
"friendlyName": "Name",
"distinguishedName": "Name",
"sid": "Sid",
"objectGuid": "fb1b8e04-d944-4986-b39a-1ce9adedcd98"
Expand Down