This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathsettings.py
57 lines (45 loc) · 1.42 KB
/
settings.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
"""Setup and defaults for Security Growler app"""
from os.path import expanduser, isfile
APP_NAME = 'Security Growler'
# {ports or files to watch: parser (or list of parsers)}
WATCHED_SOURCES = {
# 80: 'http_auth', # TODO
21: 'connections', # FTP
445: 'connections', # SMB
585: 'connections', # AFP
3689: 'connections', # iTunes sharing
3306: 'connections', # MySQL
5432: 'connections', # PostgreSQL
5900: 'vnc', # VNC
'/var/log/system.log': ('sudo', 'ssh', 'portscan', 'ostiarius'),
}
# Enabled output/display methods
LOGGERS = [
'stdout',
'logfile',
'osxnotifications',
# 'growl',
]
# Delay in seconds between logfile checks
POLLING_SPEED = 2
# File logger output settings
EVENT_LOGFILE = expanduser('~/Library/Logs/SecurityGrowler.log')
# Growl/OSX notification display settings
INFO_TYPE = 'secnotify'
INFO_ICON = 'https://pirate.github.io/security-growler/notify.png'
INFO_TITLE = 'Security Info'
INFO_STICKY = False
INFO_PRIORITY = 1
INFO_SOUND = False
ALERT_TYPE = 'secalert'
ALERT_ICON = 'https://pirate.github.io/security-growler/alert.png'
ALERT_TITLE = 'Security ALERT'
ALERT_STICKY = True
ALERT_PRIORITY = 2
ALERT_SOUND = True
NOTIFICATION_TYPES = [INFO_TYPE, ALERT_TYPE]
### DO NOT MODIFY BELOW THIS LINE ###
WATCHED_SOURCES = {
source: parsers for source, parsers in WATCHED_SOURCES.items()
if type(source) == int or isfile(source)
}