def rule(event):
    if all(
        [
            "\\servers\\Stable-" in event.deep_get("ParentImage", default=""),
            event.deep_get("ParentImage", default="").endswith("\\server\\node.exe"),
            ".vscode-server" in event.deep_get("ParentCommandLine", default=""),
            any(
                [
                    all(
                        [
                            any(
                                [
                                    event.deep_get("Image", default="").endswith(
                                        "\\powershell.exe"
                                    ),
                                    event.deep_get("Image", default="").endswith("\\pwsh.exe"),
                                ]
                            ),
                            "\\terminal\\browser\\media\\shellIntegration.ps1"
                            in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\wsl.exe"),
                            event.deep_get("Image", default="").endswith("\\bash.exe"),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
