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

38 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="58b3052d-4242-4b41-9f28-b04ce5962761",
platforms=["windows"],
endpoint=[
{"rule_name": "Suspicious Windows Service DLL Creation", "rule_id": "2c624716-75a1-42d9-bcb8-1defcb9bded9"}
],
siem=[{
"rule_id": "403ef0d3-8259-40c9-a5b6-d48354712e49",
"rule_name": "Unusual Persistence via Services Registry"
}],
techniques=['T1543', 'T1543.003'],
)
@common.requires_os(*metadata.platforms)
def main():
common.log("Temporarily creating a Service DLL reg key...")
key = "SYSTEM\\ControlSet001\\Services\\RTA"
value = "ServiceDLL"
data = "ServiceDLL"
with common.temporary_reg(common.HKLM, key, value, data):
pass
if __name__ == "__main__":
exit(main())