def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("/cat"),
                    event.deep_get("Image", default="").endswith("/dir"),
                    event.deep_get("Image", default="").endswith("/find"),
                    event.deep_get("Image", default="").endswith("/ls"),
                    event.deep_get("Image", default="").endswith("/stat"),
                    event.deep_get("Image", default="").endswith("/test"),
                    event.deep_get("Image", default="").endswith("grep"),
                ]
            ),
            event.deep_get("CommandLine", default="").endswith(".dockerenv"),
        ]
    ):
        return True
    return False
