def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("awk"),
                    event.deep_get("Image", default="").endswith("/cat"),
                    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("/nl"),
                    event.deep_get("Image", default="").endswith("/tail"),
                ]
            ),
            any(
                [
                    "/proc/2/" in event.deep_get("CommandLine", default=""),
                    all(
                        [
                            "/proc/" in event.deep_get("CommandLine", default=""),
                            any(
                                [
                                    event.deep_get("CommandLine", default="").endswith("/cgroup"),
                                    event.deep_get("CommandLine", default="").endswith("/sched"),
                                ]
                            ),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
