-
Notifications
You must be signed in to change notification settings - Fork 483
/
adobe_priv_helper_tool.py
39 lines (29 loc) · 1.06 KB
/
adobe_priv_helper_tool.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
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the Elastic License
# 2.0; you may not use this file except in compliance with the Elastic License
# 2.0.
from . import common
from . import RtaMetadata
metadata = RtaMetadata(
uuid="e5d376ae-d634-41fa-903c-42f35736a615",
platforms=["macos"],
endpoint=[],
siem=[
{
"rule_name": "Suspicious Child Process of Adobe Acrobat Reader Update Service",
"rule_id": "f85ce03f-d8a8-4c83-acdc-5c8cd0592be7",
}
],
techniques=["T1068"],
)
@common.requires_os(*metadata.platforms)
def main():
masquerade = "/tmp/com.adobe.ARMDC.SMJobBlessHelper"
common.create_macos_masquerade(masquerade)
# Execute command
common.log("Launching fake com.adobe.ARMDC.SMJobBlessHelper commands to adobe mimic privesc")
common.execute([masquerade, "childprocess", masquerade], timeout=10, kill=True)
# cleanup
common.remove_file(masquerade)
if __name__ == "__main__":
exit(main())