def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("OriginalFileName", default="") == "Cmd.Exe",
                    event.deep_get("Image", default="").endswith("\\cmd.exe"),
                ]
            ),
            any(
                [
                    "Invoke-UserHunter" in event.deep_get("CommandLine", default=""),
                    "Invoke-ShareFinder" in event.deep_get("CommandLine", default=""),
                    "Invoke-Kerberoast" in event.deep_get("CommandLine", default=""),
                    "Invoke-SMBAutoBrute" in event.deep_get("CommandLine", default=""),
                    "Invoke-Nightmare" in event.deep_get("CommandLine", default=""),
                    "zerologon" in event.deep_get("CommandLine", default=""),
                    "av_query" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
