35 lines
942 B
Python
35 lines
942 B
Python
# 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="8b03eda5-5c01-4e69-9095-f9c00af85000",
|
|
platforms=["windows"],
|
|
endpoint=[],
|
|
siem=[{
|
|
'rule_id': '14ed1aa9-ebfd-4cf9-a463-0ac59ec55204',
|
|
'rule_name': 'Potential Persistence via Time Provider Modification'
|
|
}],
|
|
techniques=['T1547', 'T1547.003'],
|
|
)
|
|
EXE_FILE = common.get_path("bin", "renamed_posh.exe")
|
|
|
|
|
|
@common.requires_os(*metadata.platforms)
|
|
def main():
|
|
key = "SYSTEM\\ControlSet001\\Services\\W32Time\\TimeProviders"
|
|
value = "Test"
|
|
data = "a.dll"
|
|
|
|
with common.temporary_reg(common.HKLM, key, value, data):
|
|
pass
|
|
|
|
|
|
if __name__ == "__main__":
|
|
exit(main())
|