def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\WMIC.exe"),
                    event.deep_get("OriginalFileName", default="") == "wmic.exe",
                ]
            ),
            "service" in event.deep_get("CommandLine", default=""),
            not any(
                [
                    "Change" in event.deep_get("CommandLine", default=""),
                    "Create" in event.deep_get("CommandLine", default=""),
                    "Delete" in event.deep_get("CommandLine", default=""),
                    "PauseService" in event.deep_get("CommandLine", default=""),
                    "ResumeService" in event.deep_get("CommandLine", default=""),
                    "SetSecurityDescriptor" in event.deep_get("CommandLine", default=""),
                    "StartService" in event.deep_get("CommandLine", default=""),
                    "StopService" in event.deep_get("CommandLine", default=""),
                    "UserControlService" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
