@oneuptime/common 12.0.15 → 12.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/AnalyticsModels/Index.ts +10 -0
- package/Models/AnalyticsModels/LogCountBaseline.ts +174 -0
- package/Models/AnalyticsModels/SecurityEvent.ts +794 -0
- package/Models/AnalyticsModels/Span.ts +29 -1
- package/Models/AnalyticsModels/SpanCountBaseline.ts +198 -0
- package/Models/DatabaseModels/Alert.ts +42 -0
- package/Models/DatabaseModels/AlertMeasurement.ts +1114 -0
- package/Models/DatabaseModels/AlertMeasurementValue.ts +501 -0
- package/Models/DatabaseModels/AlertStateTimeline.ts +10 -2
- package/Models/DatabaseModels/BillingPaymentMethod.ts +8 -10
- package/Models/DatabaseModels/DetectionRule.ts +568 -0
- package/Models/DatabaseModels/GoogleSecOpsConnection.ts +382 -0
- package/Models/DatabaseModels/Incident.ts +42 -0
- package/Models/DatabaseModels/IncidentMeasurement.ts +1114 -0
- package/Models/DatabaseModels/IncidentMeasurementValue.ts +501 -0
- package/Models/DatabaseModels/IncidentStateTimeline.ts +10 -2
- package/Models/DatabaseModels/IncomingCallPolicyLabelRule.ts +36 -0
- package/Models/DatabaseModels/IncomingCallPolicyOwnerRule.ts +42 -0
- package/Models/DatabaseModels/Index.ts +20 -0
- package/Models/DatabaseModels/Label.ts +11 -0
- package/Models/DatabaseModels/LlmCostBudget.ts +655 -0
- package/Models/DatabaseModels/LlmModelPrice.ts +481 -0
- package/Models/DatabaseModels/LogSavedView.ts +87 -0
- package/Models/DatabaseModels/MarketingConversion.ts +210 -8
- package/Models/DatabaseModels/MetricSavedView.ts +59 -0
- package/Models/DatabaseModels/OnCallDutyPolicyLabelRule.ts +36 -0
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerRule.ts +42 -0
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLabelRule.ts +36 -0
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleOwnerRule.ts +42 -0
- package/Models/DatabaseModels/Probe.ts +21 -0
- package/Models/DatabaseModels/RunbookLabelRule.ts +36 -0
- package/Models/DatabaseModels/RunbookOwnerRule.ts +42 -0
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.ts +1104 -0
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.ts +491 -0
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.ts +10 -2
- package/Models/DatabaseModels/StatusPageLabelRule.ts +36 -0
- package/Models/DatabaseModels/StatusPageOwnerRule.ts +42 -0
- package/Models/DatabaseModels/TableView.ts +15 -0
- package/Models/DatabaseModels/Team.ts +13 -0
- package/Models/DatabaseModels/TeamMember.ts +8 -0
- package/Models/DatabaseModels/TraceSavedView.ts +52 -0
- package/Models/DatabaseModels/WorkflowLabelRule.ts +36 -0
- package/Models/DatabaseModels/WorkflowOwnerRule.ts +42 -0
- package/Server/API/TelemetryAPI.ts +252 -6
- package/Server/API/UserAPI.ts +88 -0
- package/Server/EnvironmentConfig.ts +36 -1
- package/Server/Infrastructure/Postgres/SchemaMigrations/1788000000000-AddDetectionRuleAndGoogleSecOpsConnection.ts +88 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1788100000000-AddMeasurements.ts +457 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1788200000000-AddLlmCostBudget.ts +97 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1788300000000-AddLlmModelPrice.ts +45 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1788400000000-AddMarketingConversionAttribution.ts +105 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1788500000000-RemoveLlmCostBudgetAlertColumns.ts +77 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1788600000000-AddDetectionRuleIncidentColumns.ts +39 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +14 -0
- package/Server/Middleware/IdentityRateLimit.ts +672 -0
- package/Server/Services/AccessTokenService.ts +15 -2
- package/Server/Services/AlertMeasurementService.ts +302 -0
- package/Server/Services/AlertMeasurementValueService.ts +508 -0
- package/Server/Services/AlertService.ts +50 -0
- package/Server/Services/AlertStateTimelineService.ts +54 -0
- package/Server/Services/DetectionRuleService.ts +74 -0
- package/Server/Services/GoogleSecOpsConnectionService.ts +89 -0
- package/Server/Services/IncidentMeasurementService.ts +304 -0
- package/Server/Services/IncidentMeasurementValueService.ts +523 -0
- package/Server/Services/IncidentService.ts +51 -0
- package/Server/Services/IncidentStateTimelineService.ts +54 -0
- package/Server/Services/Index.ts +30 -0
- package/Server/Services/LlmCostBudgetService.ts +93 -0
- package/Server/Services/LlmModelPriceService.ts +202 -0
- package/Server/Services/LogAggregationService.ts +1106 -2
- package/Server/Services/LogCountBaselineService.ts +163 -0
- package/Server/Services/MutableMetricService.ts +30 -9
- package/Server/Services/ScheduledMaintenanceMeasurementService.ts +311 -0
- package/Server/Services/ScheduledMaintenanceMeasurementValueService.ts +546 -0
- package/Server/Services/ScheduledMaintenanceService.ts +53 -0
- package/Server/Services/ScheduledMaintenanceStateTimelineService.ts +188 -1
- package/Server/Services/SecurityEventService.ts +104 -0
- package/Server/Services/SpanCountBaselineService.ts +173 -0
- package/Server/Services/StatusPageService.ts +4 -3
- package/Server/Services/TelemetryUsageBillingService.ts +17 -2
- package/Server/Services/UserService.ts +284 -51
- package/Server/Services/UserTotpAuthService.ts +27 -86
- package/Server/Services/UserWebAuthnService.ts +26 -86
- package/Server/Types/Billing/MeteredPlan/AllMeteredPlans.ts +14 -0
- package/Server/Types/Database/Permissions/TenantPermission.ts +10 -0
- package/Server/Types/Database/QueryHelper.ts +1 -1
- package/Server/Utils/AI/Chat/ObservabilityChatPrompt.ts +1 -1
- package/Server/Utils/AI/Toolbox/Index.ts +6 -0
- package/Server/Utils/AI/Toolbox/SecurityEventTools.ts +349 -0
- package/Server/Utils/AnalyticsDatabase/StatementGenerator.ts +13 -4
- package/Server/Utils/Attribution.ts +130 -34
- package/Server/Utils/Marketing/ConversionUploadProvider.ts +98 -16
- package/Server/Utils/Marketing/Providers/GoogleAds.ts +70 -7
- package/Server/Utils/Marketing/Providers/LinkedIn.ts +54 -16
- package/Server/Utils/Marketing/Providers/Meta.ts +52 -18
- package/Server/Utils/Marketing/Providers/MicrosoftAds.ts +37 -10
- package/Server/Utils/Marketing/Providers/Reddit.ts +45 -15
- package/Server/Utils/Measurement/MeasurementDefinitionValidator.ts +209 -0
- package/Server/Utils/Measurement/MeasurementMetricWriter.ts +189 -0
- package/Server/Utils/Monitor/Criteria/CountAnomaly.ts +182 -0
- package/Server/Utils/Monitor/Criteria/LogMonitorCriteria.ts +132 -0
- package/Server/Utils/Monitor/Criteria/SecurityEventsMonitorCriteria.ts +35 -0
- package/Server/Utils/Monitor/Criteria/TraceMonitorCriteria.ts +132 -0
- package/Server/Utils/Monitor/DataToProcess.ts +2 -0
- package/Server/Utils/Monitor/MonitorCriteriaDataExtractor.ts +14 -0
- package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +15 -0
- package/Server/Utils/Monitor/MonitorCriteriaObservationBuilder.ts +20 -0
- package/Server/Utils/Monitor/MonitorResource.ts +16 -0
- package/Server/Utils/Monitor/MonitorStepResourceIdentity.ts +1 -0
- package/Server/Utils/Monitor/MonitorStepsReferenceExtractor.ts +1 -0
- package/Server/Utils/SecurityEvent/DetectionRuleEvaluator.ts +805 -0
- package/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsClient.ts +262 -0
- package/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsPoller.ts +212 -0
- package/Server/Utils/SecurityEvent/SecurityEventRow.ts +101 -0
- package/Server/Utils/SecurityEvent/Sigma/SigmaClickhouseCompiler.ts +635 -0
- package/Server/Utils/Telemetry/LlmCostBudgetEvaluator.ts +379 -0
- package/Server/Utils/Telemetry/LlmSpan.ts +83 -4
- package/Server/Utils/Telemetry/LogErrorPatternSql.ts +136 -0
- package/Server/Utils/UserPermission/UserPermission.ts +57 -1
- package/Tests/App/Dashboard/AlertsSideMenu.test.tsx +4 -0
- package/Tests/App/Dashboard/CreatePageEntryPointPermissions.test.tsx +306 -0
- package/Tests/App/Dashboard/DangerZone.test.tsx +11 -0
- package/Tests/App/Dashboard/IncidentsSideMenu.test.tsx +4 -0
- package/Tests/App/Dashboard/LogMonitorAttributeOperatorPreview.test.tsx +459 -0
- package/Tests/App/Dashboard/OverviewCustomFields.test.tsx +24 -0
- package/Tests/App/Dashboard/ScheduledMaintenanceSideMenu.test.tsx +6 -0
- package/Tests/App/Dashboard/SecurityEventsDetectionRulesPage.test.tsx +250 -0
- package/Tests/App/Dashboard/SecurityEventsMonitorStepForm.test.tsx +106 -0
- package/Tests/App/Dashboard/SecurityEventsMonitorsPage.test.tsx +185 -0
- package/Tests/App/Dashboard/SecurityEventsSetupGuide.test.tsx +200 -0
- package/Tests/Models/DatabaseModels/DomainRoleTierCoverage.test.ts +323 -0
- package/Tests/Models/DatabaseModels/ProjectSharedResources.test.ts +386 -0
- package/Tests/Models/DetectionRuleCreateContract.test.ts +35 -0
- package/Tests/Server/API/LogErrorPatternAPI.test.ts +811 -0
- package/Tests/Server/API/UserAuthenticationAPI.test.ts +11 -0
- package/Tests/Server/API/UserProjectsAPI.test.ts +11 -2
- package/Tests/Server/API/UserTwoFactorAuthAdminAPI.test.ts +918 -0
- package/Tests/Server/Infrastructure/LocalCache.test.ts +149 -0
- package/Tests/Server/Services/AccessTokenProjectUserGrant.test.ts +249 -0
- package/Tests/Server/Services/AlertMeasurementService.test.ts +665 -0
- package/Tests/Server/Services/AlertMeasurementValueService.test.ts +389 -0
- package/Tests/Server/Services/DetectionRuleService.test.ts +254 -0
- package/Tests/Server/Services/IncidentMeasurementService.test.ts +394 -0
- package/Tests/Server/Services/IncidentMeasurementValueService.test.ts +816 -0
- package/Tests/Server/Services/LlmCostBudgetService.test.ts +104 -0
- package/Tests/Server/Services/LogAggregationAttributeOperators.test.ts +405 -0
- package/Tests/Server/Services/LogErrorPatternAggregation.test.ts +804 -0
- package/Tests/Server/Services/MutableMetricNameRouting.test.ts +83 -0
- package/Tests/Server/Services/ScheduledMaintenanceMeasurementService.test.ts +750 -0
- package/Tests/Server/Services/ScheduledMaintenanceMeasurementValueService.test.ts +478 -0
- package/Tests/Server/Services/UserAuthenticationService.test.ts +216 -4
- package/Tests/Server/Services/UserTwoFactorAuthAdmin.test.ts +1190 -0
- package/Tests/Server/Types/Database/Permissions/ScopedRoleSharedResourceAccess.test.ts +466 -0
- package/Tests/Server/Types/Database/QueryHelperOperators.test.ts +265 -0
- package/Tests/Server/Types/Database/QueryHelperTextAndStructuralOperators.test.ts +206 -0
- package/Tests/Server/Utils/AnalyticsDatabase/ClusterAwareSchema.test.ts +6 -0
- package/Tests/Server/Utils/AnalyticsDatabase/FractionalAttributeThreshold.test.ts +224 -0
- package/Tests/Server/Utils/AnalyticsDatabase/StatementGenerator.test.ts +172 -2
- package/Tests/Server/Utils/Attribution.test.ts +228 -1
- package/Tests/Server/Utils/Marketing/AdUploadableConversionTypes.test.ts +153 -92
- package/Tests/Server/Utils/Marketing/ConversionUploadProvider.test.ts +123 -6
- package/Tests/Server/Utils/Marketing/GoogleAds.test.ts +253 -1
- package/Tests/Server/Utils/Marketing/LinkedIn.test.ts +282 -0
- package/Tests/Server/Utils/Marketing/Meta.test.ts +304 -0
- package/Tests/Server/Utils/Marketing/MicrosoftAds.test.ts +263 -0
- package/Tests/Server/Utils/Marketing/Reddit.test.ts +259 -0
- package/Tests/Server/Utils/Measurement/MeasurementDefinitionValidator.test.ts +322 -0
- package/Tests/Server/Utils/Measurement/MeasurementMetricWriter.test.ts +373 -0
- package/Tests/Server/Utils/Monitor/Criteria/CountAnomaly.test.ts +221 -0
- package/Tests/Server/Utils/Monitor/Criteria/LogMonitorCriteria.test.ts +236 -0
- package/Tests/Server/Utils/Monitor/Criteria/SecurityEventsMonitorCriteria.test.ts +147 -0
- package/Tests/Server/Utils/Monitor/Criteria/TraceMonitorCriteria.test.ts +274 -0
- package/Tests/Server/Utils/Monitor/SecurityEventsMonitorDataExtractor.test.ts +93 -0
- package/Tests/Server/Utils/SecurityEvent/DetectionRuleEvaluator.test.ts +1098 -0
- package/Tests/Server/Utils/SecurityEvent/GoogleSecOpsClient.test.ts +308 -0
- package/Tests/Server/Utils/SecurityEvent/GoogleSecOpsPoller.test.ts +271 -0
- package/Tests/Server/Utils/SecurityEvent/SecurityEventRow.test.ts +272 -0
- package/Tests/Server/Utils/SecurityEvent/SigmaClickhouseCompiler.test.ts +511 -0
- package/Tests/Server/Utils/Telemetry/LlmCostBudgetEvaluator.test.ts +497 -0
- package/Tests/Server/Utils/Telemetry/LlmSpan.test.ts +380 -0
- package/Tests/Server/Utils/Telemetry/LogErrorPatternSql.test.ts +207 -0
- package/Tests/Server/Utils/UserPermission/ProjectUserGrant.test.ts +293 -0
- package/Tests/Types/Monitor/MonitorStepInfraMonitorUtils.test.ts +194 -0
- package/Tests/Types/Monitor/MonitorStepSecurityEventsMonitor.test.ts +201 -0
- package/Tests/Types/SecurityEvent/OcsfEventClass.test.ts +105 -0
- package/Tests/Types/SecurityEvent/OcsfSeverity.test.ts +111 -0
- package/Tests/Types/Telemetry/LlmCostCatalog.test.ts +516 -0
- package/Tests/UI/Components/ActiveFilterChipsOperatorValues.test.tsx +222 -0
- package/Tests/UI/Components/BulkActionPermissionGating.test.tsx +296 -0
- package/Tests/UI/Components/CardModelDetailPermissionGating.test.tsx +305 -0
- package/Tests/UI/Components/CustomFields/CustomFieldsDetail.test.tsx +23 -0
- package/Tests/UI/Components/DictionaryFilterOperatorDisplay.test.ts +239 -0
- package/Tests/UI/Components/DisabledButtonTooltip.test.tsx +267 -0
- package/Tests/UI/Components/DuplicateModel.test.tsx +37 -0
- package/Tests/UI/Components/ModelCardPermissionGating.test.tsx +348 -0
- package/Tests/UI/Components/ModelDelete.test.tsx +25 -1
- package/Tests/UI/Components/ModelFormCreatePermission.test.tsx +342 -0
- package/Tests/UI/Components/ModelTable/BaseModelTablePermissionGating.test.tsx +680 -0
- package/Tests/UI/Components/OrderedStatesListCreateGate.test.tsx +174 -0
- package/Tests/UI/Components/SavedViewsDropdownSearch.test.tsx +1127 -0
- package/Tests/UI/Components/SavedViewsFacetSection.test.tsx +958 -0
- package/Tests/UI/Components/SavedViewsList.test.ts +699 -0
- package/Tests/UI/Components/SavedViewsSidebarIntegration.test.tsx +640 -0
- package/Tests/UI/Components/SavedViewsSurfaceParity.test.tsx +679 -0
- package/Tests/UI/Components/TableViewLoadFailure.test.tsx +248 -0
- package/Tests/UI/Types/UseComponentOutsideClick.test.tsx +226 -0
- package/Tests/UI/Utils/PermissionGate.test.ts +467 -0
- package/Tests/Utils/Measurement/MeasurementEvaluator.test.ts +639 -0
- package/Tests/Utils/Monitor/MonitorSummarySnapshotUtil.test.ts +1 -0
- package/Tests/Utils/Monitor/NetworkDeviceLinkRuleUtil.test.ts +285 -0
- package/Tests/Utils/NetworkDevice/DeviceHealthStateUtil.test.ts +433 -0
- package/Tests/Utils/SecurityEvent/GenericNormalizer.test.ts +204 -0
- package/Tests/Utils/SecurityEvent/GoogleSecOpsAlertNormalizer.test.ts +252 -0
- package/Tests/Utils/SecurityEvent/NormalizerHelpers.test.ts +274 -0
- package/Tests/Utils/SecurityEvent/OcsfNormalizer.test.ts +208 -0
- package/Tests/Utils/SecurityEvent/SecurityEventNormalizer.test.ts +172 -0
- package/Tests/Utils/SecurityEvent/SigmaRuleParser.test.ts +471 -0
- package/Tests/Utils/SecurityEvent/UdmNormalizer.test.ts +361 -0
- package/Tests/Utils/Telemetry/CrossSignalScope.test.ts +82 -0
- package/Tests/Utils/Telemetry/LogErrorPattern.test.ts +463 -0
- package/Types/AI/AIChatTypes.ts +1 -0
- package/Types/Alerts/AlertMeasurementAnchorType.ts +14 -0
- package/Types/Alerts/AlertStateRole.ts +11 -0
- package/Types/AnalyticsDatabase/AnalyticsTableName.ts +16 -0
- package/Types/Dashboard/Chart/ChartType.ts +1 -0
- package/Types/Dashboard/DashboardComponentType.ts +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardSecurityEventsFlowComponent.ts +18 -0
- package/Types/Dashboard/DashboardComponents/DashboardSecurityEventsListComponent.ts +16 -0
- package/Types/Incident/IncidentMeasurementAnchorType.ts +34 -0
- package/Types/Incident/IncidentStateRole.ts +14 -0
- package/Types/Marketing/Attribution.ts +75 -0
- package/Types/Marketing/MarketingConversion.ts +37 -7
- package/Types/Measurement/MeasurementAggregationType.ts +43 -0
- package/Types/Measurement/MeasurementAnchorKind.ts +23 -0
- package/Types/Measurement/MeasurementOccurrence.ts +14 -0
- package/Types/Measurement/MeasurementStatus.ts +34 -0
- package/Types/MeteredPlan/ProductType.ts +1 -0
- package/Types/Monitor/CriteriaFilter.ts +3 -0
- package/Types/Monitor/MonitorCriteriaInstance.ts +64 -0
- package/Types/Monitor/MonitorStep.ts +28 -0
- package/Types/Monitor/MonitorStepSecurityEventsMonitor.ts +100 -0
- package/Types/Monitor/MonitorType.ts +20 -0
- package/Types/Monitor/SecurityEventsMonitor/SecurityEventsMonitorResponse.ts +17 -0
- package/Types/Permission.ts +399 -2
- package/Types/ScheduledMaintenance/ScheduledMaintenanceMeasurementAnchorType.ts +20 -0
- package/Types/ScheduledMaintenance/ScheduledMaintenanceStateRole.ts +16 -0
- package/Types/SecurityEvent/DetectionFindingConstants.ts +24 -0
- package/Types/SecurityEvent/NormalizedSecurityEvent.ts +92 -0
- package/Types/SecurityEvent/OcsfEventClass.ts +205 -0
- package/Types/SecurityEvent/OcsfSeverity.ts +88 -0
- package/Types/SecurityEvent/SecurityEventFormat.ts +23 -0
- package/Types/SecurityEvent/SigmaRule.ts +70 -0
- package/Types/Telemetry/LlmConventions.ts +20 -1
- package/Types/Telemetry/LlmCostCatalog.ts +557 -0
- package/Types/Telemetry/ServiceType.ts +1 -0
- package/Types/Telemetry/TelemetryRetentionConfig.ts +5 -1
- package/Types/Telemetry/TelemetryType.ts +1 -0
- package/Types/TwoFactorAuthStatus.ts +42 -0
- package/Types/UserAuthenticationStatus.ts +18 -0
- package/UI/Components/ActionButton/ActionButtonSchema.ts +7 -0
- package/UI/Components/BulkUpdate/BulkArchiveActions.tsx +35 -2
- package/UI/Components/BulkUpdate/BulkLabelActions.tsx +34 -1
- package/UI/Components/BulkUpdate/BulkOwnerActions.tsx +45 -1
- package/UI/Components/BulkUpdate/BulkUpdateForm.tsx +3 -0
- package/UI/Components/Button/Button.tsx +37 -2
- package/UI/Components/Card/Card.tsx +6 -0
- package/UI/Components/CustomFields/CustomFieldsDetail.tsx +24 -1
- package/UI/Components/Dictionary/DictionaryFilterOperator.ts +57 -0
- package/UI/Components/DuplicateModel/DuplicateModel.tsx +16 -0
- package/UI/Components/Forms/ModelForm.tsx +54 -2
- package/UI/Components/List/ListRow.tsx +6 -0
- package/UI/Components/LogsViewer/components/ActiveFilterChips.tsx +34 -7
- package/UI/Components/LogsViewer/components/LogsFacetSidebar.tsx +7 -40
- package/UI/Components/LogsViewer/components/SavedViewsDropdown.tsx +155 -3
- package/UI/Components/ModelDelete/ModelDelete.tsx +20 -0
- package/UI/Components/ModelDetail/CardModelDetail.tsx +36 -23
- package/UI/Components/ModelList/ModelList.tsx +21 -2
- package/UI/Components/ModelList/StaticModelList.tsx +11 -0
- package/UI/Components/ModelTable/BaseModelTable.tsx +168 -62
- package/UI/Components/ModelTable/ModelTable.tsx +16 -10
- package/UI/Components/ModelTable/TableView.tsx +36 -4
- package/UI/Components/MoreMenu/MoreMenuItem.tsx +36 -4
- package/UI/Components/OrderedStatesList/Item.tsx +6 -0
- package/UI/Components/OrderedStatesList/OrderedStatesList.tsx +81 -47
- package/UI/Components/ResetObjectID/ResetObjectID.tsx +16 -0
- package/UI/Components/SavedViews/SavedViewsFacetSection.tsx +242 -0
- package/UI/Components/SavedViews/SavedViewsList.ts +168 -0
- package/UI/Components/SavedViews/SavedViewsSearchInput.tsx +46 -0
- package/UI/Components/SavedViews/SavedViewsShowMoreButton.tsx +44 -0
- package/UI/Components/Table/TableRow.tsx +12 -0
- package/UI/Components/TelemetryViewer/components/SavedViewsDropdown.tsx +152 -2
- package/UI/Types/UseComponentOutsideClick.ts +47 -0
- package/UI/Utils/PermissionGate.ts +277 -0
- package/Utils/Dashboard/Components/DashboardSecurityEventsFlowComponent.ts +84 -0
- package/Utils/Dashboard/Components/DashboardSecurityEventsListComponent.ts +110 -0
- package/Utils/Dashboard/Components/Index.ts +14 -0
- package/Utils/Measurement/MeasurementEvaluator.ts +359 -0
- package/Utils/Monitor/MonitorSummarySnapshotUtil.ts +1 -0
- package/Utils/Monitor/NetworkDeviceLinkRuleUtil.ts +93 -11
- package/Utils/NetworkDevice/DeviceHealthStateUtil.ts +231 -0
- package/Utils/SecurityEvent/GenericNormalizer.ts +208 -0
- package/Utils/SecurityEvent/GoogleSecOpsAlertNormalizer.ts +206 -0
- package/Utils/SecurityEvent/NormalizerHelpers.ts +263 -0
- package/Utils/SecurityEvent/OcsfNormalizer.ts +194 -0
- package/Utils/SecurityEvent/SecurityEventNormalizer.ts +82 -0
- package/Utils/SecurityEvent/Sigma/SigmaRuleParser.ts +579 -0
- package/Utils/SecurityEvent/UdmNormalizer.ts +442 -0
- package/Utils/Telemetry/CrossSignalScope.ts +46 -9
- package/Utils/Telemetry/LogErrorPattern.ts +350 -0
- package/build/dist/Models/AnalyticsModels/Index.js +10 -0
- package/build/dist/Models/AnalyticsModels/Index.js.map +1 -1
- package/build/dist/Models/AnalyticsModels/LogCountBaseline.js +159 -0
- package/build/dist/Models/AnalyticsModels/LogCountBaseline.js.map +1 -0
- package/build/dist/Models/AnalyticsModels/SecurityEvent.js +596 -0
- package/build/dist/Models/AnalyticsModels/SecurityEvent.js.map +1 -0
- package/build/dist/Models/AnalyticsModels/Span.js +24 -1
- package/build/dist/Models/AnalyticsModels/Span.js.map +1 -1
- package/build/dist/Models/AnalyticsModels/SpanCountBaseline.js +181 -0
- package/build/dist/Models/AnalyticsModels/SpanCountBaseline.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Alert.js +43 -0
- package/build/dist/Models/DatabaseModels/Alert.js.map +1 -1
- package/build/dist/Models/DatabaseModels/AlertMeasurement.js +1143 -0
- package/build/dist/Models/DatabaseModels/AlertMeasurement.js.map +1 -0
- package/build/dist/Models/DatabaseModels/AlertMeasurementValue.js +523 -0
- package/build/dist/Models/DatabaseModels/AlertMeasurementValue.js.map +1 -0
- package/build/dist/Models/DatabaseModels/AlertStateTimeline.js +9 -2
- package/build/dist/Models/DatabaseModels/AlertStateTimeline.js.map +1 -1
- package/build/dist/Models/DatabaseModels/BillingPaymentMethod.js +10 -11
- package/build/dist/Models/DatabaseModels/BillingPaymentMethod.js.map +1 -1
- package/build/dist/Models/DatabaseModels/DetectionRule.js +598 -0
- package/build/dist/Models/DatabaseModels/DetectionRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/GoogleSecOpsConnection.js +410 -0
- package/build/dist/Models/DatabaseModels/GoogleSecOpsConnection.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Incident.js +43 -0
- package/build/dist/Models/DatabaseModels/Incident.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncidentMeasurement.js +1143 -0
- package/build/dist/Models/DatabaseModels/IncidentMeasurement.js.map +1 -0
- package/build/dist/Models/DatabaseModels/IncidentMeasurementValue.js +523 -0
- package/build/dist/Models/DatabaseModels/IncidentMeasurementValue.js.map +1 -0
- package/build/dist/Models/DatabaseModels/IncidentStateTimeline.js +9 -2
- package/build/dist/Models/DatabaseModels/IncidentStateTimeline.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncomingCallPolicyLabelRule.js +36 -0
- package/build/dist/Models/DatabaseModels/IncomingCallPolicyLabelRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncomingCallPolicyOwnerRule.js +42 -0
- package/build/dist/Models/DatabaseModels/IncomingCallPolicyOwnerRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Index.js +20 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Label.js +11 -0
- package/build/dist/Models/DatabaseModels/Label.js.map +1 -1
- package/build/dist/Models/DatabaseModels/LlmCostBudget.js +681 -0
- package/build/dist/Models/DatabaseModels/LlmCostBudget.js.map +1 -0
- package/build/dist/Models/DatabaseModels/LlmModelPrice.js +503 -0
- package/build/dist/Models/DatabaseModels/LlmModelPrice.js.map +1 -0
- package/build/dist/Models/DatabaseModels/LogSavedView.js +87 -0
- package/build/dist/Models/DatabaseModels/LogSavedView.js.map +1 -1
- package/build/dist/Models/DatabaseModels/MarketingConversion.js +224 -8
- package/build/dist/Models/DatabaseModels/MarketingConversion.js.map +1 -1
- package/build/dist/Models/DatabaseModels/MetricSavedView.js +59 -0
- package/build/dist/Models/DatabaseModels/MetricSavedView.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyLabelRule.js +36 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyLabelRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyOwnerRule.js +42 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyOwnerRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyScheduleLabelRule.js +36 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyScheduleLabelRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyScheduleOwnerRule.js +42 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyScheduleOwnerRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Probe.js +21 -0
- package/build/dist/Models/DatabaseModels/Probe.js.map +1 -1
- package/build/dist/Models/DatabaseModels/RunbookLabelRule.js +36 -0
- package/build/dist/Models/DatabaseModels/RunbookLabelRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/RunbookOwnerRule.js +42 -0
- package/build/dist/Models/DatabaseModels/RunbookOwnerRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +1133 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +515 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +9 -2
- package/build/dist/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js.map +1 -1
- package/build/dist/Models/DatabaseModels/StatusPageLabelRule.js +36 -0
- package/build/dist/Models/DatabaseModels/StatusPageLabelRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/StatusPageOwnerRule.js +42 -0
- package/build/dist/Models/DatabaseModels/StatusPageOwnerRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/TableView.js +15 -0
- package/build/dist/Models/DatabaseModels/TableView.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Team.js +13 -0
- package/build/dist/Models/DatabaseModels/Team.js.map +1 -1
- package/build/dist/Models/DatabaseModels/TeamMember.js +8 -0
- package/build/dist/Models/DatabaseModels/TeamMember.js.map +1 -1
- package/build/dist/Models/DatabaseModels/TraceSavedView.js +52 -0
- package/build/dist/Models/DatabaseModels/TraceSavedView.js.map +1 -1
- package/build/dist/Models/DatabaseModels/WorkflowLabelRule.js +36 -0
- package/build/dist/Models/DatabaseModels/WorkflowLabelRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/WorkflowOwnerRule.js +42 -0
- package/build/dist/Models/DatabaseModels/WorkflowOwnerRule.js.map +1 -1
- package/build/dist/Server/API/TelemetryAPI.js +136 -0
- package/build/dist/Server/API/TelemetryAPI.js.map +1 -1
- package/build/dist/Server/API/UserAPI.js +75 -2
- package/build/dist/Server/API/UserAPI.js.map +1 -1
- package/build/dist/Server/EnvironmentConfig.js +29 -1
- package/build/dist/Server/EnvironmentConfig.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1788000000000-AddDetectionRuleAndGoogleSecOpsConnection.js +36 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1788000000000-AddDetectionRuleAndGoogleSecOpsConnection.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1788100000000-AddMeasurements.js +162 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1788100000000-AddMeasurements.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1788200000000-AddLlmCostBudget.js +40 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1788200000000-AddLlmCostBudget.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1788300000000-AddLlmModelPrice.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1788300000000-AddLlmModelPrice.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1788400000000-AddMarketingConversionAttribution.js +52 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1788400000000-AddMarketingConversionAttribution.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1788500000000-RemoveLlmCostBudgetAlertColumns.js +38 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1788500000000-RemoveLlmCostBudgetAlertColumns.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1788600000000-AddDetectionRuleIncidentColumns.js +24 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1788600000000-AddDetectionRuleIncidentColumns.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +14 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Middleware/IdentityRateLimit.js +491 -0
- package/build/dist/Server/Middleware/IdentityRateLimit.js.map +1 -0
- package/build/dist/Server/Services/AccessTokenService.js +13 -2
- package/build/dist/Server/Services/AccessTokenService.js.map +1 -1
- package/build/dist/Server/Services/AlertMeasurementService.js +250 -0
- package/build/dist/Server/Services/AlertMeasurementService.js.map +1 -0
- package/build/dist/Server/Services/AlertMeasurementValueService.js +400 -0
- package/build/dist/Server/Services/AlertMeasurementValueService.js.map +1 -0
- package/build/dist/Server/Services/AlertService.js +37 -0
- package/build/dist/Server/Services/AlertService.js.map +1 -1
- package/build/dist/Server/Services/AlertStateTimelineService.js +48 -0
- package/build/dist/Server/Services/AlertStateTimelineService.js.map +1 -1
- package/build/dist/Server/Services/DetectionRuleService.js +50 -0
- package/build/dist/Server/Services/DetectionRuleService.js.map +1 -0
- package/build/dist/Server/Services/GoogleSecOpsConnectionService.js +55 -0
- package/build/dist/Server/Services/GoogleSecOpsConnectionService.js.map +1 -0
- package/build/dist/Server/Services/IncidentMeasurementService.js +252 -0
- package/build/dist/Server/Services/IncidentMeasurementService.js.map +1 -0
- package/build/dist/Server/Services/IncidentMeasurementValueService.js +413 -0
- package/build/dist/Server/Services/IncidentMeasurementValueService.js.map +1 -0
- package/build/dist/Server/Services/IncidentService.js +41 -0
- package/build/dist/Server/Services/IncidentService.js.map +1 -1
- package/build/dist/Server/Services/IncidentStateTimelineService.js +50 -0
- package/build/dist/Server/Services/IncidentStateTimelineService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +30 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/LlmCostBudgetService.js +89 -0
- package/build/dist/Server/Services/LlmCostBudgetService.js.map +1 -0
- package/build/dist/Server/Services/LlmModelPriceService.js +163 -0
- package/build/dist/Server/Services/LlmModelPriceService.js.map +1 -0
- package/build/dist/Server/Services/LogAggregationService.js +709 -0
- package/build/dist/Server/Services/LogAggregationService.js.map +1 -1
- package/build/dist/Server/Services/LogCountBaselineService.js +112 -0
- package/build/dist/Server/Services/LogCountBaselineService.js.map +1 -0
- package/build/dist/Server/Services/MutableMetricService.js +28 -9
- package/build/dist/Server/Services/MutableMetricService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceMeasurementService.js +254 -0
- package/build/dist/Server/Services/ScheduledMaintenanceMeasurementService.js.map +1 -0
- package/build/dist/Server/Services/ScheduledMaintenanceMeasurementValueService.js +434 -0
- package/build/dist/Server/Services/ScheduledMaintenanceMeasurementValueService.js.map +1 -0
- package/build/dist/Server/Services/ScheduledMaintenanceService.js +37 -0
- package/build/dist/Server/Services/ScheduledMaintenanceService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceStateTimelineService.js +134 -0
- package/build/dist/Server/Services/ScheduledMaintenanceStateTimelineService.js.map +1 -1
- package/build/dist/Server/Services/SecurityEventService.js +64 -0
- package/build/dist/Server/Services/SecurityEventService.js.map +1 -0
- package/build/dist/Server/Services/SpanCountBaselineService.js +122 -0
- package/build/dist/Server/Services/SpanCountBaselineService.js.map +1 -0
- package/build/dist/Server/Services/StatusPageService.js +4 -3
- package/build/dist/Server/Services/StatusPageService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryUsageBillingService.js +15 -3
- package/build/dist/Server/Services/TelemetryUsageBillingService.js.map +1 -1
- package/build/dist/Server/Services/UserService.js +262 -42
- package/build/dist/Server/Services/UserService.js.map +1 -1
- package/build/dist/Server/Services/UserTotpAuthService.js +0 -73
- package/build/dist/Server/Services/UserTotpAuthService.js.map +1 -1
- package/build/dist/Server/Services/UserWebAuthnService.js +1 -73
- package/build/dist/Server/Services/UserWebAuthnService.js.map +1 -1
- package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js +13 -0
- package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/TenantPermission.js +10 -0
- package/build/dist/Server/Types/Database/Permissions/TenantPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/QueryHelper.js +1 -1
- package/build/dist/Server/Types/Database/QueryHelper.js.map +1 -1
- package/build/dist/Server/Utils/AI/Chat/ObservabilityChatPrompt.js +1 -1
- package/build/dist/Server/Utils/AI/Toolbox/Index.js +3 -0
- package/build/dist/Server/Utils/AI/Toolbox/Index.js.map +1 -1
- package/build/dist/Server/Utils/AI/Toolbox/SecurityEventTools.js +257 -0
- package/build/dist/Server/Utils/AI/Toolbox/SecurityEventTools.js.map +1 -0
- package/build/dist/Server/Utils/AnalyticsDatabase/StatementGenerator.js +13 -4
- package/build/dist/Server/Utils/AnalyticsDatabase/StatementGenerator.js.map +1 -1
- package/build/dist/Server/Utils/Attribution.js +77 -33
- package/build/dist/Server/Utils/Attribution.js.map +1 -1
- package/build/dist/Server/Utils/Marketing/ConversionUploadProvider.js +46 -9
- package/build/dist/Server/Utils/Marketing/ConversionUploadProvider.js.map +1 -1
- package/build/dist/Server/Utils/Marketing/Providers/GoogleAds.js +52 -8
- package/build/dist/Server/Utils/Marketing/Providers/GoogleAds.js.map +1 -1
- package/build/dist/Server/Utils/Marketing/Providers/LinkedIn.js +41 -17
- package/build/dist/Server/Utils/Marketing/Providers/LinkedIn.js.map +1 -1
- package/build/dist/Server/Utils/Marketing/Providers/Meta.js +42 -18
- package/build/dist/Server/Utils/Marketing/Providers/Meta.js.map +1 -1
- package/build/dist/Server/Utils/Marketing/Providers/MicrosoftAds.js +24 -11
- package/build/dist/Server/Utils/Marketing/Providers/MicrosoftAds.js.map +1 -1
- package/build/dist/Server/Utils/Marketing/Providers/Reddit.js +34 -15
- package/build/dist/Server/Utils/Marketing/Providers/Reddit.js.map +1 -1
- package/build/dist/Server/Utils/Measurement/MeasurementDefinitionValidator.js +109 -0
- package/build/dist/Server/Utils/Measurement/MeasurementDefinitionValidator.js.map +1 -0
- package/build/dist/Server/Utils/Measurement/MeasurementMetricWriter.js +131 -0
- package/build/dist/Server/Utils/Measurement/MeasurementMetricWriter.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/Criteria/CountAnomaly.js +111 -0
- package/build/dist/Server/Utils/Monitor/Criteria/CountAnomaly.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/Criteria/LogMonitorCriteria.js +84 -1
- package/build/dist/Server/Utils/Monitor/Criteria/LogMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/SecurityEventsMonitorCriteria.js +35 -0
- package/build/dist/Server/Utils/Monitor/Criteria/SecurityEventsMonitorCriteria.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/Criteria/TraceMonitorCriteria.js +84 -1
- package/build/dist/Server/Utils/Monitor/Criteria/TraceMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaDataExtractor.js +7 -0
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaDataExtractor.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +12 -0
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaObservationBuilder.js +9 -0
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaObservationBuilder.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorResource.js +10 -0
- package/build/dist/Server/Utils/Monitor/MonitorResource.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorStepResourceIdentity.js +6 -5
- package/build/dist/Server/Utils/Monitor/MonitorStepResourceIdentity.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorStepsReferenceExtractor.js +1 -0
- package/build/dist/Server/Utils/Monitor/MonitorStepsReferenceExtractor.js.map +1 -1
- package/build/dist/Server/Utils/SecurityEvent/DetectionRuleEvaluator.js +600 -0
- package/build/dist/Server/Utils/SecurityEvent/DetectionRuleEvaluator.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsClient.js +145 -0
- package/build/dist/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsClient.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsPoller.js +176 -0
- package/build/dist/Server/Utils/SecurityEvent/GoogleSecOps/GoogleSecOpsPoller.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/SecurityEventRow.js +69 -0
- package/build/dist/Server/Utils/SecurityEvent/SecurityEventRow.js.map +1 -0
- package/build/dist/Server/Utils/SecurityEvent/Sigma/SigmaClickhouseCompiler.js +493 -0
- package/build/dist/Server/Utils/SecurityEvent/Sigma/SigmaClickhouseCompiler.js.map +1 -0
- package/build/dist/Server/Utils/Telemetry/LlmCostBudgetEvaluator.js +317 -0
- package/build/dist/Server/Utils/Telemetry/LlmCostBudgetEvaluator.js.map +1 -0
- package/build/dist/Server/Utils/Telemetry/LlmSpan.js +56 -4
- package/build/dist/Server/Utils/Telemetry/LlmSpan.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/LogErrorPatternSql.js +112 -0
- package/build/dist/Server/Utils/Telemetry/LogErrorPatternSql.js.map +1 -0
- package/build/dist/Server/Utils/UserPermission/UserPermission.js +46 -1
- package/build/dist/Server/Utils/UserPermission/UserPermission.js.map +1 -1
- package/build/dist/Types/AI/AIChatTypes.js +1 -0
- package/build/dist/Types/AI/AIChatTypes.js.map +1 -1
- package/build/dist/Types/Alerts/AlertMeasurementAnchorType.js +15 -0
- package/build/dist/Types/Alerts/AlertMeasurementAnchorType.js.map +1 -0
- package/build/dist/Types/Alerts/AlertStateRole.js +12 -0
- package/build/dist/Types/Alerts/AlertStateRole.js.map +1 -0
- package/build/dist/Types/AnalyticsDatabase/AnalyticsTableName.js +16 -0
- package/build/dist/Types/AnalyticsDatabase/AnalyticsTableName.js.map +1 -1
- package/build/dist/Types/Dashboard/Chart/ChartType.js +1 -0
- package/build/dist/Types/Dashboard/Chart/ChartType.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponentType.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponentType.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardSecurityEventsFlowComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardSecurityEventsFlowComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardSecurityEventsListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardSecurityEventsListComponent.js.map +1 -0
- package/build/dist/Types/Incident/IncidentMeasurementAnchorType.js +29 -0
- package/build/dist/Types/Incident/IncidentMeasurementAnchorType.js.map +1 -0
- package/build/dist/Types/Incident/IncidentStateRole.js +15 -0
- package/build/dist/Types/Incident/IncidentStateRole.js.map +1 -0
- package/build/dist/Types/Marketing/Attribution.js +68 -0
- package/build/dist/Types/Marketing/Attribution.js.map +1 -0
- package/build/dist/Types/Marketing/MarketingConversion.js +36 -7
- package/build/dist/Types/Marketing/MarketingConversion.js.map +1 -1
- package/build/dist/Types/Measurement/MeasurementAggregationType.js +40 -0
- package/build/dist/Types/Measurement/MeasurementAggregationType.js.map +1 -0
- package/build/dist/Types/Measurement/MeasurementAnchorKind.js +22 -0
- package/build/dist/Types/Measurement/MeasurementAnchorKind.js.map +1 -0
- package/build/dist/Types/Measurement/MeasurementOccurrence.js +15 -0
- package/build/dist/Types/Measurement/MeasurementOccurrence.js.map +1 -0
- package/build/dist/Types/Measurement/MeasurementStatus.js +32 -0
- package/build/dist/Types/Measurement/MeasurementStatus.js.map +1 -0
- package/build/dist/Types/MeteredPlan/ProductType.js +1 -0
- package/build/dist/Types/MeteredPlan/ProductType.js.map +1 -1
- package/build/dist/Types/Monitor/CriteriaFilter.js +2 -0
- package/build/dist/Types/Monitor/CriteriaFilter.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorCriteriaInstance.js +59 -0
- package/build/dist/Types/Monitor/MonitorCriteriaInstance.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorStep.js +17 -0
- package/build/dist/Types/Monitor/MonitorStep.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorStepSecurityEventsMonitor.js +64 -0
- package/build/dist/Types/Monitor/MonitorStepSecurityEventsMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorType.js +19 -0
- package/build/dist/Types/Monitor/MonitorType.js.map +1 -1
- package/build/dist/Types/Monitor/SecurityEventsMonitor/SecurityEventsMonitorResponse.js +2 -0
- package/build/dist/Types/Monitor/SecurityEventsMonitor/SecurityEventsMonitorResponse.js.map +1 -0
- package/build/dist/Types/Permission.js +347 -2
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/ScheduledMaintenance/ScheduledMaintenanceMeasurementAnchorType.js +19 -0
- package/build/dist/Types/ScheduledMaintenance/ScheduledMaintenanceMeasurementAnchorType.js.map +1 -0
- package/build/dist/Types/ScheduledMaintenance/ScheduledMaintenanceStateRole.js +17 -0
- package/build/dist/Types/ScheduledMaintenance/ScheduledMaintenanceStateRole.js.map +1 -0
- package/build/dist/Types/SecurityEvent/DetectionFindingConstants.js +18 -0
- package/build/dist/Types/SecurityEvent/DetectionFindingConstants.js.map +1 -0
- package/build/dist/Types/SecurityEvent/NormalizedSecurityEvent.js +2 -0
- package/build/dist/Types/SecurityEvent/NormalizedSecurityEvent.js.map +1 -0
- package/build/dist/Types/SecurityEvent/OcsfEventClass.js +181 -0
- package/build/dist/Types/SecurityEvent/OcsfEventClass.js.map +1 -0
- package/build/dist/Types/SecurityEvent/OcsfSeverity.js +81 -0
- package/build/dist/Types/SecurityEvent/OcsfSeverity.js.map +1 -0
- package/build/dist/Types/SecurityEvent/SecurityEventFormat.js +21 -0
- package/build/dist/Types/SecurityEvent/SecurityEventFormat.js.map +1 -0
- package/build/dist/Types/SecurityEvent/SigmaRule.js +16 -0
- package/build/dist/Types/SecurityEvent/SigmaRule.js.map +1 -0
- package/build/dist/Types/Telemetry/LlmConventions.js +19 -1
- package/build/dist/Types/Telemetry/LlmConventions.js.map +1 -1
- package/build/dist/Types/Telemetry/LlmCostCatalog.js +484 -0
- package/build/dist/Types/Telemetry/LlmCostCatalog.js.map +1 -0
- package/build/dist/Types/Telemetry/ServiceType.js +1 -0
- package/build/dist/Types/Telemetry/ServiceType.js.map +1 -1
- package/build/dist/Types/Telemetry/TelemetryRetentionConfig.js.map +1 -1
- package/build/dist/Types/Telemetry/TelemetryType.js +1 -0
- package/build/dist/Types/Telemetry/TelemetryType.js.map +1 -1
- package/build/dist/Types/TwoFactorAuthStatus.js +41 -0
- package/build/dist/Types/TwoFactorAuthStatus.js.map +1 -0
- package/build/dist/UI/Components/BulkUpdate/BulkArchiveActions.js +16 -2
- package/build/dist/UI/Components/BulkUpdate/BulkArchiveActions.js.map +1 -1
- package/build/dist/UI/Components/BulkUpdate/BulkLabelActions.js +15 -1
- package/build/dist/UI/Components/BulkUpdate/BulkLabelActions.js.map +1 -1
- package/build/dist/UI/Components/BulkUpdate/BulkOwnerActions.js +20 -1
- package/build/dist/UI/Components/BulkUpdate/BulkOwnerActions.js.map +1 -1
- package/build/dist/UI/Components/BulkUpdate/BulkUpdateForm.js +1 -1
- package/build/dist/UI/Components/BulkUpdate/BulkUpdateForm.js.map +1 -1
- package/build/dist/UI/Components/Button/Button.js +22 -1
- package/build/dist/UI/Components/Button/Button.js.map +1 -1
- package/build/dist/UI/Components/Card/Card.js +1 -1
- package/build/dist/UI/Components/Card/Card.js.map +1 -1
- package/build/dist/UI/Components/CustomFields/CustomFieldsDetail.js +14 -1
- package/build/dist/UI/Components/CustomFields/CustomFieldsDetail.js.map +1 -1
- package/build/dist/UI/Components/Dictionary/DictionaryFilterOperator.js +47 -0
- package/build/dist/UI/Components/Dictionary/DictionaryFilterOperator.js.map +1 -1
- package/build/dist/UI/Components/DuplicateModel/DuplicateModel.js +8 -0
- package/build/dist/UI/Components/DuplicateModel/DuplicateModel.js.map +1 -1
- package/build/dist/UI/Components/Forms/ModelForm.js +40 -1
- package/build/dist/UI/Components/Forms/ModelForm.js.map +1 -1
- package/build/dist/UI/Components/List/ListRow.js +4 -1
- package/build/dist/UI/Components/List/ListRow.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/ActiveFilterChips.js +32 -7
- package/build/dist/UI/Components/LogsViewer/components/ActiveFilterChips.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/LogsFacetSidebar.js +2 -17
- package/build/dist/UI/Components/LogsViewer/components/LogsFacetSidebar.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/SavedViewsDropdown.js +93 -4
- package/build/dist/UI/Components/LogsViewer/components/SavedViewsDropdown.js.map +1 -1
- package/build/dist/UI/Components/ModelDelete/ModelDelete.js +13 -0
- package/build/dist/UI/Components/ModelDelete/ModelDelete.js.map +1 -1
- package/build/dist/UI/Components/ModelDetail/CardModelDetail.js +27 -11
- package/build/dist/UI/Components/ModelDetail/CardModelDetail.js.map +1 -1
- package/build/dist/UI/Components/ModelList/ModelList.js +13 -2
- package/build/dist/UI/Components/ModelList/ModelList.js.map +1 -1
- package/build/dist/UI/Components/ModelList/StaticModelList.js +4 -1
- package/build/dist/UI/Components/ModelList/StaticModelList.js.map +1 -1
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js +101 -40
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js.map +1 -1
- package/build/dist/UI/Components/ModelTable/ModelTable.js +9 -7
- package/build/dist/UI/Components/ModelTable/ModelTable.js.map +1 -1
- package/build/dist/UI/Components/ModelTable/TableView.js +32 -4
- package/build/dist/UI/Components/ModelTable/TableView.js.map +1 -1
- package/build/dist/UI/Components/MoreMenu/MoreMenuItem.js +19 -2
- package/build/dist/UI/Components/MoreMenu/MoreMenuItem.js.map +1 -1
- package/build/dist/UI/Components/OrderedStatesList/Item.js +4 -1
- package/build/dist/UI/Components/OrderedStatesList/Item.js.map +1 -1
- package/build/dist/UI/Components/OrderedStatesList/OrderedStatesList.js +33 -32
- package/build/dist/UI/Components/OrderedStatesList/OrderedStatesList.js.map +1 -1
- package/build/dist/UI/Components/ResetObjectID/ResetObjectID.js +8 -0
- package/build/dist/UI/Components/ResetObjectID/ResetObjectID.js.map +1 -1
- package/build/dist/UI/Components/SavedViews/SavedViewsFacetSection.js +98 -0
- package/build/dist/UI/Components/SavedViews/SavedViewsFacetSection.js.map +1 -0
- package/build/dist/UI/Components/SavedViews/SavedViewsList.js +99 -0
- package/build/dist/UI/Components/SavedViews/SavedViewsList.js.map +1 -0
- package/build/dist/UI/Components/SavedViews/SavedViewsSearchInput.js +17 -0
- package/build/dist/UI/Components/SavedViews/SavedViewsSearchInput.js.map +1 -0
- package/build/dist/UI/Components/SavedViews/SavedViewsShowMoreButton.js +15 -0
- package/build/dist/UI/Components/SavedViews/SavedViewsShowMoreButton.js.map +1 -0
- package/build/dist/UI/Components/Table/TableRow.js +8 -2
- package/build/dist/UI/Components/Table/TableRow.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/SavedViewsDropdown.js +93 -4
- package/build/dist/UI/Components/TelemetryViewer/components/SavedViewsDropdown.js.map +1 -1
- package/build/dist/UI/Types/UseComponentOutsideClick.js +39 -0
- package/build/dist/UI/Types/UseComponentOutsideClick.js.map +1 -1
- package/build/dist/UI/Utils/PermissionGate.js +164 -0
- package/build/dist/UI/Utils/PermissionGate.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardSecurityEventsFlowComponent.js +70 -0
- package/build/dist/Utils/Dashboard/Components/DashboardSecurityEventsFlowComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardSecurityEventsListComponent.js +92 -0
- package/build/dist/Utils/Dashboard/Components/DashboardSecurityEventsListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/Index.js +8 -0
- package/build/dist/Utils/Dashboard/Components/Index.js.map +1 -1
- package/build/dist/Utils/Measurement/MeasurementEvaluator.js +210 -0
- package/build/dist/Utils/Measurement/MeasurementEvaluator.js.map +1 -0
- package/build/dist/Utils/Monitor/MonitorSummarySnapshotUtil.js +1 -0
- package/build/dist/Utils/Monitor/MonitorSummarySnapshotUtil.js.map +1 -1
- package/build/dist/Utils/Monitor/NetworkDeviceLinkRuleUtil.js +51 -10
- package/build/dist/Utils/Monitor/NetworkDeviceLinkRuleUtil.js.map +1 -1
- package/build/dist/Utils/NetworkDevice/DeviceHealthStateUtil.js +108 -0
- package/build/dist/Utils/NetworkDevice/DeviceHealthStateUtil.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/GenericNormalizer.js +176 -0
- package/build/dist/Utils/SecurityEvent/GenericNormalizer.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/GoogleSecOpsAlertNormalizer.js +146 -0
- package/build/dist/Utils/SecurityEvent/GoogleSecOpsAlertNormalizer.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/NormalizerHelpers.js +196 -0
- package/build/dist/Utils/SecurityEvent/NormalizerHelpers.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/OcsfNormalizer.js +136 -0
- package/build/dist/Utils/SecurityEvent/OcsfNormalizer.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/SecurityEventNormalizer.js +64 -0
- package/build/dist/Utils/SecurityEvent/SecurityEventNormalizer.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/Sigma/SigmaRuleParser.js +388 -0
- package/build/dist/Utils/SecurityEvent/Sigma/SigmaRuleParser.js.map +1 -0
- package/build/dist/Utils/SecurityEvent/UdmNormalizer.js +328 -0
- package/build/dist/Utils/SecurityEvent/UdmNormalizer.js.map +1 -0
- package/build/dist/Utils/Telemetry/CrossSignalScope.js +29 -7
- package/build/dist/Utils/Telemetry/CrossSignalScope.js.map +1 -1
- package/build/dist/Utils/Telemetry/LogErrorPattern.js +284 -0
- package/build/dist/Utils/Telemetry/LogErrorPattern.js.map +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
import { JSONObject } from "../../Types/JSON";
|
|
2
|
+
import NormalizedSecurityEvent from "../../Types/SecurityEvent/NormalizedSecurityEvent";
|
|
3
|
+
import OcsfSeverity, {
|
|
4
|
+
OcsfSeverityId,
|
|
5
|
+
normalizeOcsfSeverity,
|
|
6
|
+
} from "../../Types/SecurityEvent/OcsfSeverity";
|
|
7
|
+
import {
|
|
8
|
+
OcsfEventClassProps,
|
|
9
|
+
ocsfCategoryForClassUid,
|
|
10
|
+
ocsfEventClassByUid,
|
|
11
|
+
} from "../../Types/SecurityEvent/OcsfEventClass";
|
|
12
|
+
import {
|
|
13
|
+
buildObservables,
|
|
14
|
+
contentHashEventUid,
|
|
15
|
+
flattenPayload,
|
|
16
|
+
parseEventTime,
|
|
17
|
+
readString,
|
|
18
|
+
readStringArray,
|
|
19
|
+
readValue,
|
|
20
|
+
} from "./NormalizerHelpers";
|
|
21
|
+
|
|
22
|
+
/*
|
|
23
|
+
* Google SecOps (Chronicle) UDM event -> NormalizedSecurityEvent.
|
|
24
|
+
*
|
|
25
|
+
* UDM reaches us in two spellings: snake_case (BigQuery export, docs) and
|
|
26
|
+
* camelCase (Chronicle API responses). Every field read tolerates both.
|
|
27
|
+
* metadata.event_type drives the OCSF class mapping; anything unmapped
|
|
28
|
+
* keeps class uid 0 with a prettified class name so no event is dropped.
|
|
29
|
+
*
|
|
30
|
+
* https://cloud.google.com/chronicle/docs/reference/udm-field-list
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
interface UdmClassMapping {
|
|
34
|
+
classUid: number;
|
|
35
|
+
activityName: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const UDM_EVENT_TYPE_TO_OCSF: Record<string, UdmClassMapping> = {
|
|
39
|
+
// Identity & Access Management
|
|
40
|
+
USER_LOGIN: { classUid: 3002, activityName: "Logon" },
|
|
41
|
+
USER_LOGOUT: { classUid: 3002, activityName: "Logoff" },
|
|
42
|
+
USER_CREATION: { classUid: 3001, activityName: "Create" },
|
|
43
|
+
USER_DELETION: { classUid: 3001, activityName: "Delete" },
|
|
44
|
+
USER_CHANGE_PASSWORD: { classUid: 3001, activityName: "Change Password" },
|
|
45
|
+
USER_CHANGE_PERMISSIONS: {
|
|
46
|
+
classUid: 3005,
|
|
47
|
+
activityName: "Change Permissions",
|
|
48
|
+
},
|
|
49
|
+
USER_BADGE_IN: { classUid: 3002, activityName: "Logon" },
|
|
50
|
+
USER_UNCATEGORIZED: { classUid: 3001, activityName: "Other" },
|
|
51
|
+
GROUP_CREATION: { classUid: 3006, activityName: "Create" },
|
|
52
|
+
GROUP_DELETION: { classUid: 3006, activityName: "Delete" },
|
|
53
|
+
GROUP_MODIFICATION: { classUid: 3006, activityName: "Update" },
|
|
54
|
+
GROUP_UNCATEGORIZED: { classUid: 3006, activityName: "Other" },
|
|
55
|
+
|
|
56
|
+
// Network Activity
|
|
57
|
+
NETWORK_CONNECTION: { classUid: 4001, activityName: "Traffic" },
|
|
58
|
+
NETWORK_FLOW: { classUid: 4001, activityName: "Traffic" },
|
|
59
|
+
NETWORK_UNCATEGORIZED: { classUid: 4001, activityName: "Other" },
|
|
60
|
+
NETWORK_HTTP: { classUid: 4002, activityName: "HTTP Request" },
|
|
61
|
+
NETWORK_DNS: { classUid: 4003, activityName: "Query" },
|
|
62
|
+
NETWORK_DHCP: { classUid: 4004, activityName: "DHCP" },
|
|
63
|
+
NETWORK_SMTP: { classUid: 4009, activityName: "Send" },
|
|
64
|
+
NETWORK_FTP: { classUid: 4008, activityName: "Transfer" },
|
|
65
|
+
EMAIL_TRANSACTION: { classUid: 4009, activityName: "Send" },
|
|
66
|
+
EMAIL_UNCATEGORIZED: { classUid: 4009, activityName: "Other" },
|
|
67
|
+
|
|
68
|
+
// System Activity
|
|
69
|
+
PROCESS_LAUNCH: { classUid: 1007, activityName: "Launch" },
|
|
70
|
+
PROCESS_TERMINATION: { classUid: 1007, activityName: "Terminate" },
|
|
71
|
+
PROCESS_OPEN: { classUid: 1007, activityName: "Open" },
|
|
72
|
+
PROCESS_INJECTION: { classUid: 1007, activityName: "Inject" },
|
|
73
|
+
PROCESS_PRIVILEGE_ESCALATION: {
|
|
74
|
+
classUid: 1007,
|
|
75
|
+
activityName: "Privilege Escalation",
|
|
76
|
+
},
|
|
77
|
+
PROCESS_MODULE_LOAD: { classUid: 1005, activityName: "Load" },
|
|
78
|
+
PROCESS_UNCATEGORIZED: { classUid: 1007, activityName: "Other" },
|
|
79
|
+
FILE_CREATION: { classUid: 1001, activityName: "Create" },
|
|
80
|
+
FILE_DELETION: { classUid: 1001, activityName: "Delete" },
|
|
81
|
+
FILE_MODIFICATION: { classUid: 1001, activityName: "Update" },
|
|
82
|
+
FILE_READ: { classUid: 1001, activityName: "Read" },
|
|
83
|
+
FILE_COPY: { classUid: 1001, activityName: "Copy" },
|
|
84
|
+
FILE_MOVE: { classUid: 1001, activityName: "Rename" },
|
|
85
|
+
FILE_OPEN: { classUid: 1001, activityName: "Open" },
|
|
86
|
+
FILE_SYNC: { classUid: 1001, activityName: "Update" },
|
|
87
|
+
FILE_UNCATEGORIZED: { classUid: 1001, activityName: "Other" },
|
|
88
|
+
REGISTRY_CREATION: { classUid: 201001, activityName: "Create" },
|
|
89
|
+
REGISTRY_MODIFICATION: { classUid: 201001, activityName: "Modify" },
|
|
90
|
+
REGISTRY_DELETION: { classUid: 201001, activityName: "Delete" },
|
|
91
|
+
REGISTRY_UNCATEGORIZED: { classUid: 201001, activityName: "Other" },
|
|
92
|
+
SCHEDULED_TASK_CREATION: { classUid: 1006, activityName: "Create" },
|
|
93
|
+
SCHEDULED_TASK_DELETION: { classUid: 1006, activityName: "Delete" },
|
|
94
|
+
SCHEDULED_TASK_MODIFICATION: { classUid: 1006, activityName: "Update" },
|
|
95
|
+
SCHEDULED_TASK_UNCATEGORIZED: { classUid: 1006, activityName: "Other" },
|
|
96
|
+
|
|
97
|
+
// Findings
|
|
98
|
+
SCAN_VULN_HOST: { classUid: 2002, activityName: "Scan" },
|
|
99
|
+
SCAN_VULN_NETWORK: { classUid: 2002, activityName: "Scan" },
|
|
100
|
+
SCAN_FILE: { classUid: 2004, activityName: "Scan" },
|
|
101
|
+
SCAN_HOST: { classUid: 2004, activityName: "Scan" },
|
|
102
|
+
SCAN_NETWORK: { classUid: 2004, activityName: "Scan" },
|
|
103
|
+
SCAN_PROCESS: { classUid: 2004, activityName: "Scan" },
|
|
104
|
+
SCAN_UNCATEGORIZED: { classUid: 2004, activityName: "Scan" },
|
|
105
|
+
|
|
106
|
+
// Application Activity / Discovery
|
|
107
|
+
SERVICE_START: { classUid: 6002, activityName: "Start" },
|
|
108
|
+
SERVICE_STOP: { classUid: 6002, activityName: "Stop" },
|
|
109
|
+
SERVICE_CREATION: { classUid: 6002, activityName: "Install" },
|
|
110
|
+
SERVICE_DELETION: { classUid: 6002, activityName: "Remove" },
|
|
111
|
+
SERVICE_MODIFICATION: { classUid: 6002, activityName: "Update" },
|
|
112
|
+
SERVICE_UNSPECIFIED: { classUid: 6002, activityName: "Other" },
|
|
113
|
+
STATUS_STARTUP: { classUid: 6002, activityName: "Start" },
|
|
114
|
+
STATUS_SHUTDOWN: { classUid: 6002, activityName: "Stop" },
|
|
115
|
+
STATUS_HEARTBEAT: { classUid: 6002, activityName: "Heartbeat" },
|
|
116
|
+
STATUS_UPDATE: { classUid: 6002, activityName: "Update" },
|
|
117
|
+
STATUS_UNCATEGORIZED: { classUid: 6002, activityName: "Other" },
|
|
118
|
+
SETTING_CREATION: { classUid: 5002, activityName: "Create" },
|
|
119
|
+
SETTING_MODIFICATION: { classUid: 5002, activityName: "Update" },
|
|
120
|
+
SETTING_DELETION: { classUid: 5002, activityName: "Delete" },
|
|
121
|
+
SETTING_UNCATEGORIZED: { classUid: 5002, activityName: "Other" },
|
|
122
|
+
RESOURCE_CREATION: { classUid: 6003, activityName: "Create" },
|
|
123
|
+
RESOURCE_DELETION: { classUid: 6003, activityName: "Delete" },
|
|
124
|
+
RESOURCE_PERMISSIONS_CHANGE: { classUid: 6003, activityName: "Update" },
|
|
125
|
+
RESOURCE_READ: { classUid: 6003, activityName: "Read" },
|
|
126
|
+
RESOURCE_WRITTEN: { classUid: 6003, activityName: "Update" },
|
|
127
|
+
|
|
128
|
+
GENERIC_EVENT: { classUid: 0, activityName: "" },
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
const UDM_ACTION_TO_STATUS: Record<string, string> = {
|
|
132
|
+
ALLOW: "Allowed",
|
|
133
|
+
ALLOW_WITH_MODIFICATION: "Allowed",
|
|
134
|
+
BLOCK: "Blocked",
|
|
135
|
+
QUARANTINE: "Quarantined",
|
|
136
|
+
FAIL: "Failure",
|
|
137
|
+
UNKNOWN_ACTION: "",
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/** "NETWORK_CONNECTION" -> "Network Connection". */
|
|
141
|
+
export function prettifyUdmEventType(eventType: string): string {
|
|
142
|
+
return eventType
|
|
143
|
+
.split("_")
|
|
144
|
+
.filter((part: string): boolean => {
|
|
145
|
+
return part.length > 0;
|
|
146
|
+
})
|
|
147
|
+
.map((part: string): string => {
|
|
148
|
+
return part.charAt(0).toUpperCase() + part.slice(1).toLowerCase();
|
|
149
|
+
})
|
|
150
|
+
.join(" ");
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function readAny(payload: JSONObject, paths: Array<string>): string {
|
|
154
|
+
for (const path of paths) {
|
|
155
|
+
const value: string = readString(payload, path);
|
|
156
|
+
if (value) {
|
|
157
|
+
return value;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
return "";
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function readAnyArray(
|
|
165
|
+
payload: JSONObject,
|
|
166
|
+
paths: Array<string>,
|
|
167
|
+
): Array<string> {
|
|
168
|
+
for (const path of paths) {
|
|
169
|
+
const value: Array<string> = readStringArray(payload, path);
|
|
170
|
+
if (value.length > 0) {
|
|
171
|
+
return value;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
return [];
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
interface SecurityResultSummary {
|
|
179
|
+
severity: OcsfSeverity | null;
|
|
180
|
+
statusName: string;
|
|
181
|
+
ruleId: string;
|
|
182
|
+
ruleName: string;
|
|
183
|
+
summary: string;
|
|
184
|
+
mitreTactics: Array<string>;
|
|
185
|
+
mitreTechniques: Array<string>;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/*
|
|
189
|
+
* A UDM event can carry several security_result entries (one per security
|
|
190
|
+
* product verdict). Severity is the max across all of them; the first
|
|
191
|
+
* entry that names a rule/action/summary wins those fields.
|
|
192
|
+
*/
|
|
193
|
+
function summarizeSecurityResults(payload: JSONObject): SecurityResultSummary {
|
|
194
|
+
const summary: SecurityResultSummary = {
|
|
195
|
+
severity: null,
|
|
196
|
+
statusName: "",
|
|
197
|
+
ruleId: "",
|
|
198
|
+
ruleName: "",
|
|
199
|
+
summary: "",
|
|
200
|
+
mitreTactics: [],
|
|
201
|
+
mitreTechniques: [],
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
const results: unknown =
|
|
205
|
+
readValue(payload, "security_result") ??
|
|
206
|
+
readValue(payload, "securityResult");
|
|
207
|
+
|
|
208
|
+
if (!Array.isArray(results)) {
|
|
209
|
+
return summary;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
for (const entry of results) {
|
|
213
|
+
if (typeof entry !== "object" || entry === null || Array.isArray(entry)) {
|
|
214
|
+
continue;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const result: JSONObject = entry as JSONObject;
|
|
218
|
+
|
|
219
|
+
const severity: OcsfSeverity | null = normalizeOcsfSeverity(
|
|
220
|
+
readString(result, "severity"),
|
|
221
|
+
);
|
|
222
|
+
|
|
223
|
+
if (
|
|
224
|
+
severity &&
|
|
225
|
+
(!summary.severity ||
|
|
226
|
+
OcsfSeverityId[severity] > OcsfSeverityId[summary.severity])
|
|
227
|
+
) {
|
|
228
|
+
summary.severity = severity;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (!summary.statusName) {
|
|
232
|
+
const actions: Array<string> = readStringArray(result, "action");
|
|
233
|
+
for (const action of actions) {
|
|
234
|
+
const mapped: string | undefined =
|
|
235
|
+
UDM_ACTION_TO_STATUS[action.toUpperCase()];
|
|
236
|
+
if (mapped) {
|
|
237
|
+
summary.statusName = mapped;
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (!summary.ruleId) {
|
|
244
|
+
summary.ruleId = readAny(result, ["rule_id", "ruleId"]);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
if (!summary.ruleName) {
|
|
248
|
+
summary.ruleName = readAny(result, ["rule_name", "ruleName"]);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
if (!summary.summary) {
|
|
252
|
+
summary.summary = readAny(result, ["summary", "description"]);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
const attackDetails: unknown =
|
|
256
|
+
readValue(result, "attack_details") ?? readValue(result, "attackDetails");
|
|
257
|
+
|
|
258
|
+
if (
|
|
259
|
+
attackDetails &&
|
|
260
|
+
typeof attackDetails === "object" &&
|
|
261
|
+
!Array.isArray(attackDetails)
|
|
262
|
+
) {
|
|
263
|
+
const details: JSONObject = attackDetails as JSONObject;
|
|
264
|
+
|
|
265
|
+
const tactics: unknown = readValue(details, "tactics");
|
|
266
|
+
if (Array.isArray(tactics)) {
|
|
267
|
+
for (const tactic of tactics) {
|
|
268
|
+
const id: string = readString(tactic as JSONObject, "id");
|
|
269
|
+
if (id && !summary.mitreTactics.includes(id)) {
|
|
270
|
+
summary.mitreTactics.push(id);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
const techniques: unknown = readValue(details, "techniques");
|
|
276
|
+
if (Array.isArray(techniques)) {
|
|
277
|
+
for (const technique of techniques) {
|
|
278
|
+
const id: string = readString(technique as JSONObject, "id");
|
|
279
|
+
if (id && !summary.mitreTechniques.includes(id)) {
|
|
280
|
+
summary.mitreTechniques.push(id);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
return summary;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export default class UdmNormalizer {
|
|
291
|
+
public static isUdmEvent(payload: JSONObject): boolean {
|
|
292
|
+
return Boolean(
|
|
293
|
+
readAny(payload, ["metadata.event_type", "metadata.eventType"]),
|
|
294
|
+
);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
public static normalize(payload: JSONObject): NormalizedSecurityEvent {
|
|
298
|
+
const eventType: string = readAny(payload, [
|
|
299
|
+
"metadata.event_type",
|
|
300
|
+
"metadata.eventType",
|
|
301
|
+
]).toUpperCase();
|
|
302
|
+
|
|
303
|
+
const mapping: UdmClassMapping | undefined =
|
|
304
|
+
UDM_EVENT_TYPE_TO_OCSF[eventType];
|
|
305
|
+
|
|
306
|
+
const classUid: number = mapping ? mapping.classUid : 0;
|
|
307
|
+
const mappedClass: OcsfEventClassProps | undefined =
|
|
308
|
+
ocsfEventClassByUid(classUid);
|
|
309
|
+
|
|
310
|
+
const className: string =
|
|
311
|
+
classUid !== 0 && mappedClass
|
|
312
|
+
? mappedClass.name
|
|
313
|
+
: eventType
|
|
314
|
+
? prettifyUdmEventType(eventType)
|
|
315
|
+
: "Base Event";
|
|
316
|
+
|
|
317
|
+
const { categoryUid, categoryName } = ocsfCategoryForClassUid(classUid);
|
|
318
|
+
|
|
319
|
+
const results: SecurityResultSummary = summarizeSecurityResults(payload);
|
|
320
|
+
|
|
321
|
+
const severityName: OcsfSeverity = results.severity || OcsfSeverity.Unknown;
|
|
322
|
+
|
|
323
|
+
const time: Date | null = parseEventTime(
|
|
324
|
+
readValue(payload, "metadata.event_timestamp") ??
|
|
325
|
+
readValue(payload, "metadata.eventTimestamp") ??
|
|
326
|
+
readValue(payload, "metadata.collected_timestamp") ??
|
|
327
|
+
readValue(payload, "metadata.collectedTimestamp"),
|
|
328
|
+
);
|
|
329
|
+
|
|
330
|
+
const principalUser: string = readAny(payload, [
|
|
331
|
+
"principal.user.userid",
|
|
332
|
+
"principal.user.user_display_name",
|
|
333
|
+
"principal.user.userDisplayName",
|
|
334
|
+
"principal.user.email_addresses",
|
|
335
|
+
"principal.user.emailAddresses",
|
|
336
|
+
]);
|
|
337
|
+
|
|
338
|
+
const principalHost: string = readAny(payload, [
|
|
339
|
+
"principal.hostname",
|
|
340
|
+
"principal.asset.hostname",
|
|
341
|
+
]);
|
|
342
|
+
|
|
343
|
+
const principalIps: Array<string> = readAnyArray(payload, [
|
|
344
|
+
"principal.ip",
|
|
345
|
+
"principal.asset.ip",
|
|
346
|
+
]);
|
|
347
|
+
|
|
348
|
+
const principalProcess: string = readAny(payload, [
|
|
349
|
+
"principal.process.file.full_path",
|
|
350
|
+
"principal.process.file.fullPath",
|
|
351
|
+
"principal.process.command_line",
|
|
352
|
+
"principal.process.commandLine",
|
|
353
|
+
]);
|
|
354
|
+
|
|
355
|
+
const targetUser: string = readAny(payload, [
|
|
356
|
+
"target.user.userid",
|
|
357
|
+
"target.user.user_display_name",
|
|
358
|
+
"target.user.userDisplayName",
|
|
359
|
+
"target.user.email_addresses",
|
|
360
|
+
"target.user.emailAddresses",
|
|
361
|
+
]);
|
|
362
|
+
|
|
363
|
+
const targetHost: string = readAny(payload, [
|
|
364
|
+
"target.hostname",
|
|
365
|
+
"target.asset.hostname",
|
|
366
|
+
"target.domain.name",
|
|
367
|
+
]);
|
|
368
|
+
|
|
369
|
+
const targetIps: Array<string> = readAnyArray(payload, [
|
|
370
|
+
"target.ip",
|
|
371
|
+
"target.asset.ip",
|
|
372
|
+
]);
|
|
373
|
+
|
|
374
|
+
const targetPortRaw: string = readAny(payload, ["target.port"]);
|
|
375
|
+
const targetPort: number = targetPortRaw ? Number(targetPortRaw) || 0 : 0;
|
|
376
|
+
|
|
377
|
+
const targetResource: string = readAny(payload, [
|
|
378
|
+
"target.resource.name",
|
|
379
|
+
"target.url",
|
|
380
|
+
"target.application",
|
|
381
|
+
"target.file.full_path",
|
|
382
|
+
"target.file.fullPath",
|
|
383
|
+
]);
|
|
384
|
+
|
|
385
|
+
const eventUid: string =
|
|
386
|
+
readAny(payload, [
|
|
387
|
+
"metadata.id",
|
|
388
|
+
"metadata.product_log_id",
|
|
389
|
+
"metadata.productLogId",
|
|
390
|
+
]) || contentHashEventUid(payload);
|
|
391
|
+
|
|
392
|
+
const message: string =
|
|
393
|
+
readAny(payload, ["metadata.description"]) ||
|
|
394
|
+
results.summary ||
|
|
395
|
+
(eventType ? prettifyUdmEventType(eventType) : "Security event");
|
|
396
|
+
|
|
397
|
+
return {
|
|
398
|
+
time: time || new Date(),
|
|
399
|
+
eventUid,
|
|
400
|
+
categoryUid,
|
|
401
|
+
categoryName,
|
|
402
|
+
classUid,
|
|
403
|
+
className,
|
|
404
|
+
activityName: mapping ? mapping.activityName : "",
|
|
405
|
+
severityId: OcsfSeverityId[severityName],
|
|
406
|
+
severityName,
|
|
407
|
+
statusName: results.statusName,
|
|
408
|
+
message,
|
|
409
|
+
vendorName: readAny(payload, [
|
|
410
|
+
"metadata.vendor_name",
|
|
411
|
+
"metadata.vendorName",
|
|
412
|
+
]),
|
|
413
|
+
productName: readAny(payload, [
|
|
414
|
+
"metadata.product_name",
|
|
415
|
+
"metadata.productName",
|
|
416
|
+
]),
|
|
417
|
+
ruleId: results.ruleId,
|
|
418
|
+
ruleName: results.ruleName,
|
|
419
|
+
mitreTactics: results.mitreTactics,
|
|
420
|
+
mitreTechniques: results.mitreTechniques,
|
|
421
|
+
principalUser,
|
|
422
|
+
principalHost,
|
|
423
|
+
principalIp: principalIps[0] || "",
|
|
424
|
+
principalProcess,
|
|
425
|
+
targetUser,
|
|
426
|
+
targetHost,
|
|
427
|
+
targetIp: targetIps[0] || "",
|
|
428
|
+
targetPort,
|
|
429
|
+
targetResource,
|
|
430
|
+
observables: buildObservables([
|
|
431
|
+
principalUser,
|
|
432
|
+
targetUser,
|
|
433
|
+
principalHost,
|
|
434
|
+
targetHost,
|
|
435
|
+
...principalIps,
|
|
436
|
+
...targetIps,
|
|
437
|
+
readAny(payload, ["target.domain.name", "network.dns.questions.name"]),
|
|
438
|
+
]),
|
|
439
|
+
attributes: flattenPayload(payload),
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
}
|
|
@@ -32,9 +32,11 @@ const WHITESPACE: RegExp = /\s/;
|
|
|
32
32
|
* - Logs explorer (App/FeatureSet/Dashboard/src/Components/Logs/
|
|
33
33
|
* LogsViewer.tsx, readInitialUrlState): `filters` is a JSON array of
|
|
34
34
|
* [facetKey, values[]] tuples. Supported facet keys are the top-level
|
|
35
|
-
* columns severityText / primaryEntityId / traceId / spanId plus
|
|
35
|
+
* columns severityText / primaryEntityId / traceId / spanId / body plus
|
|
36
36
|
* `attributes.<key>` for telemetry attributes (dots in <key> are kept —
|
|
37
|
-
* only the first "attributes." prefix is stripped). `
|
|
37
|
+
* only the first "attributes." prefix is stripped). A `body` chip is the
|
|
38
|
+
* one whose value compiles to a CONTAINS match rather than an equality
|
|
39
|
+
* (LogsCrossSignalPivot.applyLogsFacetFiltersToQuery). `range` is a
|
|
38
40
|
* TimeRange enum value; a Custom range additionally needs `start` and
|
|
39
41
|
* `end` (parsed with `new Date(...)`). There is no `search` param.
|
|
40
42
|
*
|
|
@@ -88,6 +90,13 @@ export interface TelemetryCrossSignalScope {
|
|
|
88
90
|
* carry the exact stored casing.
|
|
89
91
|
*/
|
|
90
92
|
severityTexts?: Array<string> | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Free-text the log body must CONTAIN. Only the logs explorer has a
|
|
95
|
+
* body dimension, and only as a substring match — an exact-equality
|
|
96
|
+
* filter on a body carrying a timestamp or a request id matches
|
|
97
|
+
* nothing. Traces and metrics report it as dropped.
|
|
98
|
+
*/
|
|
99
|
+
bodyContains?: string | undefined;
|
|
91
100
|
startTime?: Date | undefined;
|
|
92
101
|
endTime?: Date | undefined;
|
|
93
102
|
}
|
|
@@ -210,6 +219,18 @@ function sanitizeResourceFacetSelections(
|
|
|
210
219
|
return entries;
|
|
211
220
|
}
|
|
212
221
|
|
|
222
|
+
/*
|
|
223
|
+
* A blank body filter carries no scope: emitting it would add a chip that
|
|
224
|
+
* matches every row while telling the user their view is filtered.
|
|
225
|
+
*/
|
|
226
|
+
function sanitizeBodyContains(value: string | undefined): string {
|
|
227
|
+
if (typeof value !== "string") {
|
|
228
|
+
return "";
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
return value.trim();
|
|
232
|
+
}
|
|
233
|
+
|
|
213
234
|
function isValidDate(value: Date | undefined): value is Date {
|
|
214
235
|
return value instanceof Date && !isNaN(value.getTime());
|
|
215
236
|
}
|
|
@@ -258,9 +279,10 @@ function resolveTimeWindow(
|
|
|
258
279
|
*
|
|
259
280
|
* Field support: serviceIds -> `primaryEntityId` filter tuple, severityTexts
|
|
260
281
|
* -> `severityText` (canonicalized casing), traceIds -> `traceId`, spanIds
|
|
261
|
-
* -> `spanId`, attributes -> `attributes.<key>` tuples,
|
|
262
|
-
* `
|
|
263
|
-
*
|
|
282
|
+
* -> `spanId`, attributes -> `attributes.<key>` tuples, bodyContains ->
|
|
283
|
+
* `body` (a contains-match chip), startTime+endTime -> `range=Custom` +
|
|
284
|
+
* `start`/`end`. Every scope field is expressible in the logs grammar, so
|
|
285
|
+
* `dropped` only ever reports a lone time endpoint.
|
|
264
286
|
*/
|
|
265
287
|
export function toLogsExplorerQueryParams(
|
|
266
288
|
scope: TelemetryCrossSignalScope,
|
|
@@ -317,6 +339,12 @@ export function toLogsExplorerQueryParams(
|
|
|
317
339
|
tuples.push([`attributes.${key}`, [value]]);
|
|
318
340
|
}
|
|
319
341
|
|
|
342
|
+
const bodyContains: string = sanitizeBodyContains(scope.bodyContains);
|
|
343
|
+
|
|
344
|
+
if (bodyContains.length > 0) {
|
|
345
|
+
tuples.push(["body", [bodyContains]]);
|
|
346
|
+
}
|
|
347
|
+
|
|
320
348
|
if (tuples.length > 0) {
|
|
321
349
|
params["filters"] = JSON.stringify(tuples);
|
|
322
350
|
}
|
|
@@ -406,7 +434,8 @@ function buildTraceSearchTokenValue(value: string): string | null {
|
|
|
406
434
|
* valueDisplayMap, where a `service:` token would show the raw ObjectID),
|
|
407
435
|
* startTime+endTime -> `range=Custom` + `start`/`end`.
|
|
408
436
|
*
|
|
409
|
-
* Dropped: severityTexts — spans have
|
|
437
|
+
* Dropped: severityTexts and bodyContains — spans have neither a severity
|
|
438
|
+
* nor a message-body dimension.
|
|
410
439
|
*/
|
|
411
440
|
export function toTracesExplorerQueryParams(
|
|
412
441
|
scope: TelemetryCrossSignalScope,
|
|
@@ -488,6 +517,10 @@ export function toTracesExplorerQueryParams(
|
|
|
488
517
|
dropped.push("severityTexts");
|
|
489
518
|
}
|
|
490
519
|
|
|
520
|
+
if (sanitizeBodyContains(scope.bodyContains).length > 0) {
|
|
521
|
+
dropped.push("bodyContains");
|
|
522
|
+
}
|
|
523
|
+
|
|
491
524
|
dropped.push(...window.dropped);
|
|
492
525
|
|
|
493
526
|
return { params, dropped };
|
|
@@ -503,9 +536,9 @@ export function toTracesExplorerQueryParams(
|
|
|
503
536
|
* optional `metricName` argument names the query.
|
|
504
537
|
*
|
|
505
538
|
* Dropped: serviceIds, resourceFacetSelections, traceIds, spanIds,
|
|
506
|
-
* severityTexts — the metric explorer's URL grammar has no
|
|
507
|
-
* resource / trace / span / severity dimension (metrics
|
|
508
|
-
* primaryEntityId column, but the explorer only parses metricName +
|
|
539
|
+
* severityTexts, bodyContains — the metric explorer's URL grammar has no
|
|
540
|
+
* service / resource / trace / span / severity / message dimension (metrics
|
|
541
|
+
* carry a primaryEntityId column, but the explorer only parses metricName +
|
|
509
542
|
* attributes out of `metricQueries`).
|
|
510
543
|
*/
|
|
511
544
|
export function toMetricsExplorerQueryParams(
|
|
@@ -567,6 +600,10 @@ export function toMetricsExplorerQueryParams(
|
|
|
567
600
|
dropped.push("severityTexts");
|
|
568
601
|
}
|
|
569
602
|
|
|
603
|
+
if (sanitizeBodyContains(scope.bodyContains).length > 0) {
|
|
604
|
+
dropped.push("bodyContains");
|
|
605
|
+
}
|
|
606
|
+
|
|
570
607
|
dropped.push(...window.dropped);
|
|
571
608
|
|
|
572
609
|
return { params, dropped };
|