def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\svchost.exe"),
                    event.deep_get("Image", default="").endswith("\\taskhost.exe"),
                    event.deep_get("Image", default="").endswith("\\lsm.exe"),
                    event.deep_get("Image", default="").endswith("\\lsass.exe"),
                    event.deep_get("Image", default="").endswith("\\services.exe"),
                    event.deep_get("Image", default="").endswith("\\lsaiso.exe"),
                    event.deep_get("Image", default="").endswith("\\csrss.exe"),
                    event.deep_get("Image", default="").endswith("\\wininit.exe"),
                    event.deep_get("Image", default="").endswith("\\winlogon.exe"),
                ]
            ),
            not any(
                [
                    any(
                        [
                            any(
                                [
                                    event.deep_get("ParentImage", default="").endswith(
                                        "\\SavService.exe"
                                    ),
                                    event.deep_get("ParentImage", default="").endswith(
                                        "\\ngen.exe"
                                    ),
                                ]
                            ),
                            any(
                                [
                                    "\\System32\\" in event.deep_get("ParentImage", default=""),
                                    "\\SysWOW64\\" in event.deep_get("ParentImage", default=""),
                                ]
                            ),
                        ]
                    ),
                    all(
                        [
                            any(
                                [
                                    "\\Windows Defender\\"
                                    in event.deep_get("ParentImage", default=""),
                                    "\\Microsoft Security Client\\"
                                    in event.deep_get("ParentImage", default=""),
                                ]
                            ),
                            event.deep_get("ParentImage", default="").endswith("\\MsMpEng.exe"),
                        ]
                    ),
                    any(
                        [
                            event.deep_get("ParentImage", default="") == "",
                            event.deep_get("ParentImage", default="") in ["", "-"],
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
