-
Notifications
You must be signed in to change notification settings - Fork 1
/
commvaultcloud_consts.py
83 lines (82 loc) · 4.78 KB
/
commvaultcloud_consts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File: commvaultcloud_consts.py
#
# Copyright (c) Commvault Systems, 2024
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific language governing permissions
# and limitations under the License.
EVENT_ID = "event_id"
EVENT_TIME = "event_time"
ANOMALY_SUB_TYPE = "anomaly_sub_type"
ORIGINATING_CLIENT = "originating_client"
ORIGINATING_PROGRAM = "originating_program"
JOB = "job"
JOB_ID = "job_id"
AFFECTED_FILES_COUNT = "affected_files_count"
MODIFIED_FILES_COUNT = "modified_files_count"
DELETED_FILES_COUNT = "deleted_files_count"
RENAMED_FILES_COUNT = "renamed_files_count"
CREATED_FILES_COUNT = "created_files_count"
FACILITY = "Commvault"
PATH_KEY = "path"
SOURCE_SYSLOG = "syslog"
SOURCE_WEBHOOK = "webhook"
SOURCE_FETCH_INCIDENTS = "fetch"
DESCRIPTION = "description"
SEVERITY = 'severity'
# Splunk container specific constants
CONTAINER_LABEL = 'events'
CONTAINER_STATUS_OPEN = 'open'
CONTAINER_STATUS_NEW = 'new'
CONTAINER_STATUS_CLOSE = 'closed'
SEVERITY_HIGH = "high"
SEVERITY_MEDIUM = "medium"
SEVERITY_LOW = "low"
# Sensitivity white: public, green: controller, amber: confidential, red: classified
SENSITIVITY_RED = "red"
SENSITIVITY_GREEN = "green"
SENSITIVITY_AMBER = "amber"
SENSITIVITY_WHITE = "white"
# Artifact constants
ARTIFACT_NAME = 'Commvault SecurityIQ Artifact'
ERR_MSG_UNAVAILABLE = "Error message unavailable. Please check the asset configuration and|or action parameters."
# Anomaly types
ANOMALY_TYPE_1 = 'File Activity'
ANOMALY_TYPE_2 = 'File Type'
ANOMALY_TYPE_3 = 'Threat Analysis'
ANOMALY_TYPE_UNDEFINED = 'Undefined'
# SUPPORTED_EVENT_CODES = ['7:211', '7:212', '7:293', '
# 7:269', '14:337', '14:338', '69:59', '7:333', '69:60','35:5575']
SUPPORTED_EVENT_CODES = ['14:337']
ANOMALY_TYPE_2_PAYLOAD = 'eyJvcFR5cGUiOiAxLCAiZW50aXR5IjogeyJfdHlwZV8iOiAwfSwgIm9wdGlvbnMiOiB7InJlc3RvcmVJbm' \
'RleCI6IHRydWV9LCAicXVlcmllcyI6IFt7InR5cGUiOiAwLCAicXVlcnlJZCI6ICJNaW1lRmlsZUxpc3Q' \
'iLCAid2hlcmVDbGF1c2UiOiBbeyJjcml0ZXJpYSI6IHsiZmllbGQiOiAzOCwgImRhdGFPcGVyYXRvci' \
'I6IDksICJ2YWx1ZXMiOiBbImZpbGUiXX19LCB7ImNyaXRlcmlhIjogeyJmaWVsZCI6IDE0NywgImRhdGFP' \
'cGVyYXRvciI6IDAsICJ2YWx1ZXMiOiBbIjIiXX19XSwgImRhdGFQYXJhbSI6IHsic29ydFBhcmFtIjogey' \
'Jhc2NlbmRpbmciOiB0cnVlLCAic29ydEJ5IjogWzBdfSwgInBhZ2luZyI6IHsiZmlyc3ROb2RlIjogMCwg' \
'InBhZ2VTaXplIjogLTEsICJza2lwTm9kZSI6IDB9fX0sIHsidHlwZSI6IDEsICJxdWVyeUlkIjogIk1pbWV' \
'GaWxlQ291bnQiLCAid2hlcmVDbGF1c2UiOiBbeyJjcml0ZXJpYSI6IHsiZmllbGQiOiAzOCwgImRhdGFPc' \
'GVyYXRvciI6IDksICJ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