diff --git a/Solutions/Box/Analytic Rules/BoxAbnormalUserActivity.yaml b/Solutions/Box/Analytic Rules/BoxAbnormalUserActivity.yaml index c3b4deacd15..e8c04b369fd 100644 --- a/Solutions/Box/Analytic Rules/BoxAbnormalUserActivity.yaml +++ b/Solutions/Box/Analytic Rules/BoxAbnormalUserActivity.yaml @@ -1,7 +1,7 @@ id: 1139230c-cf10-45db-b616-fed0d1415c05 -name: Box - Abmormal user activity +name: Box - Abnormal user activity description: | - 'Detects spikes (deviations from avarage) in user activity.' + 'Identifies users whose Box activity in the last hour is well above their own hourly average over the previous 14 days.' severity: Medium status: Available requiredDataConnectors: @@ -17,38 +17,33 @@ tactics: relevantTechniques: - T1530 query: | - let lbperiod_start = 14d; - let lbperiod_end = 24h; - let user_actions_1 = BoxEvents - | where EventEndTime between (ago(lbperiod_start) .. ago(lbperiod_end)) - | summarize TotalEvents = count() by SourceName - | project TotalEvents, User = SourceName; - let user_actions_2 = BoxEvents - | where EventEndTime between (ago(lbperiod_start) .. ago(lbperiod_end)) - | summarize TotalEvents = count() by SrcUserName - | project TotalEvents, User = SrcUserName; - let TotalActions = (union user_actions_1, user_actions_2) - | summarize TotalEvents = count() by User - | extend EventsPerDay = TotalEvents / 29 - | extend k = 1; - let actions1_last_h = BoxEvents - | summarize TotalEventsH = count() by SourceName - | project TotalEventsH, User = SourceName; - let actions2_last_h = BoxEvents - | summarize TotalEventsH = count() by SourceName - | project TotalEventsH, User = SourceName; - let TotalActionsLastHour = (union actions1_last_h, actions2_last_h) - | summarize TotalEventsH = sum(TotalEventsH) by User - | extend k = 1; - TotalActions - | join (TotalActionsLastHour) on k - | where EventsPerDay > TotalEventsH - | project User - | extend AccountCustomEntity = User + let lookback = 14d; + let recent = 1h; + let min_events = 50; + let stdev_factor = 3; + BoxEvents + | where EventEndTime between (ago(lookback) .. now()) + | where isnotempty(SrcUserUpn) + // hourly buckets are aligned to the run time, so the newest bucket is the last hour + | summarize Events = count(), SrcUserName = take_any(SrcUserName) by SrcUserUpn, Hour = bin_at(EventEndTime, recent, now()) + | extend IsLastHour = Hour >= ago(recent) + // the baseline is the average over the earlier hours in which the user was active + | summarize EventsLastHour = sumif(Events, IsLastHour), + BaselineHours = countif(not(IsLastHour)), + BaselineAvg = avgif(Events, not(IsLastHour)), + BaselineStdev = stdevif(Events, not(IsLastHour)), + SrcUserName = take_any(SrcUserName) + by SrcUserUpn + // no earlier activity means no baseline, and one earlier hour has no spread, so use zero for both + | extend BaselineAvg = iff(BaselineHours == 0, 0.0, BaselineAvg), + BaselineStdev = iff(BaselineHours < 2, 0.0, BaselineStdev) + | where EventsLastHour >= min_events and EventsLastHour > BaselineAvg + stdev_factor * BaselineStdev + | project SrcUserUpn, SrcUserName, EventsLastHour, BaselineAvg = round(BaselineAvg, 2), BaselineStdev = round(BaselineStdev, 2), BaselineHours + | extend AccountCustomEntity = SrcUserUpn entityMappings: - entityType: Account fieldMappings: - identifier: FullName columnName: AccountCustomEntity -version: 1.0.1 +version: 1.0.2 kind: Scheduled \ No newline at end of file diff --git a/Solutions/Box/Data Connectors/BoxEvents_ccp/BoxEvents_table.json b/Solutions/Box/Data Connectors/BoxEvents_ccp/BoxEvents_table.json index 3f6f2f7c16d..cebad087118 100644 --- a/Solutions/Box/Data Connectors/BoxEvents_ccp/BoxEvents_table.json +++ b/Solutions/Box/Data Connectors/BoxEvents_ccp/BoxEvents_table.json @@ -7,174 +7,217 @@ "properties": { "schema": { "name": "BoxEventsV2_CL", + "description": "Box enterprise events (admin_logs stream) collected from the Box Events API by the Box Events (via Codeless Connector Framework) data connector.", "columns": [ { "name": "additional_details", - "type": "dynamic" + "type": "dynamic", + "description": "Additional details about the event when Box provides them, such as how the user performed the action. Content depends on the event type." }, { "name": "created_at", - "type": "datetime" + "type": "datetime", + "description": "Date and time when Box created the event object." }, { "name": "recorded_at", - "type": "datetime" + "type": "datetime", + "description": "Date and time when Box recorded the event in its database." }, { "name": "event_id", - "type": "string" + "type": "string", + "description": "Unique ID of the Box event. Can be used to detect duplicate events." }, { "name": "event_type", - "type": "string" + "type": "string", + "description": "Box event type, for example LOGIN, UPLOAD, DOWNLOAD or COLLABORATION_INVITE." }, { "name": "ip_address", - "type": "string" + "type": "string", + "description": "IP address that Box recorded for the event." }, { "name": "session_id", - "type": "dynamic" + "type": "dynamic", + "description": "Session of the user who performed the action. Not set on every event." }, { "name": "TimeGenerated", - "type": "datetime" + "type": "datetime", + "description": "Time of the event, set from created_at by the data collection rule." }, { "name": "event_category", - "type": "string" + "type": "string", + "description": "Object type of the Box event record (the event's type field), normally event." }, { "name": "source_user_email", - "type": "string" + "type": "string", + "description": "User email address from the event source (source.user_email), when present." }, { "name": "source_file_id", - "type": "string" + "type": "string", + "description": "ID of the file from the event source (source.file_id), when present." }, { "name": "source_file_name", - "type": "string" + "type": "string", + "description": "Name of the file from the event source (source.file_name), when present." }, { "name": "source_parent_name", - "type": "string" + "type": "string", + "description": "Name of the parent folder of the item that triggered the event (source.parent.name)." }, { "name": "source_item_type", - "type": "string" + "type": "string", + "description": "Type of the item that triggered the event, for example file or folder (source.item_type)." }, { "name": "source_item_id", - "type": "string" + "type": "string", + "description": "ID of the item that triggered the event (source.item_id)." }, { "name": "source_item_name", - "type": "string" + "type": "string", + "description": "Name of the item that triggered the event (source.item_name)." }, { "name": "source_parent_type", - "type": "string" + "type": "string", + "description": "Type of the parent of the item that triggered the event, usually folder (source.parent.type)." }, { "name": "source_parent_id", - "type": "string" + "type": "string", + "description": "ID of the parent folder of the item that triggered the event (source.parent.id)." }, { "name": "source_owned_by_type", - "type": "string" + "type": "string", + "description": "Type of the owner of the item that triggered the event, usually user (source.owned_by.type)." }, { "name": "source_owned_by_id", - "type": "string" + "type": "string", + "description": "Box user ID of the owner of the item that triggered the event (source.owned_by.id)." }, { "name": "source_owned_by_name", - "type": "string" + "type": "string", + "description": "Display name of the owner of the item that triggered the event (source.owned_by.name)." }, { "name": "source_owned_by_login", - "type": "string" + "type": "string", + "description": "Login (email address) of the owner of the item that triggered the event (source.owned_by.login)." }, { "name": "created_by_type", - "type": "string" + "type": "string", + "description": "Type of the actor who performed the action, usually user (created_by.type)." }, { "name": "created_by_id", - "type": "string" + "type": "string", + "description": "Box user ID of the user who performed the action (created_by.id). Box uses ID 2 for users who were not logged in." }, { "name": "created_by_name", - "type": "string" + "type": "string", + "description": "Display name of the user who performed the action (created_by.name)." }, { "name": "created_by_login", - "type": "string" + "type": "string", + "description": "Login (email address) of the user who performed the action (created_by.login)." }, { "name": "source_type", - "type": "string" + "type": "string", + "description": "Type of the object that triggered the event when the source is a Box object such as a user (source.type)." }, { "name": "source_id", - "type": "string" + "type": "string", + "description": "ID of the object that triggered the event (source.id)." }, { "name": "source_name", - "type": "string" + "type": "string", + "description": "Name of the object that triggered the event (source.name)." }, { "name": "source_login", - "type": "string" + "type": "string", + "description": "Login (email address) of the user that triggered the event when the source is a user (source.login)." }, { "name": "source_folder_id", - "type": "string" + "type": "string", + "description": "ID of the folder from the event source (source.folder_id), when present." }, { "name": "source_folder_name", - "type": "string" + "type": "string", + "description": "Name of the folder from the event source (source.folder_name), when present." }, { "name": "source_user_id", - "type": "string" + "type": "string", + "description": "User ID from the event source (source.user_id), when present." }, { "name": "source_user_name", - "type": "string" + "type": "string", + "description": "User name from the event source (source.user_name), when present." }, { "name": "accessible_by_type", - "type": "string" + "type": "string", + "description": "Type of the user or group that the event's access applies to, for example an invited collaborator (accessible_by.type)." }, { "name": "accessible_by_id", - "type": "string" + "type": "string", + "description": "ID of the user or group that the event's access applies to (accessible_by.id)." }, { "name": "accessible_by_name", - "type": "string" + "type": "string", + "description": "Name of the user or group that the event's access applies to (accessible_by.name)." }, { "name": "accessible_by_login", - "type": "string" + "type": "string", + "description": "Login (email address) of the user that the event's access applies to (accessible_by.login)." }, { "name": "source_classification_name", - "type": "string" + "type": "string", + "description": "Name of the classification label applied to the item that triggered the event (source.classification.name)." }, { "name": "source_classification_color", - "type": "string" + "type": "string", + "description": "Color of the classification label applied to the item that triggered the event (source.classification.color)." }, { "name": "source_classification_definition", - "type": "string" + "type": "string", + "description": "Definition text of the classification label applied to the item that triggered the event (source.classification.definition)." }, { "name": "action_by", - "type": "dynamic" + "type": "dynamic", + "description": "User object from the action_by field of the Box event, when Box includes it. Kept as dynamic." } ] } diff --git a/Solutions/Box/Data/Solution_Box.json b/Solutions/Box/Data/Solution_Box.json index 39d2a0e00f4..d66b9632509 100644 --- a/Solutions/Box/Data/Solution_Box.json +++ b/Solutions/Box/Data/Solution_Box.json @@ -38,7 +38,7 @@ "Analytic Rules/BoxUserRoleChangedToOwner.yaml" ], "BasePath": "C:\\GitHub\\Azure-Sentinel\\Solutions\\Box", - "Version": "3.1.7", + "Version": "3.1.8", "Metadata": "SolutionMetadata.json", "TemplateSpec": true, "Is1PConnector": false diff --git a/Solutions/Box/Package/3.1.8.zip b/Solutions/Box/Package/3.1.8.zip new file mode 100644 index 00000000000..24fcda42048 Binary files /dev/null and b/Solutions/Box/Package/3.1.8.zip differ diff --git a/Solutions/Box/Package/createUiDefinition.json b/Solutions/Box/Package/createUiDefinition.json index 2ca795e0472..87e7b29982d 100644 --- a/Solutions/Box/Package/createUiDefinition.json +++ b/Solutions/Box/Package/createUiDefinition.json @@ -153,13 +153,13 @@ { "name": "analytic1", "type": "Microsoft.Common.Section", - "label": "Box - Abmormal user activity", + "label": "Box - Abnormal user activity", "elements": [ { "name": "analytic1-text", "type": "Microsoft.Common.TextBlock", "options": { - "text": "Detects spikes (deviations from avarage) in user activity." + "text": "Identifies users whose Box activity in the last hour is well above their own hourly average over the previous 14 days." } } ] diff --git a/Solutions/Box/Package/mainTemplate.json b/Solutions/Box/Package/mainTemplate.json index 9021703f6c0..7df3dada99e 100644 --- a/Solutions/Box/Package/mainTemplate.json +++ b/Solutions/Box/Package/mainTemplate.json @@ -55,7 +55,7 @@ "email": "support@microsoft.com", "_email": "[variables('email')]", "_solutionName": "Box", - "_solutionVersion": "3.1.7", + "_solutionVersion": "3.1.8", "solutionId": "azuresentinel.azure-sentinel-solution-box", "_solutionId": "[variables('solutionId')]", "workbookVersion1": "1.0.1", @@ -131,7 +131,7 @@ "dataConnectorTemplateSpecName1": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-dc-',uniquestring(variables('_dataConnectorContentId1'))))]", "dataConnectorVersion1": "1.0.0", "_dataConnectorcontentProductId1": "[concat(take(variables('_solutionId'),50),'-','dc','-', uniqueString(concat(variables('_solutionId'),'-','DataConnector','-',variables('_dataConnectorContentId1'),'-', variables('dataConnectorVersion1'))))]", - "dataConnectorCCPVersion": "3.1.7", + "dataConnectorCCPVersion": "3.1.8", "_dataConnectorContentIdConnectorDefinition2": "BoxEventsCCPDefinition", "dataConnectorTemplateNameConnectorDefinition2": "[concat(parameters('workspace'),'-dc-',uniquestring(variables('_dataConnectorContentIdConnectorDefinition2')))]", "_dataConnectorContentIdConnections2": "BoxEventsCCPDefinitionConnections", @@ -140,11 +140,11 @@ "blanks": "[replace('b', 'b', '')]", "TemplateEmptyObject": "[json('{}')]", "analyticRuleObject1": { - "analyticRuleVersion1": "1.0.1", + "analyticRuleVersion1": "1.0.2", "_analyticRulecontentId1": "1139230c-cf10-45db-b616-fed0d1415c05", "analyticRuleId1": "[resourceId('Microsoft.SecurityInsights/AlertRuleTemplates', '1139230c-cf10-45db-b616-fed0d1415c05')]", "analyticRuleTemplateSpecName1": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-ar-',uniquestring('1139230c-cf10-45db-b616-fed0d1415c05')))]", - "_analyticRulecontentProductId1": "[concat(take(variables('_solutionId'),50),'-','ar','-', uniqueString(concat(variables('_solutionId'),'-','AnalyticsRule','-','1139230c-cf10-45db-b616-fed0d1415c05','-', '1.0.1')))]" + "_analyticRulecontentProductId1": "[concat(take(variables('_solutionId'),50),'-','ar','-', uniqueString(concat(variables('_solutionId'),'-','AnalyticsRule','-','1139230c-cf10-45db-b616-fed0d1415c05','-', '1.0.2')))]" }, "analyticRuleObject2": { "analyticRuleVersion2": "1.0.0", @@ -221,7 +221,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "Box Workbook with template version 3.1.7", + "description": "Box Workbook with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('workbookVersion1')]", @@ -250,7 +250,7 @@ "apiVersion": "2022-01-01-preview", "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('Workbook-', last(split(variables('workbookId1'),'/'))))]", "properties": { - "description": "@{workbookKey=BoxWorkbook; logoFileName=box.svg; description=Sets the time name for analysis; dataTypesDependencies=System.Object[]; dataConnectorsDependencies=System.Object[]; previewImagesFileNames=System.Object[]; version=1.0.1; title=Box; templateRelativePath=Box.json; subtitle=; provider=Box}.description", + "description": "Sets the time name for analysis", "parentId": "[variables('workbookId1')]", "contentId": "[variables('_workbookContentId1')]", "kind": "Workbook", @@ -309,7 +309,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxEvents Data Parser with template version 3.1.7", + "description": "BoxEvents Data Parser with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('parserObject1').parserVersion1]", @@ -441,7 +441,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxAdminIpAddress_HuntingQueries Hunting Query with template version 3.1.7", + "description": "BoxAdminIpAddress_HuntingQueries Hunting Query with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('huntingQueryObject1').huntingQueryVersion1]", @@ -526,7 +526,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxDeletedUsers_HuntingQueries Hunting Query with template version 3.1.7", + "description": "BoxDeletedUsers_HuntingQueries Hunting Query with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('huntingQueryObject2').huntingQueryVersion2]", @@ -611,7 +611,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxInactiveAdmins_HuntingQueries Hunting Query with template version 3.1.7", + "description": "BoxInactiveAdmins_HuntingQueries Hunting Query with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('huntingQueryObject3').huntingQueryVersion3]", @@ -696,7 +696,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxInactiveUsers_HuntingQueries Hunting Query with template version 3.1.7", + "description": "BoxInactiveUsers_HuntingQueries Hunting Query with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('huntingQueryObject4').huntingQueryVersion4]", @@ -781,7 +781,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxNewUsers_HuntingQueries Hunting Query with template version 3.1.7", + "description": "BoxNewUsers_HuntingQueries Hunting Query with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('huntingQueryObject5').huntingQueryVersion5]", @@ -866,7 +866,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxSuspiciousFiles_HuntingQueries Hunting Query with template version 3.1.7", + "description": "BoxSuspiciousFiles_HuntingQueries Hunting Query with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('huntingQueryObject6').huntingQueryVersion6]", @@ -951,7 +951,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxUserDownloadsByVolume_HuntingQueries Hunting Query with template version 3.1.7", + "description": "BoxUserDownloadsByVolume_HuntingQueries Hunting Query with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('huntingQueryObject7').huntingQueryVersion7]", @@ -1036,7 +1036,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxUserGroupChanges_HuntingQueries Hunting Query with template version 3.1.7", + "description": "BoxUserGroupChanges_HuntingQueries Hunting Query with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('huntingQueryObject8').huntingQueryVersion8]", @@ -1121,7 +1121,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxUserUploadsByVolume_HuntingQueries Hunting Query with template version 3.1.7", + "description": "BoxUserUploadsByVolume_HuntingQueries Hunting Query with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('huntingQueryObject9').huntingQueryVersion9]", @@ -1206,7 +1206,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxUsersWithOwnerPermissions_HuntingQueries Hunting Query with template version 3.1.7", + "description": "BoxUsersWithOwnerPermissions_HuntingQueries Hunting Query with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('huntingQueryObject10').huntingQueryVersion10]", @@ -1291,7 +1291,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "Box data connector with template version 3.1.7", + "description": "Box data connector with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('dataConnectorVersion1')]", @@ -1930,174 +1930,217 @@ "properties": { "schema": { "name": "BoxEventsV2_CL", + "description": "Box enterprise events (admin_logs stream) collected from the Box Events API by the Box Events (via Codeless Connector Framework) data connector.", "columns": [ { "name": "additional_details", - "type": "dynamic" + "type": "dynamic", + "description": "Additional details about the event when Box provides them, such as how the user performed the action. Content depends on the event type." }, { "name": "created_at", - "type": "datetime" + "type": "datetime", + "description": "Date and time when Box created the event object." }, { "name": "recorded_at", - "type": "datetime" + "type": "datetime", + "description": "Date and time when Box recorded the event in its database." }, { "name": "event_id", - "type": "string" + "type": "string", + "description": "Unique ID of the Box event. Can be used to detect duplicate events." }, { "name": "event_type", - "type": "string" + "type": "string", + "description": "Box event type, for example LOGIN, UPLOAD, DOWNLOAD or COLLABORATION_INVITE." }, { "name": "ip_address", - "type": "string" + "type": "string", + "description": "IP address that Box recorded for the event." }, { "name": "session_id", - "type": "dynamic" + "type": "dynamic", + "description": "Session of the user who performed the action. Not set on every event." }, { "name": "TimeGenerated", - "type": "datetime" + "type": "datetime", + "description": "Time of the event, set from created_at by the data collection rule." }, { "name": "event_category", - "type": "string" + "type": "string", + "description": "Object type of the Box event record (the event's type field), normally event." }, { "name": "source_user_email", - "type": "string" + "type": "string", + "description": "User email address from the event source (source.user_email), when present." }, { "name": "source_file_id", - "type": "string" + "type": "string", + "description": "ID of the file from the event source (source.file_id), when present." }, { "name": "source_file_name", - "type": "string" + "type": "string", + "description": "Name of the file from the event source (source.file_name), when present." }, { "name": "source_parent_name", - "type": "string" + "type": "string", + "description": "Name of the parent folder of the item that triggered the event (source.parent.name)." }, { "name": "source_item_type", - "type": "string" + "type": "string", + "description": "Type of the item that triggered the event, for example file or folder (source.item_type)." }, { "name": "source_item_id", - "type": "string" + "type": "string", + "description": "ID of the item that triggered the event (source.item_id)." }, { "name": "source_item_name", - "type": "string" + "type": "string", + "description": "Name of the item that triggered the event (source.item_name)." }, { "name": "source_parent_type", - "type": "string" + "type": "string", + "description": "Type of the parent of the item that triggered the event, usually folder (source.parent.type)." }, { "name": "source_parent_id", - "type": "string" + "type": "string", + "description": "ID of the parent folder of the item that triggered the event (source.parent.id)." }, { "name": "source_owned_by_type", - "type": "string" + "type": "string", + "description": "Type of the owner of the item that triggered the event, usually user (source.owned_by.type)." }, { "name": "source_owned_by_id", - "type": "string" + "type": "string", + "description": "Box user ID of the owner of the item that triggered the event (source.owned_by.id)." }, { "name": "source_owned_by_name", - "type": "string" + "type": "string", + "description": "Display name of the owner of the item that triggered the event (source.owned_by.name)." }, { "name": "source_owned_by_login", - "type": "string" + "type": "string", + "description": "Login (email address) of the owner of the item that triggered the event (source.owned_by.login)." }, { "name": "created_by_type", - "type": "string" + "type": "string", + "description": "Type of the actor who performed the action, usually user (created_by.type)." }, { "name": "created_by_id", - "type": "string" + "type": "string", + "description": "Box user ID of the user who performed the action (created_by.id). Box uses ID 2 for users who were not logged in." }, { "name": "created_by_name", - "type": "string" + "type": "string", + "description": "Display name of the user who performed the action (created_by.name)." }, { "name": "created_by_login", - "type": "string" + "type": "string", + "description": "Login (email address) of the user who performed the action (created_by.login)." }, { "name": "source_type", - "type": "string" + "type": "string", + "description": "Type of the object that triggered the event when the source is a Box object such as a user (source.type)." }, { "name": "source_id", - "type": "string" + "type": "string", + "description": "ID of the object that triggered the event (source.id)." }, { "name": "source_name", - "type": "string" + "type": "string", + "description": "Name of the object that triggered the event (source.name)." }, { "name": "source_login", - "type": "string" + "type": "string", + "description": "Login (email address) of the user that triggered the event when the source is a user (source.login)." }, { "name": "source_folder_id", - "type": "string" + "type": "string", + "description": "ID of the folder from the event source (source.folder_id), when present." }, { "name": "source_folder_name", - "type": "string" + "type": "string", + "description": "Name of the folder from the event source (source.folder_name), when present." }, { "name": "source_user_id", - "type": "string" + "type": "string", + "description": "User ID from the event source (source.user_id), when present." }, { "name": "source_user_name", - "type": "string" + "type": "string", + "description": "User name from the event source (source.user_name), when present." }, { "name": "accessible_by_type", - "type": "string" + "type": "string", + "description": "Type of the user or group that the event's access applies to, for example an invited collaborator (accessible_by.type)." }, { "name": "accessible_by_id", - "type": "string" + "type": "string", + "description": "ID of the user or group that the event's access applies to (accessible_by.id)." }, { "name": "accessible_by_name", - "type": "string" + "type": "string", + "description": "Name of the user or group that the event's access applies to (accessible_by.name)." }, { "name": "accessible_by_login", - "type": "string" + "type": "string", + "description": "Login (email address) of the user that the event's access applies to (accessible_by.login)." }, { "name": "source_classification_name", - "type": "string" + "type": "string", + "description": "Name of the classification label applied to the item that triggered the event (source.classification.name)." }, { "name": "source_classification_color", - "type": "string" + "type": "string", + "description": "Color of the classification label applied to the item that triggered the event (source.classification.color)." }, { "name": "source_classification_definition", - "type": "string" + "type": "string", + "description": "Definition text of the classification label applied to the item that triggered the event (source.classification.definition)." }, { "name": "action_by", - "type": "dynamic" + "type": "dynamic", + "description": "User object from the action_by field of the Box event, when Box includes it. Kept as dynamic." } ] } @@ -2428,7 +2471,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxAbnormalUserActivity_AnalyticalRules Analytics Rule with template version 3.1.7", + "description": "BoxAbnormalUserActivity_AnalyticalRules Analytics Rule with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('analyticRuleObject1').analyticRuleVersion1]", @@ -2442,10 +2485,10 @@ "kind": "Scheduled", "location": "[parameters('workspace-location')]", "properties": { - "description": "Detects spikes (deviations from avarage) in user activity.", - "displayName": "Box - Abmormal user activity", + "description": "Identifies users whose Box activity in the last hour is well above their own hourly average over the previous 14 days.", + "displayName": "Box - Abnormal user activity", "enabled": false, - "query": "let lbperiod_start = 14d;\nlet lbperiod_end = 24h;\nlet user_actions_1 = BoxEvents\n| where EventEndTime between (ago(lbperiod_start) .. ago(lbperiod_end))\n| summarize TotalEvents = count() by SourceName\n| project TotalEvents, User = SourceName;\nlet user_actions_2 = BoxEvents\n| where EventEndTime between (ago(lbperiod_start) .. ago(lbperiod_end))\n| summarize TotalEvents = count() by SrcUserName\n| project TotalEvents, User = SrcUserName;\nlet TotalActions = (union user_actions_1, user_actions_2)\n| summarize TotalEvents = count() by User\n| extend EventsPerDay = TotalEvents / 29\n| extend k = 1;\nlet actions1_last_h = BoxEvents\n| summarize TotalEventsH = count() by SourceName\n| project TotalEventsH, User = SourceName;\nlet actions2_last_h = BoxEvents\n| summarize TotalEventsH = count() by SourceName\n| project TotalEventsH, User = SourceName;\nlet TotalActionsLastHour = (union actions1_last_h, actions2_last_h)\n| summarize TotalEventsH = sum(TotalEventsH) by User\n| extend k = 1;\nTotalActions\n| join (TotalActionsLastHour) on k\n| where EventsPerDay > TotalEventsH\n| project User\n| extend AccountCustomEntity = User\n", + "query": "let lookback = 14d;\nlet recent = 1h;\nlet min_events = 50;\nlet stdev_factor = 3;\nBoxEvents\n| where EventEndTime between (ago(lookback) .. now())\n| where isnotempty(SrcUserUpn)\n// hourly buckets are aligned to the run time, so the newest bucket is the last hour\n| summarize Events = count(), SrcUserName = take_any(SrcUserName) by SrcUserUpn, Hour = bin_at(EventEndTime, recent, now())\n| extend IsLastHour = Hour >= ago(recent)\n// the baseline is the average over the earlier hours in which the user was active\n| summarize EventsLastHour = sumif(Events, IsLastHour),\n BaselineHours = countif(not(IsLastHour)),\n BaselineAvg = avgif(Events, not(IsLastHour)),\n BaselineStdev = stdevif(Events, not(IsLastHour)),\n SrcUserName = take_any(SrcUserName)\n by SrcUserUpn\n// no earlier activity means no baseline, and one earlier hour has no spread, so use zero for both\n| extend BaselineAvg = iff(BaselineHours == 0, 0.0, BaselineAvg),\n BaselineStdev = iff(BaselineHours < 2, 0.0, BaselineStdev)\n| where EventsLastHour >= min_events and EventsLastHour > BaselineAvg + stdev_factor * BaselineStdev\n| project SrcUserUpn, SrcUserName, EventsLastHour, BaselineAvg = round(BaselineAvg, 2), BaselineStdev = round(BaselineStdev, 2), BaselineHours\n| extend AccountCustomEntity = SrcUserUpn\n", "queryFrequency": "PT1H", "queryPeriod": "P14D", "severity": "Medium", @@ -2517,7 +2560,7 @@ "contentSchemaVersion": "3.0.0", "contentId": "[variables('analyticRuleObject1')._analyticRulecontentId1]", "contentKind": "AnalyticsRule", - "displayName": "Box - Abmormal user activity", + "displayName": "Box - Abnormal user activity", "contentProductId": "[variables('analyticRuleObject1')._analyticRulecontentProductId1]", "id": "[variables('analyticRuleObject1')._analyticRulecontentProductId1]", "version": "[variables('analyticRuleObject1').analyticRuleVersion1]" @@ -2532,7 +2575,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxBinaryFile_AnalyticalRules Analytics Rule with template version 3.1.7", + "description": "BoxBinaryFile_AnalyticalRules Analytics Rule with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('analyticRuleObject2').analyticRuleVersion2]", @@ -2636,7 +2679,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxDownloadForbiddenFiles_AnalyticalRules Analytics Rule with template version 3.1.7", + "description": "BoxDownloadForbiddenFiles_AnalyticalRules Analytics Rule with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('analyticRuleObject3').analyticRuleVersion3]", @@ -2749,7 +2792,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxInactiveUserLogin_AnalyticalRules Analytics Rule with template version 3.1.7", + "description": "BoxInactiveUserLogin_AnalyticalRules Analytics Rule with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('analyticRuleObject4').analyticRuleVersion4]", @@ -2853,7 +2896,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxItemSharedToExternalUser_AnalyticalRules Analytics Rule with template version 3.1.7", + "description": "BoxItemSharedToExternalUser_AnalyticalRules Analytics Rule with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('analyticRuleObject5').analyticRuleVersion5]", @@ -2957,7 +3000,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxMultipleItemsDeletedByUser_AnalyticalRules Analytics Rule with template version 3.1.7", + "description": "BoxMultipleItemsDeletedByUser_AnalyticalRules Analytics Rule with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('analyticRuleObject6').analyticRuleVersion6]", @@ -3061,7 +3104,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxNewExternalUser_AnalyticalRules Analytics Rule with template version 3.1.7", + "description": "BoxNewExternalUser_AnalyticalRules Analytics Rule with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('analyticRuleObject7').analyticRuleVersion7]", @@ -3175,7 +3218,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxSensitiveFile_AnalyticalRules Analytics Rule with template version 3.1.7", + "description": "BoxSensitiveFile_AnalyticalRules Analytics Rule with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('analyticRuleObject8').analyticRuleVersion8]", @@ -3288,7 +3331,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxUserLoginAsAdmin_AnalyticalRules Analytics Rule with template version 3.1.7", + "description": "BoxUserLoginAsAdmin_AnalyticalRules Analytics Rule with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('analyticRuleObject9').analyticRuleVersion9]", @@ -3401,7 +3444,7 @@ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]" ], "properties": { - "description": "BoxUserRoleChangedToOwner_AnalyticalRules Analytics Rule with template version 3.1.7", + "description": "BoxUserRoleChangedToOwner_AnalyticalRules Analytics Rule with template version 3.1.8", "mainTemplate": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "[variables('analyticRuleObject10').analyticRuleVersion10]", @@ -3501,7 +3544,7 @@ "apiVersion": "2023-04-01-preview", "location": "[parameters('workspace-location')]", "properties": { - "version": "3.1.7", + "version": "3.1.8", "kind": "Solution", "contentSchemaVersion": "3.0.0", "displayName": "Box", diff --git a/Solutions/Box/ReleaseNotes.md b/Solutions/Box/ReleaseNotes.md index 569ed21921a..7e6930b5b89 100644 --- a/Solutions/Box/ReleaseNotes.md +++ b/Solutions/Box/ReleaseNotes.md @@ -1,5 +1,6 @@ | **Version** | **Date Modified (DD-MM-YYYY)** | **Change History** | |-------------|--------------------------------|--------------------------------------------------------------------| +| 3.1.8 | 02-12-2026 | Updated **Analytic Rule** Box - Abnormal user activity so it compares each user's last hour with their own hourly baseline over the previous 14 days. | | 3.1.7 | 19-10-2026 | Updated rule to compare the new user's email domain with the corporate domain from SrcUserUpn, normalizing both to lowercase. | | 3.1.6 | 11-08-2026 | Added top-level action_by ingestion and exposed recorded_at through the parser. | | 3.1.5 | 09-07-2026 | Updated **Parser** and **CCF Data Connector** DCR. |