зеркало из https://github.com/mozilla/MozDef.git
Fixing details.dhost to be hostname
This commit is contained in:
Родитель
fa6e9978fb
Коммит
29ce658a2e
|
@ -101,6 +101,13 @@ class message(object):
|
|||
message['details']['gidstring'] = message['details']['gid']
|
||||
del message['details']['gid']
|
||||
|
||||
# fix details.dhost to be hostname
|
||||
if 'details' in message.key() and isinstance(message['details'], dict):
|
||||
if 'dhost' in message['details'].keys():
|
||||
# details.dhost is the host that the auditd event is happening on.
|
||||
message['hostname'] = message['details']['dhost']
|
||||
del message['details']['dhost']
|
||||
|
||||
# add category
|
||||
if 'category' not in message.keys():
|
||||
message['category'] = 'auditd'
|
||||
|
|
Загрузка…
Ссылка в новой задаче