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

41 lines
1.0 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="38cea037-c1a8-4749-a434-ba4c7d6e91f8",
platforms=["windows"],
endpoint=[
{
"rule_name": "Privilege Escalation via Windir or SystemRoot Environment Variable",
"rule_id": "18ffee0c-5f40-4dd8-aa9a-28251a308dbc",
}
],
siem=[
{
'rule_id': 'd563aaba-2e72-462b-8658-3e5ea22db3a6',
'rule_name': 'Privilege Escalation via Windir Environment Variable'
}
],
techniques=['T1574', 'T1574.007'],
)
@common.requires_os(*metadata.platforms)
def main():
key = "System\\Environment"
value = "windir"
data = "rta"
with common.temporary_reg(common.HKCU, key, value, data):
pass
if __name__ == "__main__":
exit(main())