The New York Times Company said that NYTimes.com was the victim of an attacker who first posed as a legitimate advertiser, then started hitting site visitors with aggressive advertisements that appeared to be warnings about viruses. "Over the weekend, NYTimes.com was the victim of a malware attack that targeted several news organizations," Diane McNulty, a spokeswoman for the Times Company, said in a statement in response to questions about the rogue ads.