def rule(event):
    if any(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\KrbRelayUp.exe"),
                    event.deep_get("OriginalFileName", default="") == "KrbRelayUp.exe",
                ]
            ),
            all(
                [
                    " relay " in event.deep_get("CommandLine", default=""),
                    " -Domain " in event.deep_get("CommandLine", default=""),
                    " -ComputerName " in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    " krbscm " in event.deep_get("CommandLine", default=""),
                    " -sc " in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    " spawn " in event.deep_get("CommandLine", default=""),
                    " -d " in event.deep_get("CommandLine", default=""),
                    " -cn " in event.deep_get("CommandLine", default=""),
                    " -cp " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
