Files
sigma-rules/rta/reg_mod_unusual_startup_folder.py
T
Jonhnathan 5c792b86d7 [RTA] Adds RTAs for endpoint rules (#2621)
* [RTA] Adds RTAs for endpoint rules

* Update exec_cscript_archive_args.py

* Review RTAs 1/2

* Update suspicious_msiexec_child.py

* Update rta/exec_cscript_archive_args.py

Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>

---------

Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
2023-03-23 18:14:06 -03:00

36 lines
973 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="4ac771ca-5095-4a1b-ac6a-e2b714be8ccc",
platforms=["windows"],
endpoint=[{
'rule_id': '377aad38-24e0-4dd7-93c2-bd231cb749e3',
'rule_name': 'Unusual Startup Shell Folder Modification'
}],
siem=[],
techniques=['T1547', 'T1547.001', 'T1112'],
)
@common.requires_os(metadata.platforms)
def main():
common.log("Temp Registry mod: Common Startup Folder")
key = "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders"
value = "Common Startup"
data = "Test"
with common.temporary_reg(common.HKLM, key, value, data):
pass
if __name__ == "__main__":
exit(main())