def rule(event):
    if all(
        [
            any(
                [
                    "\\pipe\\" in event.deep_get("PipeName", default=""),
                    "\\pipe\\srvsvc" in event.deep_get("PipeName", default=""),
                ]
            ),
            not any(
                [
                    "\\CtxShare" in event.deep_get("PipeName", default=""),
                    event.deep_get("PipeName", default="").startswith("\\pipe\\"),
                ]
            ),
        ]
    ):
        return True
    return False
