def rule(event):
    if any(
        [
            event.deep_get("Image", default="").endswith("\\SharpLdapWhoami.exe"),
            any(
                [
                    "SharpLdapWhoami" in event.deep_get("OriginalFileName", default=""),
                    event.deep_get("Product", default="") == "SharpLdapWhoami",
                ]
            ),
            any(
                [
                    event.deep_get("CommandLine", default="").endswith(" /method:ntlm"),
                    event.deep_get("CommandLine", default="").endswith(" /method:kerb"),
                    event.deep_get("CommandLine", default="").endswith(" /method:nego"),
                    event.deep_get("CommandLine", default="").endswith(" /m:nego"),
                    event.deep_get("CommandLine", default="").endswith(" /m:ntlm"),
                    event.deep_get("CommandLine", default="").endswith(" /m:kerb"),
                ]
            ),
        ]
    ):
        return True
    return False
