def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("/cat"),
                    event.deep_get("Image", default="").endswith("/ed"),
                    event.deep_get("Image", default="").endswith("/egrep"),
                    event.deep_get("Image", default="").endswith("/emacs"),
                    event.deep_get("Image", default="").endswith("/fgrep"),
                    event.deep_get("Image", default="").endswith("/grep"),
                    event.deep_get("Image", default="").endswith("/head"),
                    event.deep_get("Image", default="").endswith("/less"),
                    event.deep_get("Image", default="").endswith("/more"),
                    event.deep_get("Image", default="").endswith("/nano"),
                    event.deep_get("Image", default="").endswith("/tail"),
                ]
            ),
            " /etc/sudoers" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
