def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\conhost.exe"),
            any(
                [
                    event.deep_get("ParentImage", default="").endswith("\\explorer.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\lsass.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\regsvr32.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\rundll32.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\services.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\smss.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\spoolsv.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\svchost.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\userinit.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\wininit.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\winlogon.exe"),
                ]
            ),
            not any(
                [
                    "-k apphost -s AppHostSvc" in event.deep_get("ParentCommandLine", default=""),
                    "-k imgsvc" in event.deep_get("ParentCommandLine", default=""),
                    "-k localService -p -s RemoteRegistry"
                    in event.deep_get("ParentCommandLine", default=""),
                    "-k LocalSystemNetworkRestricted -p -s NgcSvc"
                    in event.deep_get("ParentCommandLine", default=""),
                    "-k NetSvcs -p -s NcaSvc" in event.deep_get("ParentCommandLine", default=""),
                    "-k netsvcs -p -s NetSetupSvc"
                    in event.deep_get("ParentCommandLine", default=""),
                    "-k netsvcs -p -s wlidsvc" in event.deep_get("ParentCommandLine", default=""),
                    "-k NetworkService -p -s DoSvc"
                    in event.deep_get("ParentCommandLine", default=""),
                    "-k wsappx -p -s AppXSvc" in event.deep_get("ParentCommandLine", default=""),
                    "-k wsappx -p -s ClipSVC" in event.deep_get("ParentCommandLine", default=""),
                    "-k wusvcs -p -s WaaSMedicSvc"
                    in event.deep_get("ParentCommandLine", default=""),
                ]
            ),
            not any(
                [
                    "C:\\Program Files (x86)\\Dropbox\\Client\\"
                    in event.deep_get("ParentCommandLine", default=""),
                    "C:\\Program Files\\Dropbox\\Client\\"
                    in event.deep_get("ParentCommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
