def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("/bash"),
            "tail" in event.deep_get("CommandLine", default=""),
            "-c" in event.deep_get("CommandLine", default=""),
            "base64" in event.deep_get("CommandLine", default=""),
            "-d" in event.deep_get("CommandLine", default=""),
            ">" in event.deep_get("CommandLine", default=""),
            any(
                [
                    ".avif" in event.deep_get("CommandLine", default=""),
                    ".gif" in event.deep_get("CommandLine", default=""),
                    ".jfif" in event.deep_get("CommandLine", default=""),
                    ".jpeg" in event.deep_get("CommandLine", default=""),
                    ".jpg" in event.deep_get("CommandLine", default=""),
                    ".pjp" in event.deep_get("CommandLine", default=""),
                    ".pjpeg" in event.deep_get("CommandLine", default=""),
                    ".png" in event.deep_get("CommandLine", default=""),
                    ".svg" in event.deep_get("CommandLine", default=""),
                    ".webp" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
