Files
sigma-rules/rta/uac_clipup.py
T
2023-10-03 10:47:58 -04:00

37 lines
1.1 KiB
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="1d887a40-ea2a-493c-90b4-54e0ce4f3534",
platforms=["windows"],
endpoint=[],
siem=[{
'rule_id': 'b90cdde7-7e0d-4359-8bf0-2c112ce2008a',
'rule_name': 'UAC Bypass Attempt with IEditionUpgradeManager Elevated COM Interface'
}],
techniques=['T1548', 'T1548.002'],
)
EXE_FILE = common.get_path("bin", "renamed_posh.exe")
@common.requires_os(*metadata.platforms)
def main():
dllhost = "C:\\Users\\Public\\dllhost.exe"
clipup = "C:\\Users\\Public\\clipup.exe"
common.copy_file(EXE_FILE, clipup)
common.copy_file(EXE_FILE, dllhost)
common.execute([dllhost, "echo", "/Processid:{BD54C901-076B-434E-B6C7-17C531F4AB41}",
";", clipup], timeout=5, kill=True)
common.remove_files(clipup, dllhost)
if __name__ == "__main__":
exit(main())