def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\ITSMService.exe"),
            event.deep_get("Image", default="").endswith("\\ssh-shellhost.exe"),
            "--pty" in event.deep_get("CommandLine", default=""),
            any(
                [
                    "bash" in event.deep_get("CommandLine", default=""),
                    "cmd" in event.deep_get("CommandLine", default=""),
                    "powershell" in event.deep_get("CommandLine", default=""),
                    "pwsh" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
