import re


def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 5145,
            re.match(r"^\\\\\\.*\\IPC$$", event.deep_get("ShareName", default="")),
            any(
                [
                    "RemCom_stdin" in event.deep_get("RelativeTargetName", default=""),
                    "RemCom_stdout" in event.deep_get("RelativeTargetName", default=""),
                    "RemCom_stderr" in event.deep_get("RelativeTargetName", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
