def rule(event):
    if all(
        [
            any(
                [
                    "WebDAV" in event.deep_get("c-useragent", default=""),
                    "webdav" in event.deep_get("c-uri", default=""),
                ]
            ),
            any(
                [
                    "dosexec" in event.deep_get("resp_mime_types", default=""),
                    event.deep_get("c-uri", default="").endswith(".exe"),
                ]
            ),
        ]
    ):
        return True
    return False
