def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\gup.exe"),
            not event.deep_get("QueryName", default="") == "notepad-plus-plus.org",
            not any(
                [
                    event.deep_get("QueryName", default="").endswith(".sourceforge.net"),
                    any(
                        [
                            event.deep_get("QueryName", default="").endswith(
                                ".githubusercontent.com"
                            ),
                            event.deep_get("QueryName", default="") == "github.com",
                        ]
                    ),
                    event.deep_get("QueryName", default="").endswith(".googleapis.com"),
                    any(
                        [
                            event.deep_get("QueryName", default="").endswith(".azurewebsites.net"),
                            event.deep_get("QueryName", default="").endswith("block.opendns.com"),
                            event.deep_get("QueryName", default="").endswith(
                                "gateway.zscalerthree.net"
                            ),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
