def rule(event):
    if all(
        [
            any(
                [
                    "\\wwwroot\\" in event.deep_get("Image", default=""),
                    "\\wmpub\\" in event.deep_get("Image", default=""),
                    "\\htdocs\\" in event.deep_get("Image", default=""),
                ]
            ),
            not all(
                [
                    any(
                        [
                            "bin\\" in event.deep_get("Image", default=""),
                            "\\Tools\\" in event.deep_get("Image", default=""),
                            "\\SMSComponent\\" in event.deep_get("Image", default=""),
                        ]
                    ),
                    event.deep_get("ParentImage", default="").endswith("\\services.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
