Google announced this week that it will provide certain website administrators samples of malicious code found on their sites to help them clear the infection.
The new feature is part of Google's free Webmaster Tools suite that was launched in 2005 and helps webmasters improve their sites' search ranking, diagnose website problems and share information with each other.
Undertaking this service makes sense considering Google does not want users who trust its search results to visit sites infected with malware, Grossman said. That could cause reputational harm for Google.
Last year, Google began notifying certain webmasters if their sites are running out-of-date web server software that could provide an open door for hackers.