def rule(event):
    if all(
        [
            any(
                [
                    any(
                        [
                            "/j2ee/cluster/apps/sap.com/irj/servlet_jsp/irj/work"
                            in event.deep_get("ParentImage", default=""),
                            "/j2ee/cluster/apps/sap.com/irj/servlet_jsp/irj/root"
                            in event.deep_get("ParentImage", default=""),
                        ]
                    ),
                    any(
                        [
                            "/j2ee/cluster/apps/sap.com/irj/servlet_jsp/irj/work"
                            in event.deep_get("CurrentDirectory", default=""),
                            "/j2ee/cluster/apps/sap.com/irj/servlet_jsp/irj/root"
                            in event.deep_get("CurrentDirectory", default=""),
                        ]
                    ),
                ]
            ),
            any(
                [
                    event.deep_get("Image", default="").endswith("/ash"),
                    event.deep_get("Image", default="").endswith("/bash"),
                    event.deep_get("Image", default="").endswith("/csh"),
                    event.deep_get("Image", default="").endswith("/dash"),
                    event.deep_get("Image", default="").endswith("/ksh"),
                    event.deep_get("Image", default="").endswith("/sh"),
                    event.deep_get("Image", default="").endswith("/tcsh"),
                    event.deep_get("Image", default="").endswith("/zsh"),
                    event.deep_get("Image", default="").endswith("/python"),
                    event.deep_get("Image", default="").endswith("/python2"),
                    event.deep_get("Image", default="").endswith("/python3"),
                    event.deep_get("Image", default="").endswith("/perl"),
                    event.deep_get("Image", default="").endswith("/ruby"),
                    event.deep_get("Image", default="").endswith("/curl"),
                    event.deep_get("Image", default="").endswith("/wget"),
                    event.deep_get("Image", default="").endswith("/nc"),
                    event.deep_get("Image", default="").endswith("/netcat"),
                    event.deep_get("Image", default="").endswith("/ncat"),
                    event.deep_get("Image", default="").endswith("/socat"),
                    event.deep_get("Image", default="").endswith("/nmap"),
                    event.deep_get("Image", default="").endswith("/telnet"),
                    event.deep_get("Image", default="").endswith("/awk"),
                    event.deep_get("Image", default="").endswith("/sed"),
                ]
            ),
        ]
    ):
        return True
    return False
