def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\cmd.exe"),
            "\\Users\\" in event.deep_get("TargetFilename", default=""),
            "\\Desktop\\" in event.deep_get("TargetFilename", default=""),
            event.deep_get("TargetFilename", default="").endswith(".txt"),
        ]
    ):
        return True
    return False
