@oneuptime/common 14.0.94 → 14.0.96
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/ExceptionInstance.d.mts +2 -0
- package/Models/AnalyticsModels/ExceptionInstance.d.ts +2 -0
- package/Models/AnalyticsModels/ExceptionInstance.js +7 -0
- package/Models/AnalyticsModels/Log.d.mts +2 -0
- package/Models/AnalyticsModels/Log.d.ts +2 -0
- package/Models/AnalyticsModels/Log.js +7 -0
- package/Models/AnalyticsModels/SecurityEvent.d.mts +8 -0
- package/Models/AnalyticsModels/SecurityEvent.d.ts +8 -0
- package/Models/AnalyticsModels/SecurityEvent.js +55 -0
- package/Models/AnalyticsModels/Span.d.mts +4 -0
- package/Models/AnalyticsModels/Span.d.ts +4 -0
- package/Models/AnalyticsModels/Span.js +63 -0
- package/Models/DatabaseModels/CustomNotificationChannel.d.mts +16 -0
- package/Models/DatabaseModels/CustomNotificationChannel.d.ts +16 -0
- package/Models/DatabaseModels/CustomNotificationChannel.js +337 -0
- package/Models/DatabaseModels/CustomNotificationChannel.mjs +2 -0
- package/Models/DatabaseModels/DashboardPlaylist.d.mts +16 -0
- package/Models/DatabaseModels/DashboardPlaylist.d.ts +16 -0
- package/Models/DatabaseModels/DashboardPlaylist.js +314 -0
- package/Models/DatabaseModels/DashboardPlaylist.mjs +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.js +14 -37
- package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.d.mts +1 -0
- package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.d.ts +1 -0
- package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.js +27 -3
- package/Models/DatabaseModels/DetectionRuleException.d.mts +25 -0
- package/Models/DatabaseModels/DetectionRuleException.d.ts +25 -0
- package/Models/DatabaseModels/DetectionRuleException.js +412 -0
- package/Models/DatabaseModels/DetectionRuleException.mjs +2 -0
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +107 -0
- package/Models/DatabaseModels/Index.js +8 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +40 -0
- package/Models/DatabaseModels/SecurityTelemetrySource.d.mts +21 -0
- package/Models/DatabaseModels/SecurityTelemetrySource.d.ts +21 -0
- package/Models/DatabaseModels/SecurityTelemetrySource.js +357 -0
- package/Models/DatabaseModels/SecurityTelemetrySource.mjs +2 -0
- package/Models/DatabaseModels/TeamComplianceSetting.js +2 -2
- package/Models/DatabaseModels/TeamPermission.js +5 -7
- package/Models/DatabaseModels/UserNotificationRule.d.mts +3 -0
- package/Models/DatabaseModels/UserNotificationRule.d.ts +3 -0
- package/Models/DatabaseModels/UserNotificationRule.js +67 -0
- package/Models/DatabaseModels/UserNotificationSetting.d.mts +1 -0
- package/Models/DatabaseModels/UserNotificationSetting.d.ts +1 -0
- package/Models/DatabaseModels/UserNotificationSetting.js +26 -0
- package/Models/DatabaseModels/UserOnCallLogTimeline.d.mts +3 -0
- package/Models/DatabaseModels/UserOnCallLogTimeline.d.ts +3 -0
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +53 -0
- package/Types/AI/AIChatPermissionMode.js +11 -5
- package/Types/AI/ResourceCardFacts.d.mts +11 -0
- package/Types/AI/ResourceCardFacts.d.ts +11 -0
- package/Types/AI/ResourceCardFacts.js +80 -0
- package/Types/AI/ResourceCardFacts.mjs +4 -0
- package/Types/AnalyticsDatabase/TableColumn.d.mts +4 -0
- package/Types/AnalyticsDatabase/TableColumn.d.ts +4 -0
- package/Types/AnalyticsDatabase/TableColumn.js +7 -0
- package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.d.mts +2 -0
- package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.d.ts +2 -0
- package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.js +4 -0
- package/Types/Backup/BackupDestinationCatalog.d.mts +2 -0
- package/Types/Backup/BackupDestinationCatalog.d.ts +2 -0
- package/Types/Backup/BackupDestinationCatalog.js +8 -0
- package/Types/CallAndSMS/CallAndSmsGatewayPayload.d.mts +25 -0
- package/Types/CallAndSMS/CallAndSmsGatewayPayload.d.ts +25 -0
- package/Types/CallAndSMS/CallAndSmsGatewayPayload.js +86 -0
- package/Types/CallAndSMS/CallAndSmsGatewayPayload.mjs +6 -0
- package/Types/CallAndSMS/CallAndSmsProvider.d.mts +23 -0
- package/Types/CallAndSMS/CallAndSmsProvider.d.ts +23 -0
- package/Types/CallAndSMS/CallAndSmsProvider.js +107 -0
- package/Types/CallAndSMS/CallAndSmsProvider.mjs +7 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.mts +2 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.ts +2 -0
- package/Types/CloudConnection/CloudConnectionCatalog.js +4 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +95 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +95 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +236 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.mjs +16 -0
- package/Types/Dashboard/DashboardPlaylist.d.mts +21 -0
- package/Types/Dashboard/DashboardPlaylist.d.ts +21 -0
- package/Types/Dashboard/DashboardPlaylist.js +197 -0
- package/Types/Dashboard/DashboardPlaylist.mjs +19 -0
- package/Types/Database/TableColumn.d.mts +8 -0
- package/Types/Database/TableColumn.d.ts +8 -0
- package/Types/Database/TableColumn.js +69 -23
- package/Types/Database/TableColumn.mjs +1 -0
- package/Types/HeldPermissions.d.mts +2 -0
- package/Types/HeldPermissions.d.ts +2 -0
- package/Types/HeldPermissions.js +32 -8
- package/Types/Icon/IconProp.d.mts +3 -0
- package/Types/Icon/IconProp.d.ts +3 -0
- package/Types/Icon/IconProp.js +4 -0
- package/Types/JSONFunctions.js +16 -1
- package/Types/LlmObservability/LlmConnectionCatalog.d.mts +2 -0
- package/Types/LlmObservability/LlmConnectionCatalog.d.ts +2 -0
- package/Types/LlmObservability/LlmConnectionCatalog.js +8 -0
- package/Types/Monitor/MonitorType.js +5 -4
- package/Types/Monitor/TelemetryAlertRule.d.mts +111 -0
- package/Types/Monitor/TelemetryAlertRule.d.ts +111 -0
- package/Types/Monitor/TelemetryAlertRule.js +886 -0
- package/Types/Monitor/TelemetryAlertRule.mjs +5 -0
- package/Types/Monitor/TelemetryRulePreview.d.mts +57 -0
- package/Types/Monitor/TelemetryRulePreview.d.ts +57 -0
- package/Types/Monitor/TelemetryRulePreview.js +190 -0
- package/Types/Monitor/TelemetryRulePreview.mjs +6 -0
- package/Types/OnCallDutyPolicy/EveryNewEventRules.d.mts +23 -0
- package/Types/OnCallDutyPolicy/EveryNewEventRules.d.ts +23 -0
- package/Types/OnCallDutyPolicy/EveryNewEventRules.js +105 -0
- package/Types/OnCallDutyPolicy/EveryNewEventRules.mjs +9 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +3 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +3 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +23 -8
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyAiHold.d.mts +47 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyAiHold.d.ts +47 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyAiHold.js +122 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyAiHold.mjs +12 -0
- package/Types/OnCallDutyPolicy/OnCallRuleWhenToPage.d.mts +2 -1
- package/Types/OnCallDutyPolicy/OnCallRuleWhenToPage.d.ts +2 -1
- package/Types/OnCallDutyPolicy/OnCallRuleWhenToPage.js +10 -1
- package/Types/Permission.d.mts +10 -0
- package/Types/Permission.d.ts +10 -0
- package/Types/Permission.js +83 -19
- package/Types/ProviderLogo/ProviderLogo.d.mts +87 -0
- package/Types/ProviderLogo/ProviderLogo.d.ts +87 -0
- package/Types/ProviderLogo/ProviderLogo.js +215 -0
- package/Types/ProviderLogo/ProviderLogo.mjs +6 -0
- package/Types/PushNotification/PushNotificationsTurnedOff.d.mts +3 -0
- package/Types/PushNotification/PushNotificationsTurnedOff.d.ts +3 -0
- package/Types/PushNotification/PushNotificationsTurnedOff.js +32 -0
- package/Types/PushNotification/PushNotificationsTurnedOff.mjs +4 -0
- package/Types/RollingTime/RollingTimeUtil.js +20 -10
- package/Types/Runbook/RunbookTriggerType.d.mts +2 -1
- package/Types/Runbook/RunbookTriggerType.d.ts +2 -1
- package/Types/Runbook/RunbookTriggerType.js +5 -1
- package/Types/SecurityCase/SecurityCaseContext.d.mts +188 -0
- package/Types/SecurityCase/SecurityCaseContext.d.ts +188 -0
- package/Types/SecurityCase/SecurityCaseContext.js +165 -0
- package/Types/SecurityCase/SecurityCaseContext.mjs +30 -0
- package/Types/SecurityCase/SecurityEntityRisk.d.mts +11 -0
- package/Types/SecurityCase/SecurityEntityRisk.d.ts +11 -0
- package/Types/SecurityCase/SecurityEntityRisk.js +9 -1
- package/Types/SecurityCase/SecurityEntityRisk.mjs +1 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.mts +2 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.ts +2 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +9 -0
- package/Types/SecurityEvent/Destinations/SecurityEventDestinationCatalog.d.mts +2 -0
- package/Types/SecurityEvent/Destinations/SecurityEventDestinationCatalog.d.ts +2 -0
- package/Types/SecurityEvent/Destinations/SecurityEventDestinationCatalog.js +5 -0
- package/Types/SecurityEvent/DetectionRetrohunt.d.mts +38 -0
- package/Types/SecurityEvent/DetectionRetrohunt.d.ts +38 -0
- package/Types/SecurityEvent/DetectionRetrohunt.js +147 -0
- package/Types/SecurityEvent/DetectionRetrohunt.mjs +10 -0
- package/Types/SecurityEvent/DetectionRuleDataKind.d.mts +5 -1
- package/Types/SecurityEvent/DetectionRuleDataKind.d.ts +5 -1
- package/Types/SecurityEvent/DetectionRuleDataKind.js +42 -0
- package/Types/SecurityEvent/DetectionRuleException.d.mts +65 -0
- package/Types/SecurityEvent/DetectionRuleException.d.ts +65 -0
- package/Types/SecurityEvent/DetectionRuleException.js +441 -0
- package/Types/SecurityEvent/DetectionRuleException.mjs +24 -0
- package/Types/SecurityEvent/DetectionRuleLibrary.js +330 -0
- package/Types/SecurityEvent/NormalizedSecurityEvent.d.mts +5 -0
- package/Types/SecurityEvent/NormalizedSecurityEvent.d.ts +5 -0
- package/Types/SecurityEvent/SecurityAttackCampaign.d.mts +31 -0
- package/Types/SecurityEvent/SecurityAttackCampaign.d.ts +31 -0
- package/Types/SecurityEvent/SecurityAttackCampaign.js +81 -0
- package/Types/SecurityEvent/SecurityAttackCampaign.mjs +8 -0
- package/Types/SecurityEvent/SecurityEventRequestOutcome.d.mts +28 -0
- package/Types/SecurityEvent/SecurityEventRequestOutcome.d.ts +28 -0
- package/Types/SecurityEvent/SecurityEventRequestOutcome.js +78 -0
- package/Types/SecurityEvent/SecurityEventRequestOutcome.mjs +6 -0
- package/Types/SecurityEvent/SecurityTelemetrySource.d.mts +39 -0
- package/Types/SecurityEvent/SecurityTelemetrySource.d.ts +39 -0
- package/Types/SecurityEvent/SecurityTelemetrySource.js +127 -0
- package/Types/SecurityEvent/SecurityTelemetrySource.mjs +12 -0
- package/Types/SecurityEvent/TurnOnRecommended.d.mts +2 -0
- package/Types/SecurityEvent/TurnOnRecommended.d.ts +2 -0
- package/Types/SecurityEvent/TurnOnRecommended.js +7 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +7 -1
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +7 -1
- package/Types/SecurityPlaybook/SecurityPlaybookAction.js +46 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.mjs +1 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +10 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +10 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.js +37 -1
- package/Types/SecurityPlaybook/SecurityPlaybookStep.mjs +1 -0
- package/Types/SecurityPlaybook/SecurityPlaybookTemplates.js +17 -0
- package/Types/Team/ComplianceNotificationChannel.d.mts +2 -1
- package/Types/Team/ComplianceNotificationChannel.d.ts +2 -1
- package/Types/Team/ComplianceNotificationChannel.js +10 -1
- package/Types/Team/ComplianceRule.d.mts +8 -3
- package/Types/Team/ComplianceRule.d.ts +8 -3
- package/Types/Team/ComplianceRule.js +34 -22
- package/Types/Team/TeamComplianceStatus.d.mts +1 -0
- package/Types/Team/TeamComplianceStatus.d.ts +1 -0
- package/Types/Telemetry/OpenTelemetryGuides.d.mts +52 -0
- package/Types/Telemetry/OpenTelemetryGuides.d.ts +52 -0
- package/Types/Telemetry/OpenTelemetryGuides.js +419 -0
- package/Types/Telemetry/OpenTelemetryGuides.mjs +17 -0
- package/Types/Telemetry/TelemetrySavedViewState.d.mts +1 -0
- package/Types/Telemetry/TelemetrySavedViewState.d.ts +1 -0
- package/Types/Telemetry/TraceHealth.d.mts +24 -0
- package/Types/Telemetry/TraceHealth.d.ts +24 -0
- package/Types/Telemetry/TraceHealth.js +97 -0
- package/Types/Telemetry/TraceHealth.mjs +4 -0
- package/Types/Telemetry/TraceSpanType.d.mts +90 -0
- package/Types/Telemetry/TraceSpanType.d.ts +90 -0
- package/Types/Telemetry/TraceSpanType.js +238 -0
- package/Types/Telemetry/TraceSpanType.mjs +19 -0
- package/Types/Theme/ThemePreference.d.mts +26 -0
- package/Types/Theme/ThemePreference.d.ts +26 -0
- package/Types/Theme/ThemePreference.js +104 -0
- package/Types/Theme/ThemePreference.mjs +12 -0
- package/Types/Workflow/Component.d.mts +3 -0
- package/Types/Workflow/Component.d.ts +3 -0
- package/Types/Workflow/Components/Discord.js +2 -0
- package/Types/Workflow/Components/Mattermost.js +2 -0
- package/Types/Workflow/Components/MicrosoftTeams.js +2 -0
- package/Types/Workflow/Components/Slack.js +2 -0
- package/Types/Workflow/Components/Telegram.js +2 -0
- package/Types/Workflow/Components.js +6 -0
- package/Types/Workflow/Templates.js +5 -3
- package/Utils/ColorContrast.d.mts +0 -3
- package/Utils/ColorContrast.d.ts +0 -3
- package/Utils/ColorContrast.js +3 -41
- package/Utils/ColorContrast.mjs +0 -2
- package/Utils/NameInitials.d.mts +5 -0
- package/Utils/NameInitials.d.ts +5 -0
- package/Utils/NameInitials.js +92 -0
- package/Utils/NameInitials.mjs +6 -0
- package/Utils/OldestKeyCursor.d.mts +7 -0
- package/Utils/OldestKeyCursor.d.ts +7 -0
- package/Utils/OldestKeyCursor.js +68 -0
- package/Utils/OldestKeyCursor.mjs +2 -0
- package/Utils/Schema/OpenApiMetadataRegistry.d.mts +4 -0
- package/Utils/Schema/OpenApiMetadataRegistry.d.ts +4 -0
- package/Utils/Schema/OpenApiMetadataRegistry.js +20 -0
- package/Utils/Schema/OpenApiMetadataRegistry.mjs +2 -0
- package/Utils/Schema/Zod.js +6 -0
- package/Utils/SecurityCase/SecurityCaseImpactFacts.d.mts +41 -0
- package/Utils/SecurityCase/SecurityCaseImpactFacts.d.ts +41 -0
- package/Utils/SecurityCase/SecurityCaseImpactFacts.js +215 -0
- package/Utils/SecurityCase/SecurityCaseImpactFacts.mjs +6 -0
- package/Utils/SecurityCase/SecurityCaseStoryItems.d.mts +46 -0
- package/Utils/SecurityCase/SecurityCaseStoryItems.d.ts +46 -0
- package/Utils/SecurityCase/SecurityCaseStoryItems.js +327 -0
- package/Utils/SecurityCase/SecurityCaseStoryItems.mjs +17 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +5 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +5 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +22 -2
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +2 -0
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.mts +20 -0
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.ts +20 -0
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.js +347 -31
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.mjs +11 -0
- package/Utils/SecurityEvent/RequestFollowUp.d.mts +4 -0
- package/Utils/SecurityEvent/RequestFollowUp.d.ts +4 -0
- package/Utils/SecurityEvent/RequestFollowUp.js +127 -0
- package/Utils/SecurityEvent/RequestFollowUp.mjs +3 -0
- package/Utils/SecurityEvent/RequestOutcome.d.mts +80 -0
- package/Utils/SecurityEvent/RequestOutcome.d.ts +80 -0
- package/Utils/SecurityEvent/RequestOutcome.js +371 -0
- package/Utils/SecurityEvent/RequestOutcome.mjs +18 -0
- package/Utils/SecurityEvent/TelemetryScan/AuditLogSignals.d.mts +76 -0
- package/Utils/SecurityEvent/TelemetryScan/AuditLogSignals.d.ts +76 -0
- package/Utils/SecurityEvent/TelemetryScan/AuditLogSignals.js +348 -0
- package/Utils/SecurityEvent/TelemetryScan/AuditLogSignals.mjs +15 -0
- package/Utils/SecurityEvent/TelemetryScan/FlowSignals.d.mts +61 -0
- package/Utils/SecurityEvent/TelemetryScan/FlowSignals.d.ts +61 -0
- package/Utils/SecurityEvent/TelemetryScan/FlowSignals.js +260 -0
- package/Utils/SecurityEvent/TelemetryScan/FlowSignals.mjs +17 -0
- package/Utils/SecurityEvent/TelemetryScan/RumSignals.d.mts +30 -0
- package/Utils/SecurityEvent/TelemetryScan/RumSignals.d.ts +30 -0
- package/Utils/SecurityEvent/TelemetryScan/RumSignals.js +134 -0
- package/Utils/SecurityEvent/TelemetryScan/RumSignals.mjs +8 -0
- package/Utils/SecurityEvent/TelemetryScan/TelemetrySecurityEvent.d.mts +40 -0
- package/Utils/SecurityEvent/TelemetryScan/TelemetrySecurityEvent.d.ts +40 -0
- package/Utils/SecurityEvent/TelemetryScan/TelemetrySecurityEvent.js +190 -0
- package/Utils/SecurityEvent/TelemetryScan/TelemetrySecurityEvent.mjs +6 -0
- package/Utils/SecurityEvent/TelemetryScan/TraceSignals.d.mts +57 -0
- package/Utils/SecurityEvent/TelemetryScan/TraceSignals.d.ts +57 -0
- package/Utils/SecurityEvent/TelemetryScan/TraceSignals.js +491 -0
- package/Utils/SecurityEvent/TelemetryScan/TraceSignals.mjs +27 -0
- package/Utils/Telemetry/EntrySpan.d.mts +8 -0
- package/Utils/Telemetry/EntrySpan.d.ts +8 -0
- package/Utils/Telemetry/EntrySpan.js +53 -0
- package/Utils/Telemetry/EntrySpan.mjs +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { JSONObject } from "../JSON";
|
|
2
|
+
export declare const DETECTION_RETROHUNT_PERIODS_IN_HOURS: ReadonlyArray<number>;
|
|
3
|
+
export declare const DETECTION_RETROHUNT_DEFAULT_PERIOD_IN_HOURS: number;
|
|
4
|
+
export declare const DETECTION_RETROHUNT_MAX_GROUPS: number;
|
|
5
|
+
export declare const DETECTION_RETROHUNT_NOISY_FIRINGS_PER_DAY: number;
|
|
6
|
+
export declare function isDetectionRetrohuntPeriod(value: unknown): value is number;
|
|
7
|
+
export interface DetectionRetrohuntGroup {
|
|
8
|
+
value: string;
|
|
9
|
+
entityType: string;
|
|
10
|
+
firedCount: number;
|
|
11
|
+
eventCount: number;
|
|
12
|
+
firstFiredAt: Date | null;
|
|
13
|
+
lastFiredAt: Date | null;
|
|
14
|
+
sampleMessage: string;
|
|
15
|
+
summary: string;
|
|
16
|
+
}
|
|
17
|
+
export interface DetectionRetrohuntResult {
|
|
18
|
+
startTime: Date;
|
|
19
|
+
endTime: Date;
|
|
20
|
+
periodInHours: number;
|
|
21
|
+
isCorrelation: boolean;
|
|
22
|
+
windowInMinutes: number;
|
|
23
|
+
threshold: number | null;
|
|
24
|
+
firedCount: number;
|
|
25
|
+
groupCount: number;
|
|
26
|
+
eventCount: number;
|
|
27
|
+
matchedEventCount: number | null;
|
|
28
|
+
exceptionCount: number;
|
|
29
|
+
skippedEventCount: number | null;
|
|
30
|
+
preventedFiredCount: number | null;
|
|
31
|
+
groups: Array<DetectionRetrohuntGroup>;
|
|
32
|
+
hasMoreGroups: boolean;
|
|
33
|
+
candidateLimit: number | null;
|
|
34
|
+
}
|
|
35
|
+
export declare function getDetectionRetrohuntFiringsPerDay(result: Pick<DetectionRetrohuntResult, "firedCount" | "periodInHours">): number;
|
|
36
|
+
export declare function isDetectionRetrohuntNoisy(result: Pick<DetectionRetrohuntResult, "firedCount" | "periodInHours">): boolean;
|
|
37
|
+
export declare function detectionRetrohuntResultToJSON(result: DetectionRetrohuntResult): JSONObject;
|
|
38
|
+
export declare function parseDetectionRetrohuntResult(json: JSONObject): DetectionRetrohuntResult;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DETECTION_RETROHUNT_NOISY_FIRINGS_PER_DAY = exports.DETECTION_RETROHUNT_MAX_GROUPS = exports.DETECTION_RETROHUNT_DEFAULT_PERIOD_IN_HOURS = exports.DETECTION_RETROHUNT_PERIODS_IN_HOURS = void 0;
|
|
4
|
+
exports.isDetectionRetrohuntPeriod = isDetectionRetrohuntPeriod;
|
|
5
|
+
exports.getDetectionRetrohuntFiringsPerDay = getDetectionRetrohuntFiringsPerDay;
|
|
6
|
+
exports.isDetectionRetrohuntNoisy = isDetectionRetrohuntNoisy;
|
|
7
|
+
exports.detectionRetrohuntResultToJSON = detectionRetrohuntResultToJSON;
|
|
8
|
+
exports.parseDetectionRetrohuntResult = parseDetectionRetrohuntResult;
|
|
9
|
+
/*
|
|
10
|
+
* RETROHUNT: A DETECTION RULE RUN OVER PAST EVENTS.
|
|
11
|
+
*
|
|
12
|
+
* What a new or changed rule would have found had it been running: the
|
|
13
|
+
* rule - as saved, or as it stands in the form, before it is saved - read
|
|
14
|
+
* over the last day, week or month of events, with its exceptions, and
|
|
15
|
+
* counted the way its scheduled runs count. Nothing is opened, sent or
|
|
16
|
+
* written: no case, alert, incident, finding or risk.
|
|
17
|
+
*
|
|
18
|
+
* A single rule is counted in windows as long as its interval, each group
|
|
19
|
+
* firing in a window when its count there reaches the rule's threshold, as
|
|
20
|
+
* its runs fire. A correlation is read over the whole period at once, and
|
|
21
|
+
* names the groups it would have matched.
|
|
22
|
+
*
|
|
23
|
+
* Shared by the server, which runs it (DetectionRuleRetrohunt), and the
|
|
24
|
+
* Dashboard, which asks for it and draws the answer.
|
|
25
|
+
*/
|
|
26
|
+
// The periods a retrohunt reads, in hours: the last day, week and month.
|
|
27
|
+
exports.DETECTION_RETROHUNT_PERIODS_IN_HOURS = [
|
|
28
|
+
24,
|
|
29
|
+
24 * 7,
|
|
30
|
+
24 * 30,
|
|
31
|
+
];
|
|
32
|
+
exports.DETECTION_RETROHUNT_DEFAULT_PERIOD_IN_HOURS = 24 * 7;
|
|
33
|
+
// The groups an answer lists, the ones that fired most first.
|
|
34
|
+
exports.DETECTION_RETROHUNT_MAX_GROUPS = 50;
|
|
35
|
+
/*
|
|
36
|
+
* More firings a day than a person can look at: past this the answer says
|
|
37
|
+
* how to make the rule quieter.
|
|
38
|
+
*/
|
|
39
|
+
exports.DETECTION_RETROHUNT_NOISY_FIRINGS_PER_DAY = 20;
|
|
40
|
+
function isDetectionRetrohuntPeriod(value) {
|
|
41
|
+
return (typeof value === "number" &&
|
|
42
|
+
exports.DETECTION_RETROHUNT_PERIODS_IN_HOURS.includes(value));
|
|
43
|
+
}
|
|
44
|
+
// Firings per day over the period, rounded to one decimal place.
|
|
45
|
+
function getDetectionRetrohuntFiringsPerDay(result) {
|
|
46
|
+
const days = Math.max(1, result.periodInHours / 24);
|
|
47
|
+
return Math.round((result.firedCount / days) * 10) / 10;
|
|
48
|
+
}
|
|
49
|
+
// Whether the rule would have fired more often than a person can look at.
|
|
50
|
+
function isDetectionRetrohuntNoisy(result) {
|
|
51
|
+
return (getDetectionRetrohuntFiringsPerDay(result) >
|
|
52
|
+
exports.DETECTION_RETROHUNT_NOISY_FIRINGS_PER_DAY);
|
|
53
|
+
}
|
|
54
|
+
function dateToJSON(date) {
|
|
55
|
+
return date ? date.toISOString() : null;
|
|
56
|
+
}
|
|
57
|
+
function readDate(value) {
|
|
58
|
+
if (typeof value !== "string" || !value) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
const date = new Date(value);
|
|
62
|
+
return Number.isNaN(date.getTime()) ? null : date;
|
|
63
|
+
}
|
|
64
|
+
function readNumber(value) {
|
|
65
|
+
const number = Number(value);
|
|
66
|
+
return Number.isFinite(number) ? number : 0;
|
|
67
|
+
}
|
|
68
|
+
function readNullableNumber(value) {
|
|
69
|
+
if (value === null || value === undefined) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return readNumber(value);
|
|
73
|
+
}
|
|
74
|
+
function readText(value) {
|
|
75
|
+
return typeof value === "string" ? value : "";
|
|
76
|
+
}
|
|
77
|
+
function detectionRetrohuntResultToJSON(result) {
|
|
78
|
+
return {
|
|
79
|
+
startTime: dateToJSON(result.startTime),
|
|
80
|
+
endTime: dateToJSON(result.endTime),
|
|
81
|
+
periodInHours: result.periodInHours,
|
|
82
|
+
isCorrelation: result.isCorrelation,
|
|
83
|
+
windowInMinutes: result.windowInMinutes,
|
|
84
|
+
threshold: result.threshold,
|
|
85
|
+
firedCount: result.firedCount,
|
|
86
|
+
groupCount: result.groupCount,
|
|
87
|
+
eventCount: result.eventCount,
|
|
88
|
+
matchedEventCount: result.matchedEventCount,
|
|
89
|
+
exceptionCount: result.exceptionCount,
|
|
90
|
+
skippedEventCount: result.skippedEventCount,
|
|
91
|
+
preventedFiredCount: result.preventedFiredCount,
|
|
92
|
+
hasMoreGroups: result.hasMoreGroups,
|
|
93
|
+
candidateLimit: result.candidateLimit,
|
|
94
|
+
groups: result.groups.map((group) => {
|
|
95
|
+
return {
|
|
96
|
+
value: group.value,
|
|
97
|
+
entityType: group.entityType,
|
|
98
|
+
firedCount: group.firedCount,
|
|
99
|
+
eventCount: group.eventCount,
|
|
100
|
+
firstFiredAt: dateToJSON(group.firstFiredAt),
|
|
101
|
+
lastFiredAt: dateToJSON(group.lastFiredAt),
|
|
102
|
+
sampleMessage: group.sampleMessage,
|
|
103
|
+
summary: group.summary,
|
|
104
|
+
};
|
|
105
|
+
}),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
// The answer as the API sends it, read defensively.
|
|
109
|
+
function parseDetectionRetrohuntResult(json) {
|
|
110
|
+
const groups = Array.isArray(json["groups"])
|
|
111
|
+
? json["groups"]
|
|
112
|
+
: [];
|
|
113
|
+
return {
|
|
114
|
+
startTime: readDate(json["startTime"]) || new Date(0),
|
|
115
|
+
endTime: readDate(json["endTime"]) || new Date(0),
|
|
116
|
+
periodInHours: readNumber(json["periodInHours"]),
|
|
117
|
+
isCorrelation: json["isCorrelation"] === true,
|
|
118
|
+
windowInMinutes: readNumber(json["windowInMinutes"]),
|
|
119
|
+
threshold: readNullableNumber(json["threshold"]),
|
|
120
|
+
firedCount: readNumber(json["firedCount"]),
|
|
121
|
+
groupCount: readNumber(json["groupCount"]),
|
|
122
|
+
eventCount: readNumber(json["eventCount"]),
|
|
123
|
+
matchedEventCount: readNullableNumber(json["matchedEventCount"]),
|
|
124
|
+
exceptionCount: readNumber(json["exceptionCount"]),
|
|
125
|
+
skippedEventCount: readNullableNumber(json["skippedEventCount"]),
|
|
126
|
+
preventedFiredCount: readNullableNumber(json["preventedFiredCount"]),
|
|
127
|
+
hasMoreGroups: json["hasMoreGroups"] === true,
|
|
128
|
+
candidateLimit: readNullableNumber(json["candidateLimit"]),
|
|
129
|
+
groups: groups
|
|
130
|
+
.filter((item) => {
|
|
131
|
+
return (Boolean(item) && typeof item === "object" && !Array.isArray(item));
|
|
132
|
+
})
|
|
133
|
+
.map((item) => {
|
|
134
|
+
const group = item;
|
|
135
|
+
return {
|
|
136
|
+
value: readText(group["value"]),
|
|
137
|
+
entityType: readText(group["entityType"]),
|
|
138
|
+
firedCount: readNumber(group["firedCount"]),
|
|
139
|
+
eventCount: readNumber(group["eventCount"]),
|
|
140
|
+
firstFiredAt: readDate(group["firstFiredAt"]),
|
|
141
|
+
lastFiredAt: readDate(group["lastFiredAt"]),
|
|
142
|
+
sampleMessage: readText(group["sampleMessage"]),
|
|
143
|
+
summary: readText(group["summary"]),
|
|
144
|
+
};
|
|
145
|
+
}),
|
|
146
|
+
};
|
|
147
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import commonJsModule from "./DetectionRetrohunt.js";
|
|
2
|
+
export const DETECTION_RETROHUNT_DEFAULT_PERIOD_IN_HOURS = commonJsModule.DETECTION_RETROHUNT_DEFAULT_PERIOD_IN_HOURS;
|
|
3
|
+
export const DETECTION_RETROHUNT_MAX_GROUPS = commonJsModule.DETECTION_RETROHUNT_MAX_GROUPS;
|
|
4
|
+
export const DETECTION_RETROHUNT_NOISY_FIRINGS_PER_DAY = commonJsModule.DETECTION_RETROHUNT_NOISY_FIRINGS_PER_DAY;
|
|
5
|
+
export const DETECTION_RETROHUNT_PERIODS_IN_HOURS = commonJsModule.DETECTION_RETROHUNT_PERIODS_IN_HOURS;
|
|
6
|
+
export const detectionRetrohuntResultToJSON = commonJsModule.detectionRetrohuntResultToJSON;
|
|
7
|
+
export const getDetectionRetrohuntFiringsPerDay = commonJsModule.getDetectionRetrohuntFiringsPerDay;
|
|
8
|
+
export const isDetectionRetrohuntNoisy = commonJsModule.isDetectionRetrohuntNoisy;
|
|
9
|
+
export const isDetectionRetrohuntPeriod = commonJsModule.isDetectionRetrohuntPeriod;
|
|
10
|
+
export const parseDetectionRetrohuntResult = commonJsModule.parseDetectionRetrohuntResult;
|
|
@@ -7,7 +7,11 @@ export declare enum DetectionRuleDataKind {
|
|
|
7
7
|
AwsCloudTrail = "aws-cloudtrail",
|
|
8
8
|
NetworkActivity = "network-activity",
|
|
9
9
|
WebRequests = "web-requests",
|
|
10
|
-
KubernetesAuditLogs = "kubernetes-audit-logs"
|
|
10
|
+
KubernetesAuditLogs = "kubernetes-audit-logs",
|
|
11
|
+
OneUptimeTraces = "oneuptime-traces",
|
|
12
|
+
NetworkFlows = "network-flows",
|
|
13
|
+
OneUptimeAuditLog = "oneuptime-audit-log",
|
|
14
|
+
SessionReplays = "session-replays"
|
|
11
15
|
}
|
|
12
16
|
export declare const DETECTION_RULE_DATA_KINDS_IN_ORDER: ReadonlyArray<DetectionRuleDataKind>;
|
|
13
17
|
export interface SecurityEventKindsSeen {
|
|
@@ -7,7 +7,11 @@ export declare enum DetectionRuleDataKind {
|
|
|
7
7
|
AwsCloudTrail = "aws-cloudtrail",
|
|
8
8
|
NetworkActivity = "network-activity",
|
|
9
9
|
WebRequests = "web-requests",
|
|
10
|
-
KubernetesAuditLogs = "kubernetes-audit-logs"
|
|
10
|
+
KubernetesAuditLogs = "kubernetes-audit-logs",
|
|
11
|
+
OneUptimeTraces = "oneuptime-traces",
|
|
12
|
+
NetworkFlows = "network-flows",
|
|
13
|
+
OneUptimeAuditLog = "oneuptime-audit-log",
|
|
14
|
+
SessionReplays = "session-replays"
|
|
11
15
|
}
|
|
12
16
|
export declare const DETECTION_RULE_DATA_KINDS_IN_ORDER: ReadonlyArray<DetectionRuleDataKind>;
|
|
13
17
|
export interface SecurityEventKindsSeen {
|
|
@@ -42,6 +42,7 @@ exports.isDetectionRuleDataKindSeen = isDetectionRuleDataKindSeen;
|
|
|
42
42
|
const SecurityEventConnectorProvider_1 = __importDefault(require("./Connectors/SecurityEventConnectorProvider"));
|
|
43
43
|
const SecurityEventConnectorCatalog_1 = require("./Connectors/SecurityEventConnectorCatalog");
|
|
44
44
|
const SecurityLogFormat_1 = __importStar(require("./SecurityLogFormat"));
|
|
45
|
+
const SecurityTelemetrySource_1 = require("./SecurityTelemetrySource");
|
|
45
46
|
/*
|
|
46
47
|
* What a rule of the library reads: the kind of security event it needs to
|
|
47
48
|
* find anything at all - sign-ins, Okta's System Log, process command
|
|
@@ -75,6 +76,15 @@ var DetectionRuleDataKind;
|
|
|
75
76
|
DetectionRuleDataKind["WebRequests"] = "web-requests";
|
|
76
77
|
// Kubernetes audit logs, which "Your logs" reads.
|
|
77
78
|
DetectionRuleDataKind["KubernetesAuditLogs"] = "kubernetes-audit-logs";
|
|
79
|
+
/*
|
|
80
|
+
* The rest of "Your OneUptime data" (SecurityTelemetrySource): what the
|
|
81
|
+
* project's traces, network flows, audit log and session replays show.
|
|
82
|
+
* Each is recognized by the product its events carry.
|
|
83
|
+
*/
|
|
84
|
+
DetectionRuleDataKind["OneUptimeTraces"] = "oneuptime-traces";
|
|
85
|
+
DetectionRuleDataKind["NetworkFlows"] = "network-flows";
|
|
86
|
+
DetectionRuleDataKind["OneUptimeAuditLog"] = "oneuptime-audit-log";
|
|
87
|
+
DetectionRuleDataKind["SessionReplays"] = "session-replays";
|
|
78
88
|
})(DetectionRuleDataKind || (exports.DetectionRuleDataKind = DetectionRuleDataKind = {}));
|
|
79
89
|
exports.DETECTION_RULE_DATA_KINDS_IN_ORDER = [
|
|
80
90
|
DetectionRuleDataKind.SignIns,
|
|
@@ -86,12 +96,20 @@ exports.DETECTION_RULE_DATA_KINDS_IN_ORDER = [
|
|
|
86
96
|
DetectionRuleDataKind.NetworkActivity,
|
|
87
97
|
DetectionRuleDataKind.WebRequests,
|
|
88
98
|
DetectionRuleDataKind.KubernetesAuditLogs,
|
|
99
|
+
DetectionRuleDataKind.OneUptimeTraces,
|
|
100
|
+
DetectionRuleDataKind.NetworkFlows,
|
|
101
|
+
DetectionRuleDataKind.OneUptimeAuditLog,
|
|
102
|
+
DetectionRuleDataKind.SessionReplays,
|
|
89
103
|
];
|
|
90
104
|
// The product a log format stamps on every event it makes.
|
|
91
105
|
function logFormatProduct(format) {
|
|
92
106
|
const definition = (0, SecurityLogFormat_1.getSecurityLogFormatDefinition)(format);
|
|
93
107
|
return definition && definition.productName ? [definition.productName] : [];
|
|
94
108
|
}
|
|
109
|
+
// The product every event of one kind of "Your OneUptime data" carries.
|
|
110
|
+
function telemetryProduct(kind) {
|
|
111
|
+
return [(0, SecurityTelemetrySource_1.getSecurityTelemetrySourceDefinition)(kind).productName];
|
|
112
|
+
}
|
|
95
113
|
// The vendor and product a connector stamps on every event it imports.
|
|
96
114
|
function connectorStamp(provider) {
|
|
97
115
|
const definition = (0, SecurityEventConnectorCatalog_1.getSecurityEventConnectorDefinition)(provider);
|
|
@@ -166,6 +184,30 @@ exports.DETECTION_RULE_DATA_KINDS = [
|
|
|
166
184
|
vendorNames: [],
|
|
167
185
|
productNames: logFormatProduct(SecurityLogFormat_1.default.KubernetesAudit),
|
|
168
186
|
},
|
|
187
|
+
{
|
|
188
|
+
kind: DetectionRuleDataKind.OneUptimeTraces,
|
|
189
|
+
classNames: [],
|
|
190
|
+
vendorNames: [],
|
|
191
|
+
productNames: telemetryProduct(SecurityTelemetrySource_1.SecurityTelemetrySourceKind.Traces),
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
kind: DetectionRuleDataKind.NetworkFlows,
|
|
195
|
+
classNames: [],
|
|
196
|
+
vendorNames: [],
|
|
197
|
+
productNames: telemetryProduct(SecurityTelemetrySource_1.SecurityTelemetrySourceKind.NetworkFlows),
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
kind: DetectionRuleDataKind.OneUptimeAuditLog,
|
|
201
|
+
classNames: [],
|
|
202
|
+
vendorNames: [],
|
|
203
|
+
productNames: telemetryProduct(SecurityTelemetrySource_1.SecurityTelemetrySourceKind.AuditLog),
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
kind: DetectionRuleDataKind.SessionReplays,
|
|
207
|
+
classNames: [],
|
|
208
|
+
vendorNames: [],
|
|
209
|
+
productNames: telemetryProduct(SecurityTelemetrySource_1.SecurityTelemetrySourceKind.RumSessions),
|
|
210
|
+
},
|
|
169
211
|
];
|
|
170
212
|
function getDetectionRuleDataKindDefinition(kind) {
|
|
171
213
|
return exports.DETECTION_RULE_DATA_KINDS.find((definition) => {
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { SecurityEntityType } from "../SecurityCase/SecurityEntity.mjs";
|
|
2
|
+
export declare enum DetectionRuleExceptionKind {
|
|
3
|
+
Entity = "Entity",
|
|
4
|
+
Value = "Value",
|
|
5
|
+
TimeWindow = "Time Window"
|
|
6
|
+
}
|
|
7
|
+
export declare const DETECTION_RULE_EXCEPTION_KINDS: ReadonlyArray<DetectionRuleExceptionKind>;
|
|
8
|
+
export declare const DETECTION_RULE_EXCEPTION_ENTITY_TYPES: ReadonlyArray<SecurityEntityType>;
|
|
9
|
+
export declare const DETECTION_RULE_EXCEPTION_ENTITY_FIELDS: Readonly<Record<string, ReadonlyArray<string>>>;
|
|
10
|
+
export declare const DETECTION_RULE_EXCEPTION_VALUE_MAX_LENGTH: number;
|
|
11
|
+
export declare const DETECTION_RULE_EXCEPTION_FIELD_MAX_LENGTH: number;
|
|
12
|
+
export declare const DETECTION_RULE_EXCEPTION_REASON_MAX_LENGTH: number;
|
|
13
|
+
export declare const DETECTION_RULE_EXCEPTION_WINDOW_MAX_IN_DAYS: number;
|
|
14
|
+
export declare const DETECTION_RULE_EXCEPTIONS_PER_RULE_MAX: number;
|
|
15
|
+
export declare const DETECTION_RULE_EXCEPTION_WILDCARD: string;
|
|
16
|
+
export declare enum DetectionRuleExceptionStatus {
|
|
17
|
+
Active = "Active",
|
|
18
|
+
Expired = "Expired",
|
|
19
|
+
Upcoming = "Upcoming",
|
|
20
|
+
Ended = "Ended"
|
|
21
|
+
}
|
|
22
|
+
export interface DetectionRuleExceptionShape {
|
|
23
|
+
kind?: string | null | undefined;
|
|
24
|
+
entityType?: string | null | undefined;
|
|
25
|
+
fieldName?: string | null | undefined;
|
|
26
|
+
value?: string | null | undefined;
|
|
27
|
+
startsAt?: Date | string | null | undefined;
|
|
28
|
+
endsAt?: Date | string | null | undefined;
|
|
29
|
+
expiresAt?: Date | string | null | undefined;
|
|
30
|
+
reason?: string | null | undefined;
|
|
31
|
+
}
|
|
32
|
+
export declare function isDetectionRuleExceptionKind(value: unknown): value is DetectionRuleExceptionKind;
|
|
33
|
+
export declare function isDetectionRuleExceptionEntityType(value: unknown): value is SecurityEntityType;
|
|
34
|
+
export declare function readDetectionRuleExceptionDate(value: unknown): Date | null;
|
|
35
|
+
export declare function normalizeDetectionRuleExceptionValue(value: unknown): string;
|
|
36
|
+
export declare function normalizeDetectionRuleExceptionField(value: unknown): string;
|
|
37
|
+
export declare function isDetectionRuleExceptionCidr(value: string): boolean;
|
|
38
|
+
export declare function getDetectionRuleExceptionStatus(exception: DetectionRuleExceptionShape, now: Date): DetectionRuleExceptionStatus;
|
|
39
|
+
export declare function doesDetectionRuleExceptionApply(exception: DetectionRuleExceptionShape, read: {
|
|
40
|
+
from: Date;
|
|
41
|
+
until: Date;
|
|
42
|
+
now: Date;
|
|
43
|
+
}): boolean;
|
|
44
|
+
export type DetectionRuleExceptionFormField = "kind" | "entityType" | "fieldName" | "value" | "startsAt" | "endsAt" | "expiresAt" | "reason";
|
|
45
|
+
export interface DetectionRuleExceptionProblem {
|
|
46
|
+
field: DetectionRuleExceptionFormField;
|
|
47
|
+
message: string;
|
|
48
|
+
}
|
|
49
|
+
export interface DetectionRuleExceptionCheckOptions {
|
|
50
|
+
now: Date;
|
|
51
|
+
isExpiryNew: boolean;
|
|
52
|
+
}
|
|
53
|
+
export declare function getDetectionRuleExceptionProblems(exception: DetectionRuleExceptionShape, options: DetectionRuleExceptionCheckOptions): Array<DetectionRuleExceptionProblem>;
|
|
54
|
+
export declare function getDetectionRuleExceptionFieldProblem(exception: DetectionRuleExceptionShape, field: DetectionRuleExceptionFormField, options: DetectionRuleExceptionCheckOptions): string | null;
|
|
55
|
+
export declare function getDetectionRuleExceptionProblem(exception: DetectionRuleExceptionShape, options: DetectionRuleExceptionCheckOptions): string | null;
|
|
56
|
+
export interface DetectionRuleExceptionColumns {
|
|
57
|
+
entityType: SecurityEntityType | null;
|
|
58
|
+
fieldName: string | null;
|
|
59
|
+
value: string | null;
|
|
60
|
+
startsAt: Date | null;
|
|
61
|
+
endsAt: Date | null;
|
|
62
|
+
expiresAt: Date | null;
|
|
63
|
+
reason: string;
|
|
64
|
+
}
|
|
65
|
+
export declare function getDetectionRuleExceptionColumns(exception: DetectionRuleExceptionShape): DetectionRuleExceptionColumns;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { SecurityEntityType } from "../SecurityCase/SecurityEntity";
|
|
2
|
+
export declare enum DetectionRuleExceptionKind {
|
|
3
|
+
Entity = "Entity",
|
|
4
|
+
Value = "Value",
|
|
5
|
+
TimeWindow = "Time Window"
|
|
6
|
+
}
|
|
7
|
+
export declare const DETECTION_RULE_EXCEPTION_KINDS: ReadonlyArray<DetectionRuleExceptionKind>;
|
|
8
|
+
export declare const DETECTION_RULE_EXCEPTION_ENTITY_TYPES: ReadonlyArray<SecurityEntityType>;
|
|
9
|
+
export declare const DETECTION_RULE_EXCEPTION_ENTITY_FIELDS: Readonly<Record<string, ReadonlyArray<string>>>;
|
|
10
|
+
export declare const DETECTION_RULE_EXCEPTION_VALUE_MAX_LENGTH: number;
|
|
11
|
+
export declare const DETECTION_RULE_EXCEPTION_FIELD_MAX_LENGTH: number;
|
|
12
|
+
export declare const DETECTION_RULE_EXCEPTION_REASON_MAX_LENGTH: number;
|
|
13
|
+
export declare const DETECTION_RULE_EXCEPTION_WINDOW_MAX_IN_DAYS: number;
|
|
14
|
+
export declare const DETECTION_RULE_EXCEPTIONS_PER_RULE_MAX: number;
|
|
15
|
+
export declare const DETECTION_RULE_EXCEPTION_WILDCARD: string;
|
|
16
|
+
export declare enum DetectionRuleExceptionStatus {
|
|
17
|
+
Active = "Active",
|
|
18
|
+
Expired = "Expired",
|
|
19
|
+
Upcoming = "Upcoming",
|
|
20
|
+
Ended = "Ended"
|
|
21
|
+
}
|
|
22
|
+
export interface DetectionRuleExceptionShape {
|
|
23
|
+
kind?: string | null | undefined;
|
|
24
|
+
entityType?: string | null | undefined;
|
|
25
|
+
fieldName?: string | null | undefined;
|
|
26
|
+
value?: string | null | undefined;
|
|
27
|
+
startsAt?: Date | string | null | undefined;
|
|
28
|
+
endsAt?: Date | string | null | undefined;
|
|
29
|
+
expiresAt?: Date | string | null | undefined;
|
|
30
|
+
reason?: string | null | undefined;
|
|
31
|
+
}
|
|
32
|
+
export declare function isDetectionRuleExceptionKind(value: unknown): value is DetectionRuleExceptionKind;
|
|
33
|
+
export declare function isDetectionRuleExceptionEntityType(value: unknown): value is SecurityEntityType;
|
|
34
|
+
export declare function readDetectionRuleExceptionDate(value: unknown): Date | null;
|
|
35
|
+
export declare function normalizeDetectionRuleExceptionValue(value: unknown): string;
|
|
36
|
+
export declare function normalizeDetectionRuleExceptionField(value: unknown): string;
|
|
37
|
+
export declare function isDetectionRuleExceptionCidr(value: string): boolean;
|
|
38
|
+
export declare function getDetectionRuleExceptionStatus(exception: DetectionRuleExceptionShape, now: Date): DetectionRuleExceptionStatus;
|
|
39
|
+
export declare function doesDetectionRuleExceptionApply(exception: DetectionRuleExceptionShape, read: {
|
|
40
|
+
from: Date;
|
|
41
|
+
until: Date;
|
|
42
|
+
now: Date;
|
|
43
|
+
}): boolean;
|
|
44
|
+
export type DetectionRuleExceptionFormField = "kind" | "entityType" | "fieldName" | "value" | "startsAt" | "endsAt" | "expiresAt" | "reason";
|
|
45
|
+
export interface DetectionRuleExceptionProblem {
|
|
46
|
+
field: DetectionRuleExceptionFormField;
|
|
47
|
+
message: string;
|
|
48
|
+
}
|
|
49
|
+
export interface DetectionRuleExceptionCheckOptions {
|
|
50
|
+
now: Date;
|
|
51
|
+
isExpiryNew: boolean;
|
|
52
|
+
}
|
|
53
|
+
export declare function getDetectionRuleExceptionProblems(exception: DetectionRuleExceptionShape, options: DetectionRuleExceptionCheckOptions): Array<DetectionRuleExceptionProblem>;
|
|
54
|
+
export declare function getDetectionRuleExceptionFieldProblem(exception: DetectionRuleExceptionShape, field: DetectionRuleExceptionFormField, options: DetectionRuleExceptionCheckOptions): string | null;
|
|
55
|
+
export declare function getDetectionRuleExceptionProblem(exception: DetectionRuleExceptionShape, options: DetectionRuleExceptionCheckOptions): string | null;
|
|
56
|
+
export interface DetectionRuleExceptionColumns {
|
|
57
|
+
entityType: SecurityEntityType | null;
|
|
58
|
+
fieldName: string | null;
|
|
59
|
+
value: string | null;
|
|
60
|
+
startsAt: Date | null;
|
|
61
|
+
endsAt: Date | null;
|
|
62
|
+
expiresAt: Date | null;
|
|
63
|
+
reason: string;
|
|
64
|
+
}
|
|
65
|
+
export declare function getDetectionRuleExceptionColumns(exception: DetectionRuleExceptionShape): DetectionRuleExceptionColumns;
|