Files
sigma-rules/rta/exec_echo_named_pipe.py
T
Jonhnathan 0273d118a6 [Rule Tuning] Add endgame support for Windows Rules (#2428)
* Update impact_deleting_backup_catalogs_with_wbadmin.toml

* Update impact_deleting_backup_catalogs_with_wbadmin.toml

* 1/2

* bump updated_date

* 2/3

* Finale

* Update persistence_evasion_registry_ifeo_injection.toml

* .

* Multiple fixes

* Missing index

* Missing AND
2023-03-06 12:47:11 -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="f94f70a3-7c63-4f75-b5bc-f2227e284934",
platforms=["windows"],
endpoint=[
{
"rule_name": "Privilege Escalation via Named Pipe Impersonation",
"rule_id": "a0265178-779d-4bc5-b3f1-abb3bcddedab",
}
],
siem=[{
'rule_id': '3ecbdc9e-e4f2-43fa-8cca-63802125e582',
'rule_name': 'Privilege Escalation via Named Pipe Impersonation'
}],
techniques=["T1134"],
)
@common.requires_os(metadata.platforms)
def main():
# Execute command
common.execute(["cmd.exe", "/c", "echo", "cmd.exe", ">", "\\\\.\\pipe\\named"], timeout=5)
if __name__ == "__main__":
exit(main())