def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith(
                "\\Atlassian\\Confluence\\jre\\bin\\java.exe"
            ),
            any(
                [
                    "certutil" in event.deep_get("CommandLine", default=""),
                    "cmd /c" in event.deep_get("CommandLine", default=""),
                    "cmd /k" in event.deep_get("CommandLine", default=""),
                    "cscript" in event.deep_get("CommandLine", default=""),
                    "curl" in event.deep_get("CommandLine", default=""),
                    "ipconfig" in event.deep_get("CommandLine", default=""),
                    "powershell" in event.deep_get("CommandLine", default=""),
                    "pwsh" in event.deep_get("CommandLine", default=""),
                    "regsvr32" in event.deep_get("CommandLine", default=""),
                    "rundll32" in event.deep_get("CommandLine", default=""),
                    "whoami" in event.deep_get("CommandLine", default=""),
                    "wscript" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
