forked from elastic/detection-rules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
emond_plist.py
27 lines (19 loc) · 842 Bytes
/
emond_plist.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
# 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="2c186f11-d07c-4df6-8b86-bf9ffd6ca871",
platforms=["macos"],
endpoint=[],
siem=[{"rule_name": "Emond Rules Creation or Modification", "rule_id": "a6bf4dd4-743e-4da8-8c03-3ebd753a6c90"}],
techniques=["T1546"],
)
@common.requires_os(*metadata.platforms)
def main():
common.log("Executing file modification on test.plist to mimic emond file modification")
common.temporary_file_helper("testing", file_name="/private/etc/emond.d/rules/test.plist")
if __name__ == "__main__":
exit(main())