def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("ParentImage", default="").endswith(
                        "\\TieringEngineService.exe"
                    ),
                    event.deep_get("Image", default="").endswith("\\conhost.exe"),
                    event.deep_get("CommandLine", default="").endswith('conhost.exe"'),
                    any(
                        [
                            "AUTHORI" in event.deep_get("User", default=""),
                            "AUTORI" in event.deep_get("User", default=""),
                            "$" in event.deep_get("User", default=""),
                        ]
                    ),
                ]
            ),
            all(
                [
                    event.deep_get("GrandParentImage", default="").endswith(
                        "\\TieringEngineService.exe"
                    ),
                    event.deep_get("ParentImage", default="").endswith("\\conhost.exe"),
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\cmd.exe"),
                            event.deep_get("Image", default="").endswith("\\powershell_ise.exe"),
                            event.deep_get("Image", default="").endswith("\\powershell.exe"),
                            event.deep_get("Image", default="").endswith("\\pwsh.exe"),
                        ]
                    ),
                    any(
                        [
                            "AUTHORI" in event.deep_get("User", default=""),
                            "AUTORI" in event.deep_get("User", default=""),
                            "$" in event.deep_get("User", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
