Files
sigma-rules/rta/exec_gfxdownloadwrapper.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

36 lines
977 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="e7f3a729-e5ee-462b-ba1c-dd778468d24d",
platforms=["windows"],
endpoint=[
{
'rule_id': 'aafe3c78-15d9-4853-a602-663b8fada5b5',
'rule_name': 'Potential Evasion via Intel GfxDownloadWrapper'
}
],
siem=[],
techniques=['T1218', 'T1105'],
)
EXE_FILE = common.get_path("bin", "renamed_posh.exe")
@common.requires_os(metadata.platforms)
def main():
gfx = "C:\\Users\\Public\\GfxDownloadWrapper.exe"
common.copy_file(EXE_FILE, gfx)
common.execute([gfx, "/c", "echo", "run", "0", "http"], timeout=5, kill=True)
common.remove_files(gfx)
if __name__ == "__main__":
exit(main())