def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("/java"),
            "confluence" in event.deep_get("ParentCommandLine", default=""),
            any(
                [
                    event.deep_get("Image", default="").endswith("/bash"),
                    event.deep_get("Image", default="").endswith("/curl"),
                    event.deep_get("Image", default="").endswith("/echo"),
                    event.deep_get("Image", default="").endswith("/wget"),
                ]
            ),
            not "ulimit -u" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
