def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\setspn.exe"),
                    event.deep_get("OriginalFileName", default="") == "setspn.exe",
                    all(
                        [
                            "Query or reset the computer"
                            in event.deep_get("Description", default=""),
                            "SPN attribute" in event.deep_get("Description", default=""),
                        ]
                    ),
                ]
            ),
            any(
                [
                    " -q " in event.deep_get("CommandLine", default=""),
                    " /q " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
