Files
sigma-rules/rta/exec_vsls_agent.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
976 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="ad0986cb-b5ef-41ad-9b40-8d708dc28844",
platforms=["windows"],
endpoint=[
{
'rule_id': 'a5416b1f-fc3f-4162-936d-34086689c3b0',
'rule_name': 'DLL Execution via Visual Studio Live Share'
}
],
siem=[],
techniques=['T1218'],
)
EXE_FILE = common.get_path("bin", "renamed_posh.exe")
@common.requires_os(metadata.platforms)
def main():
vslsagent = "C:\\Users\\Public\\vsls-agent.exe"
common.copy_file(EXE_FILE, vslsagent)
common.execute([vslsagent, "/c", "echo", "--agentExtensionPath"], timeout=5, kill=True)
common.remove_files(vslsagent)
if __name__ == "__main__":
exit(main())