def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\node.exe"),
            any(
                [
                    "--experimental-https" in event.deep_get("ParentCommandLine", default=""),
                    "--experimental-next-config-strip-types"
                    in event.deep_get("ParentCommandLine", default=""),
                    "\\node_modules\\next" in event.deep_get("ParentCommandLine", default=""),
                    "next dev" in event.deep_get("ParentCommandLine", default=""),
                    "next start" in event.deep_get("ParentCommandLine", default=""),
                    'next" start' in event.deep_get("ParentCommandLine", default=""),
                    "node_modules\\.bin\\\\..\\next"
                    in event.deep_get("ParentCommandLine", default=""),
                    "react-scripts start" in event.deep_get("ParentCommandLine", default=""),
                    "start-server.js" in event.deep_get("ParentCommandLine", default=""),
                ]
            ),
            any(
                [
                    any(
                        [
                            any(
                                [
                                    any(
                                        [
                                            event.deep_get("Image", default="").endswith(
                                                "\\bash.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\bitsadmin.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\certutil.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\cscript.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\curl.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\ipconfig.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\mshta.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\net.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\net1.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\netsh.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\nslookup.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\OpenConsole.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\perl.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\ping.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\powershell.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\pwsh.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\py.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\python.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\pythonw.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\pyw.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\reg.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\regsvr32.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\rundll32.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\sc.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\sh.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\systeminfo.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\wget.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\whoami.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\wmic.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\wscript.exe"
                                            ),
                                            event.deep_get("Image", default="").endswith(
                                                "\\wt.exe"
                                            ),
                                        ]
                                    ),
                                    "\\python" in event.deep_get("Image", default=""),
                                ]
                            ),
                            any(
                                [
                                    "\\net" in event.deep_get("CommandLine", default=""),
                                    "bitsadmin" in event.deep_get("CommandLine", default=""),
                                    "certutil " in event.deep_get("CommandLine", default=""),
                                    "conhost --headless"
                                    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=""),
                                    "java" in event.deep_get("CommandLine", default=""),
                                    "lua" in event.deep_get("CommandLine", default=""),
                                    "mshta" in event.deep_get("CommandLine", default=""),
                                    "netsh" in event.deep_get("CommandLine", default=""),
                                    "nslookup " in event.deep_get("CommandLine", default=""),
                                    "perl" in event.deep_get("CommandLine", default=""),
                                    "ping " in event.deep_get("CommandLine", default=""),
                                    "powershell" in event.deep_get("CommandLine", default=""),
                                    "pwsh" in event.deep_get("CommandLine", default=""),
                                    "python" in event.deep_get("CommandLine", default=""),
                                    "reg " in event.deep_get("CommandLine", default=""),
                                    "reg.exe" in event.deep_get("CommandLine", default=""),
                                    "regsvr32" in event.deep_get("CommandLine", default=""),
                                    "ruby" in event.deep_get("CommandLine", default=""),
                                    "rundll32" in event.deep_get("CommandLine", default=""),
                                    "sc.exe" in event.deep_get("CommandLine", default=""),
                                    "systeminfo" in event.deep_get("CommandLine", default=""),
                                    "wget" in event.deep_get("CommandLine", default=""),
                                    "whoami" in event.deep_get("CommandLine", default=""),
                                    "wmic" in event.deep_get("CommandLine", default=""),
                                    "wscript" in event.deep_get("CommandLine", default=""),
                                ]
                            ),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("Image", default="").endswith("\\cmd.exe"),
                            not "/d /s /c " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("Image", default="").endswith("\\cmd.exe"),
                            "/d /s /c " in event.deep_get("CommandLine", default=""),
                            not any(
                                [
                                    "git config --local --get remote.origin.url"
                                    in event.deep_get("CommandLine", default=""),
                                    all(
                                        [
                                            "netstat -ano | findstr /C:"
                                            in event.deep_get("CommandLine", default=""),
                                            " | findstr LISTENING"
                                            in event.deep_get("CommandLine", default=""),
                                        ]
                                    ),
                                    all(
                                        [
                                            "\\mkcert\\"
                                            in event.deep_get("CommandLine", default=""),
                                            " -install "
                                            in event.deep_get("CommandLine", default=""),
                                        ]
                                    ),
                                    all(
                                        [
                                            "\\mkcert\\"
                                            in event.deep_get("CommandLine", default=""),
                                            " -CAROOT" in event.deep_get("CommandLine", default=""),
                                        ]
                                    ),
                                ]
                            ),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
