mirror of https://github.com/MISP/misp-modules
added support for scheduledtasks
parent
7c037ed090
commit
349dd99d47
|
@ -11,7 +11,7 @@ import re
|
||||||
|
|
||||||
misperrors = {"error": "Error"}
|
misperrors = {"error": "Error"}
|
||||||
|
|
||||||
types_to_use = ['regkey', 'regkey|value', 'mutex', 'windows-service-displayname', 'yara']
|
types_to_use = ['regkey', 'regkey|value', 'mutex', 'windows-service-displayname', 'windows-scheduled-task', 'yara']
|
||||||
|
|
||||||
userConfig = {
|
userConfig = {
|
||||||
|
|
||||||
|
@ -52,11 +52,15 @@ def handle_service(value):
|
||||||
def handle_yara(value):
|
def handle_yara(value):
|
||||||
return 'not implemented yet, not sure it\'s easily feasible w/o dropping the sig on the hosts first'
|
return 'not implemented yet, not sure it\'s easily feasible w/o dropping the sig on the hosts first'
|
||||||
|
|
||||||
|
def handle_scheduledtask(value):
|
||||||
|
return 'SELECT * FROM scheduled_tasks WHERE name LIKE \'%s\';' % value
|
||||||
|
|
||||||
handlers = {
|
handlers = {
|
||||||
'regkey' : handle_regkey,
|
'regkey' : handle_regkey,
|
||||||
'regkey|value' : handle_regkeyvalue,
|
'regkey|value' : handle_regkeyvalue,
|
||||||
'mutex' : handle_mutex,
|
'mutex' : handle_mutex,
|
||||||
'windows-service-displayname' : handle_service,
|
'windows-service-displayname' : handle_service,
|
||||||
|
'windows-scheduled-task' : handle_scheduledtask,
|
||||||
'yara' : handle_yara
|
'yara' : handle_yara
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue