def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 5145,
            event.deep_get("ShareName", default="").startswith("\\\\"),
            event.deep_get("ShareName", default="").endswith("\\IPC$"),
            event.deep_get("RelativeTargetName", default="") == "lsarpc",
            event.deep_get("SubjectUserName", default="") == "ANONYMOUS LOGON",
        ]
    ):
        return True
    return False
