def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\cmdkey.exe"),
                    event.deep_get("OriginalFileName", default="") == "cmdkey.exe",
                ]
            ),
            any(
                [
                    " -g" in event.deep_get("CommandLine", default=""),
                    " /g" in event.deep_get("CommandLine", default=""),
                    " –g" in event.deep_get("CommandLine", default=""),
                    " —g" in event.deep_get("CommandLine", default=""),
                    " ―g" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    " -u" in event.deep_get("CommandLine", default=""),
                    " /u" in event.deep_get("CommandLine", default=""),
                    " –u" in event.deep_get("CommandLine", default=""),
                    " —u" in event.deep_get("CommandLine", default=""),
                    " ―u" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    " -p" in event.deep_get("CommandLine", default=""),
                    " /p" in event.deep_get("CommandLine", default=""),
                    " –p" in event.deep_get("CommandLine", default=""),
                    " —p" in event.deep_get("CommandLine", default=""),
                    " ―p" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
