def rule(event):
    if any(
        [
            event.deep_get("CommandLine", default="").endswith(" "),
            event.deep_get("Image", default="").endswith(" "),
        ]
    ):
        return True
    return False
