Thousands of Yahoo.com visitors were served with malicious software due to a security breach on the Yahoo ad network.