def rule(event):
    if any(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\wsudo.exe"),
                    event.deep_get("OriginalFileName", default="") == "wsudo.exe",
                    event.deep_get("Description", default="") == "Windows sudo utility",
                    event.deep_get("ParentImage", default="").endswith("\\wsudo-bridge.exe"),
                ]
            ),
            any(
                [
                    "-u System" in event.deep_get("CommandLine", default=""),
                    "-uSystem" in event.deep_get("CommandLine", default=""),
                    "-u TrustedInstaller" in event.deep_get("CommandLine", default=""),
                    "-uTrustedInstaller" in event.deep_get("CommandLine", default=""),
                    " --ti " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
