def rule(event):
    if all(
        [
            " run run-cmd " in event.deep_get("CommandLine", default=""),
            not any(
                [
                    event.deep_get("ParentImage", default="").endswith("\\cleanapi.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\kavremover.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
