Files
sigma-rules/rta/msequationeditor_net_conn.py
T
2023-10-03 10:47:58 -04:00

37 lines
1007 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="75167553-4886-44ba-b5d6-b4c341b33709",
platforms=["windows"],
endpoint=[
{
"rule_name": "Suspicious Network Connection from Microsoft Equation Editor",
"rule_id": "365571bb-2b93-4ae8-8c39-0558f8a6c4cc",
}
],
siem=[],
techniques=["T1203", "T1566"],
)
EXE_FILE = common.get_path("bin", "regsvr32.exe")
@common.requires_os(*metadata.platforms)
def main():
eqnedt32 = "C:\\Users\\Public\\eqnedt32.exe"
common.copy_file(EXE_FILE, eqnedt32)
common.log("Making connection using fake eqnedt32.exe")
common.execute([eqnedt32, "-Embedding"], timeout=10, kill=True)
if __name__ == "__main__":
exit(main())