def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").startswith("/opt/atlassian/confluence/"),
            event.deep_get("ParentImage", default="").endswith("/java"),
            any(
                [
                    "/bin/sh" in event.deep_get("CommandLine", default=""),
                    "bash" in event.deep_get("CommandLine", default=""),
                    "dash" in event.deep_get("CommandLine", default=""),
                    "ksh" in event.deep_get("CommandLine", default=""),
                    "zsh" in event.deep_get("CommandLine", default=""),
                    "csh" in event.deep_get("CommandLine", default=""),
                    "fish" in event.deep_get("CommandLine", default=""),
                    "curl" in event.deep_get("CommandLine", default=""),
                    "wget" in event.deep_get("CommandLine", default=""),
                    "python" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
