Can browsers or OSs not treat the corrupted Baidu analytics as malware?
Baidu is certainly most popular within china, but not exclusive to them.
Government influence aside, Baidu would be free to host their analytics callbacks for the outside world outside of the GFW. If they stay accomplice to this kind of attack, no matter if forced or willingly, they will suffer.