def rule(event):
    if all(
        [
            "System.Net.WebClient" in event.deep_get("ContextInfo", default=""),
            any(
                [
                    ".DownloadFile(" in event.deep_get("ContextInfo", default=""),
                    ".DownloadString(" in event.deep_get("ContextInfo", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
