-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.py
54 lines (48 loc) · 2.27 KB
/
configuration.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
SLA_SETTINGS = {
'THEHIVE_LEVEL1': {'ENABLED': True,
'LOW_SEVERITY': {'TIMER': 1800, 'NOTIFICATION_METHOD': ['SLACK_API', 'TWILIO_SMS']},
'MEDIUM_SEVERITY': {'TIMER': 2700, 'NOTIFICATION_METHOD': ['SLACK_API', 'TWILIO_ESC']},
'HIGH_SEVERITY': {'TIMER': 3600, 'NOTIFICATION_METHOD': ['SLACK_API', 'TWILIO_CALL']},
'HIGH_RISK': {'NOTIFICATION_METHOD': ['SLACK_API', 'TWILIO_CALL']}},
'THEHIVE_LEVEL2': {'ENABLED': True,
'LOW_SEVERITY': {'TIMER': 1800, 'NOTIFICATION_METHOD': ['TWILIO_SMS']},
'MEDIUM_SEVERITY': {'TIMER': 2700, 'NOTIFICATION_METHOD': ['SLACK_API', 'TWILIO_SMS']},
'HIGH_SEVERITY': {'TIMER': 3600, 'NOTIFICATION_METHOD': ['SLACK_API', 'TWILIO_CALL']},
'HIGH_RISK': {'NOTIFICATION_METHOD': ['SLACK_API', 'TWILIO_CALL']}},
'THEHIVE_LEVEL3': {'ENABLED': True,
'LOW_SEVERITY': {'TIMER': 1800, 'NOTIFICATION_METHOD': ['SLACK_API']},
'MEDIUM_SEVERITY': {'TIMER': 2700, 'NOTIFICATION_METHOD': ['SLACK_API', 'TWILIO_SMS']},
'HIGH_SEVERITY': {'TIMER': 3600, 'NOTIFICATION_METHOD': ['TWILIO_CALL']},
'HIGH_RISK': {'NOTIFICATION_METHOD': ['SLACK_API', 'TWILIO_CALL']}}
}
SYSTEM_SETTINGS = {
'HIGH_RISK_WORDS': ['HIGH_RISK', 'Critical'],
'HIGH_RISK_WORDS_SEVERITY_LEVEL': 2,
'LOOP_TIME': 120,
'MAX_ALERT_DETECTION_ENABLED': True,
'MAX_ALERT_DETECTION_AGE': 604800,
'HIVE_SERVER_IP': '192.168.1.15',
'HIVE_SERVER_PORT': 9000,
'HIVE_FQDN': 'http://192.168.1.15',
'HIVE_API_KEY': 'iIMm25V63IjkoLN0MlsJJTcdrPYYhyBi',
'LOG_FILE_LOCATION': 'debug.log'
}
FLASK_SETTINGS = {
'ENABLE_WEBSERVER': True,
'FLASK_WEBSERVER_IP': 'localhost',
'FLASK_WEBSERVER_PORT': 3000
}
TWILIO_SETTINGS = {
'TWILIO_ENABLED': True,
'TWILIO_SENDER': '+123456789',
'TWILIO_RTCP': ['+123456789', '+123456789'],
'ACCOUNT_SID': '',
'AUTH_TOKEN': '',
'TWIMLET_URL': 'http://twimlets.com/echo?Twiml=%3CResponse%3E%3CSay%3EHi+there.%3C%2FSay%3E%3C%2FResponse%3E'
}
SLACK_SETTINGS = {
'SLACK_ENABLED': True,
'SLACK_APP_TOKEN': '',
'SLACK_CHANNEL': '',
'SLACK_WEBHOOK_URL': ''
}