def rule(event):
    if any(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\RemoteKrbRelay.exe"),
                    event.deep_get("OriginalFileName", default="") == "RemoteKrbRelay.exe",
                ]
            ),
            all(
                [
                    " -clsid " in event.deep_get("CommandLine", default=""),
                    " -target " in event.deep_get("CommandLine", default=""),
                    " -victim " in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    "-rbcd " in event.deep_get("CommandLine", default=""),
                    any(
                        [
                            "-cn " in event.deep_get("CommandLine", default=""),
                            "--computername " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
            all(
                [
                    "-chp " in event.deep_get("CommandLine", default=""),
                    "-chpPass " in event.deep_get("CommandLine", default=""),
                    "-chpUser " in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    "-addgroupmember " in event.deep_get("CommandLine", default=""),
                    "-group " in event.deep_get("CommandLine", default=""),
                    "-groupuser " in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    "-smb " in event.deep_get("CommandLine", default=""),
                    "--smbkeyword " in event.deep_get("CommandLine", default=""),
                    any(
                        [
                            "interactive" in event.deep_get("CommandLine", default=""),
                            "secrets" in event.deep_get("CommandLine", default=""),
                            "service-add" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
