Files
sigma-rules/rta/msoffice_potential_proc_inj.py
T
Jonhnathan 95b8b1688b [RTA] Add RTAs for Endpoint Rules - 2 (#2633)
* [RTA] Add RTAs for Endpoint Rules - 2

* Update exec_conhost_indirect.py

* Update msoffice_file_dll_sideload.py

---------

Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
2023-03-24 09:55:32 -03:00

37 lines
1020 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="afaf4f08-765e-4d4a-8db0-5a2613e1f5be",
platforms=["windows"],
endpoint=[
{
'rule_id': '05599d18-6ff7-4fff-ad2d-f03c930a7b6e',
'rule_name': 'Potential Process Injection from Malicious Document'
}
],
siem=[],
techniques=['T1055', 'T1566', 'T1566.001'],
)
EXE_FILE = common.get_path("bin", "renamed_posh.exe")
@common.requires_os(metadata.platforms)
def main():
winword = "C:\\Users\\Public\\winword.exe"
cmd = "C:\\Windows\\System32\\cmd.exe"
common.copy_file(EXE_FILE, winword)
common.execute([winword, "/c", cmd], timeout=5, kill=True)
common.remove_files(winword)
if __name__ == "__main__":
exit(main())