def rule(event):
    if all(
        [
            any(
                [
                    any(
                        [
                            event.deep_get("ParentImage", default="").endswith("/httpd"),
                            event.deep_get("ParentImage", default="").endswith("/lighttpd"),
                            event.deep_get("ParentImage", default="").endswith("/nginx"),
                            event.deep_get("ParentImage", default="").endswith("/apache2"),
                            event.deep_get("ParentImage", default="").endswith("/node"),
                            event.deep_get("ParentImage", default="").endswith("/caddy"),
                        ]
                    ),
                    all(
                        [
                            "/bin/java" in event.deep_get("ParentCommandLine", default=""),
                            "tomcat" in event.deep_get("ParentCommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            "/bin/java" in event.deep_get("ParentCommandLine", default=""),
                            "websphere" in event.deep_get("ParentCommandLine", default=""),
                        ]
                    ),
                ]
            ),
            any(
                [
                    event.deep_get("Image", default="").endswith("/whoami"),
                    event.deep_get("Image", default="").endswith("/ifconfig"),
                    event.deep_get("Image", default="").endswith("/ip"),
                    event.deep_get("Image", default="").endswith("/bin/uname"),
                    event.deep_get("Image", default="").endswith("/bin/cat"),
                    event.deep_get("Image", default="").endswith("/bin/crontab"),
                    event.deep_get("Image", default="").endswith("/hostname"),
                    event.deep_get("Image", default="").endswith("/iptables"),
                    event.deep_get("Image", default="").endswith("/netstat"),
                    event.deep_get("Image", default="").endswith("/pwd"),
                    event.deep_get("Image", default="").endswith("/route"),
                ]
            ),
        ]
    ):
        return True
    return False
