forked from p15670423/monkey
Mongo search logic changes + used/scanned/unscanned message changes
This commit is contained in:
parent
7588cd8eea
commit
9c0c298631
|
@ -9,12 +9,13 @@ __author__ = "shreyamalviya"
|
|||
|
||||
class T1053(AttackTechnique):
|
||||
tech_id = "T1053"
|
||||
unscanned_msg = "Monkey did not try scheduling a job."
|
||||
scanned_msg = "Monkey tried scheduling a job on the system but failed."
|
||||
used_msg = "Monkey scheduled a job on the system."
|
||||
unscanned_msg = "Monkey did not try scheduling a job on Windows."
|
||||
scanned_msg = "Monkey tried scheduling a job on the Windows system but failed."
|
||||
used_msg = "Monkey scheduled a job on the Windows system."
|
||||
|
||||
query = [{'$match': {'telem_category': 'post_breach',
|
||||
'data.name': POST_BREACH_JOB_SCHEDULING}},
|
||||
'data.name': POST_BREACH_JOB_SCHEDULING,
|
||||
'data.command': {'$regex': 'schtasks'}}},
|
||||
{'$project': {'_id': 0,
|
||||
'machine': {'hostname': '$data.hostname',
|
||||
'ips': ['$data.ip']},
|
||||
|
|
|
@ -9,12 +9,13 @@ __author__ = "shreyamalviya"
|
|||
|
||||
class T1168(AttackTechnique):
|
||||
tech_id = "T1168"
|
||||
unscanned_msg = "Monkey did not try scheduling a job."
|
||||
scanned_msg = "Monkey tried scheduling a job on the system but failed."
|
||||
used_msg = "Monkey scheduled a job on the system."
|
||||
unscanned_msg = "Monkey did not try scheduling a job on Linux."
|
||||
scanned_msg = "Monkey tried scheduling a job on the Linux system but failed."
|
||||
used_msg = "Monkey scheduled a job on the Linux system."
|
||||
|
||||
query = [{'$match': {'telem_category': 'post_breach',
|
||||
'data.name': POST_BREACH_JOB_SCHEDULING}},
|
||||
'data.name': POST_BREACH_JOB_SCHEDULING,
|
||||
'data.command': {'$regex': 'crontab'}}},
|
||||
{'$project': {'_id': 0,
|
||||
'machine': {'hostname': '$data.hostname',
|
||||
'ips': ['$data.ip']},
|
||||
|
|
Loading…
Reference in New Issue