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

35 lines
909 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="31fdd029-5fac-474f-9201-3b7bfb60e0cf",
platforms=["windows"],
endpoint=[
{"rule_name": "Potential PlugX Registry Modification", "rule_id": "7a201712-9f3c-4f40-b4fc-2418a44b8ecb"}
],
siem=[],
techniques=["T1547", "T1112", "T1219"],
)
@common.requires_os(*metadata.platforms)
def main():
common.log("Temporarily creating a PlugX-like reg key...")
key = "SOFTWARE\\CLASSES\\ms-pu\\PROXY"
value = "Test"
data = "Test"
with common.temporary_reg(common.HKLM, key, value, data):
pass
if __name__ == "__main__":
exit(main())