import re


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